To program a block of memory without using the PE, the block of data must first be
written to RAM. This method requires the programmer to transfer the actual machine
instructions with embedded (immediate) data for writing the block of data to the devices
internal RAM memory.Figure 12-1. Downloading Data without
PE
The following steps are required to download a block of data:
1. XferInstruction (op code).
2. Repeat step 1 until the last instruction is transferred to CPU.
Table 12-1. Download Data OP Codes
Step Number
Op Code
Instruction
Step 1
Initialize SRAM base address to
0xA0000000.
3c10a000
lui s0, 0xA000;
Step 2
Write the entire row of data to be
programmed into system SRAM.
3c08<DATA>
3508<DATA>
ae08<OFFSET>
lui t0, <DATA(31:16)>;
ori t0, t0, <DATA(15:0)>;
sw t0, <OFFSET>(s0);
// OFFSET increments by 4