Skip to content

Commit ed6c0d1

Browse files
authored
Update info.md
1 parent 2179210 commit ed6c0d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/info.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,12 @@ A cocoTB testbench is used to run tests in Python. Each test uses the following
173173
- **Features:** Immediate-decode logic; bit-serial ALU with immediate operand; regfile serial access; accumulator correctness
174174

175175
**Example**:
176-
- Setup: `R3` contains `0x73`
176+
- Setup: `R3` contains `0x73`, `R4` contains `0x2D`
177177
- Operation: `SUBI R3, 0x2C`
178178
- Expected result: `0x47`
179179
<img width="1684" height="901" alt="image" src="https://github.com/user-attachments/assets/f4138d6a-19f4-46eb-b4e2-71315d5c8499" />
180180

181+
Note that in this case, the bits in the I-type instruction that correspond to the `rs2` address are a value of 4. However, the mux logic correctly selects the immediate bits for use in the ALU rather than using `R4` as the second operand.
181182

182183
#### shift_ops.py
183184
- **Instructions:** SLLI, SRLI, LOADI, STORE

0 commit comments

Comments
 (0)