summaryrefslogtreecommitdiff
path: root/tb/ttarv32_tb.sv
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2026-11-03 21:32:31 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2026-11-03 21:32:31 +0200
commit0c6297a079795927ea2c85e884aaa57cd5a6ca30 (patch)
treeb2e98455365f9d0534e92bf3a7a6e4120a0eae8e /tb/ttarv32_tb.sv
parentb9afe2d4c22e35f2d2e65d67c07b300ba3f7ccb3 (diff)
downloadttarv32-0c6297a079795927ea2c85e884aaa57cd5a6ca30.tar.gz
ttarv32-0c6297a079795927ea2c85e884aaa57cd5a6ca30.zip
compile with verilator -WallHEADmaster
+ I also found out that iverilog does not agree with Verilator that the testbenches work (the ones that iverilog can compile, anyway). That's rather annoying, I'm not quite sure what the root cause is. Timing difference in when registers are evaluated versus clock edges or something along those lines?
Diffstat (limited to 'tb/ttarv32_tb.sv')
-rw-r--r--tb/ttarv32_tb.sv6
1 files changed, 3 insertions, 3 deletions
diff --git a/tb/ttarv32_tb.sv b/tb/ttarv32_tb.sv
index 5b30f25..9ff089d 100644
--- a/tb/ttarv32_tb.sv
+++ b/tb/ttarv32_tb.sv
@@ -10,7 +10,7 @@ function automatic rv_t[3:0] unp2p(logic[7:0] in[4*4]);
return conversion;
endfunction
-xlen_t pc;
+xlen_t unused_pc;
logic[7:0] rv[4*4];
logic clk;
@@ -23,11 +23,11 @@ ttarv32 #(
.clk_i(clk),
.rst_ni(rst_n),
.rv_i(unp2p(rv)),
- .pc_o(pc)
+ .pc_o(unused_pc)
);
initial begin
- $dumpfile("ttarv32_tb.vcd");
+ $dumpfile("ttarv32_tb.fst");
$dumpvars();
$readmemh("ttarv32.hex", rv);