summaryrefslogtreecommitdiff
path: root/tb
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2026-07-22 20:56:59 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2026-07-22 20:56:59 +0300
commitbc5941a1fcfd0a607a6aef51f7659c3f233b65dc (patch)
tree89fb6166a698b7a1f2a71276432218ad1a364994 /tb
parent0c9c1538996c4e5120a9d409edd6b1cd5c07d22f (diff)
downloadttarv32-master.tar.gz
ttarv32-master.zip
simplift arbHEADmaster
+ Had a higher fMax and smaller area compared to previous attempt, at least when synthesized with OpenROAD
Diffstat (limited to 'tb')
-rw-r--r--tb/arb_tb.sv12
1 files changed, 6 insertions, 6 deletions
diff --git a/tb/arb_tb.sv b/tb/arb_tb.sv
index 909c5b2..53b9cb2 100644
--- a/tb/arb_tb.sv
+++ b/tb/arb_tb.sv
@@ -4,7 +4,7 @@ localparam WIDTH = 32;
reg clk;
reg rstx;
-logic[WIDTH-1:0] cand;
+logic[WIDTH-1:0] valid;
logic[WIDTH-1:0] selected;
arb #(
@@ -12,7 +12,7 @@ arb #(
) arb_i (
.clk(clk),
.rstx(rstx),
- .cand(cand),
+ .valid(valid),
.selected(selected)
);
@@ -33,12 +33,12 @@ initial begin
/* honestly, I'm a bit confused about this, if I try to make this be at
* a positive clock edge, the selected == 1 condition disappears because
- * cand apparently triggers `selected` to be recalculated first, which
+ * valid apparently triggers `selected` to be recalculated first, which
* then is fed into `mask` which then re-triggers `selected` and causes
* it to 'skip' ahead to selected == 2. When looking at the waveforms,
* the next @(posedge clk) shows 2 while the assert passes. I guess the
* assert is run first in the time step...? */
- cand = ~0;
+ valid = ~0;
@(posedge clk);
assert (selected == 1)
@@ -54,13 +54,13 @@ initial begin
else $error("expected 4, got ", selected);
/* skip next index */
- cand = '0;
+ valid = '0;
@(posedge clk);
assert (selected == 0)
else $error("expected 0, got ", selected);
- cand = ~8;
+ valid = ~8;
@(posedge clk);
assert (selected == 16)