Compare commits
2
Commits
350b8bd23d
...
31aceb7136
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31aceb7136 | ||
|
|
7fbd6fb731 |
@@ -3,4 +3,7 @@
|
|||||||
submission:
|
submission:
|
||||||
@./scripts/make_submission.sh
|
@./scripts/make_submission.sh
|
||||||
|
|
||||||
|
offline_submission:
|
||||||
|
@./scripts/zip_submission.sh
|
||||||
|
|
||||||
submit: submission
|
submit: submission
|
||||||
|
|||||||
Executable
+1
@@ -0,0 +1 @@
|
|||||||
|
zip -r DylanBenzi_benziboy_dbenzi3_DV_submission.zip src/verilog/tb/ src/verilog/cpu/ testplan_final.md
|
||||||
+9
-7
@@ -1375,8 +1375,7 @@ run_directed("duplicate_store_beq", prog);
|
|||||||
| ------------------- | ---------- | ------------------------- | ---------- |
|
| ------------------- | ---------- | ------------------------- | ---------- |
|
||||||
| sw x1, 1004(x1) | 0x00000000 | 0x00000000 (stored twice) | |
|
| sw x1, 1004(x1) | 0x00000000 | 0x00000000 (stored twice) | |
|
||||||
|
|
||||||
**First architectural divergence:**
|
**First architectural divergence:** duplicate SW when one is expected after a branch is taken
|
||||||
|
|
||||||
<!-- State the first register, memory, or control-flow result that becomes incorrect. -->
|
<!-- State the first register, memory, or control-flow result that becomes incorrect. -->
|
||||||
|
|
||||||
### Minimization
|
### Minimization
|
||||||
@@ -1385,7 +1384,9 @@ run_directed("duplicate_store_beq", prog);
|
|||||||
|
|
||||||
```systemverilog
|
```systemverilog
|
||||||
prog = '{
|
prog = '{
|
||||||
// Smallest sequence that still fails
|
asm_instr(.op(OP_SW), .rs1(0), .rs2(0), .imm(1004)),
|
||||||
|
asm_instr(.op(OP_BEQ), .rs1(0), .rs2(0), .imm(8)),
|
||||||
|
asm_instr(.op(OP_ADDI), .rd(1), .rs1(0), .imm(1)),
|
||||||
EBREAK_WORD
|
EBREAK_WORD
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
@@ -1398,20 +1399,21 @@ Include a screenshot showing the offending instruction and the first incorrect a
|
|||||||
|
|
||||||
### Conclusion
|
### Conclusion
|
||||||
|
|
||||||
**Trigger:**
|
**Trigger:** sw + beq
|
||||||
|
|
||||||
<!-- Smallest condition that causes the failure. -->
|
<!-- Smallest condition that causes the failure. -->
|
||||||
|
|
||||||
**Expected behavior:**
|
**Expected behavior:** one single sw and beq is successful
|
||||||
|
|
||||||
<!-- ISA-correct behavior. -->
|
<!-- ISA-correct behavior. -->
|
||||||
|
|
||||||
**Observed behavior:**
|
**Observed behavior:** sw is counted twice, while the scoreboard only expects one store
|
||||||
|
|
||||||
<!-- What the encrypted CPU does instead. -->
|
<!-- What the encrypted CPU does instead. -->
|
||||||
|
|
||||||
**Behavioral characterization:**
|
**Behavioral characterization:** the cpu holds write enable high for more than one cycle, leading to two stores
|
||||||
|
|
||||||
<!-- One precise sentence. Do not speculate about hidden RTL. -->
|
<!-- One precise sentence. Do not speculate about hidden RTL. -->
|
||||||
|
|
||||||
|
### 5. Code coverage >98% for cpu_tb_top
|
||||||
![[Pasted image 20261006143238.png]]
|
![[Pasted image 20261006143238.png]]
|
||||||
Reference in New Issue
Block a user