You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ A single thread contains a program counter, ALU, LSU, and registers. Thread take
29
29
2. a, b, and c register
30
30
### Instruction Set
31
31
The instruction set is 24 bits wide. 8 for opcode and 16 additional bits for immediate. The first 5 opcode bits specify instruction. The next 3 specify target or source / destination registers if an instruction uses it.
32
+
#### Opcodes
32
33
- move
33
34
`00001` + target --> moves immediate into register
34
35
`00010` + src/dst --> moves value in register to register
@@ -68,7 +69,14 @@ The instruction set is 24 bits wide. 8 for opcode and 16 additional bits for imm
68
69
`10101` --> signals that the thread has finished execution
69
70
- store
70
71
`10110` + src/dst --> takes address from src register and stores the value in dst register into memory
71
-
72
+
#### Register Codes
73
+
`000` --> A --> B
74
+
`001` --> A --> C
75
+
`010` --> B --> A
76
+
`011` --> B --> C
77
+
`100` --> C --> A
78
+
`101` --> C --> B
79
+
72
80
Potentially we may need more instructions but I can't think of any more that we need right now?
0 commit comments