Skip to content

Commit acc8a51

Browse files
committed
Update readme
1 parent d77fd05 commit acc8a51

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ RISC-V processor in Mindustry logic. Requires Mindustry build 149+.
44

55
![image](https://github.com/user-attachments/assets/3951b4b7-cc56-494a-85f8-54bd9f2ee7d5)
66

7+
## Architecture
8+
9+
Extensions: `rv32i_Zicsr_Zicntr_Zihintpause`
10+
11+
The processor consists of two world processors, `main.mlog` and `decoder.mlog`. `main.mlog` is the main CPU/compute unit. `decoder.mlog` decodes instructions into a separate instruction cache ahead of time.
12+
13+
Memory consists of three sections. Two are accessible by the processor: ROM (rx) and RAM (rw). ROM is 1/4 of total memory, RAM is 3/4. The third section is an instruction cache which is equal in physical size to the full memory but only stores data for ROM.
14+
15+
Code begins executing at address `0x4`. Address `0x0` must contain the size of the `.text` section (ie. `__etext`) to tell the decoder how much data to decode.
16+
717
## System calls
818

919
| Index (a7) | Description | a0 | a1 | a2 | a3 | a4 | a5 | a6 | Return (a0) |

0 commit comments

Comments
 (0)