testplan updates

This commit is contained in:
2026-10-06 21:38:27 -04:00
parent 350b8bd23d
commit 7fbd6fb731
+9 -7
View File
@@ -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]]