12.1 Without the PE
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.
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.
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. | |
|
| |
Step 3 | Repeat step 2 until one row of data is loaded. |