From 7fbd6fb73180e59821fb69f05d8fcf9f10aba628 Mon Sep 17 00:00:00 2001 From: dylanbenzi Date: Tue, 6 Oct 2026 21:38:27 -0400 Subject: [PATCH] testplan updates --- testplan_final.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/testplan_final.md b/testplan_final.md index e2a1265..dcf8e27 100644 --- a/testplan_final.md +++ b/testplan_final.md @@ -1375,8 +1375,7 @@ run_directed("duplicate_store_beq", prog); | ------------------- | ---------- | ------------------------- | ---------- | | 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 ### Minimization @@ -1385,7 +1384,9 @@ run_directed("duplicate_store_beq", prog); ```systemverilog 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 }; ``` @@ -1398,20 +1399,21 @@ Include a screenshot showing the offending instruction and the first incorrect a ### Conclusion -**Trigger:** +**Trigger:** sw + beq -**Expected behavior:** +**Expected behavior:** one single sw and beq is successful -**Observed behavior:** +**Observed behavior:** sw is counted twice, while the scoreboard only expects one store -**Behavioral characterization:** +**Behavioral characterization:** the cpu holds write enable high for more than one cycle, leading to two stores +### 5. Code coverage >98% for cpu_tb_top ![[Pasted image 20261006143238.png]] \ No newline at end of file