Skip to content

Commit b106001

Browse files
Tom Robertstomeroberts
Tom Roberts
authored andcommitted
[rtl/icache] Move various parameters into the pkg
No functional change. These parameters are effectively fixed. Moving them to the pkg eases top-level wiring of RAM signals. Signed-off-by: Tom Roberts <[email protected]>
1 parent a799a92 commit b106001

File tree

4 files changed

+245
-237
lines changed

4 files changed

+245
-237
lines changed

dv/uvm/icache/dv/tb/tb.sv

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module tb #(parameter bit ICacheECC = 1'b0);
6060
// each data ram, binding them into the RAMs themselves. ECC tests can use these to insert errors
6161
// into memory lookups.
6262
generate if (dut.ICacheECC) begin : gen_ecc
63-
for (genvar w = 0; w < dut.NumWays; w++) begin : gen_ecc_ifs
63+
for (genvar w = 0; w < ibex_pkg::IC_NUM_WAYS; w++) begin : gen_ecc_ifs
6464
bind dut.gen_rams[w].tag_bank.gen_badbit.u_impl_badbit ibex_icache_ecc_if tag_bank_if (.*);
6565
bind dut.gen_rams[w].data_bank.gen_badbit.u_impl_badbit ibex_icache_ecc_if data_bank_if (.*);
6666

@@ -93,7 +93,7 @@ module tb #(parameter bit ICacheECC = 1'b0);
9393

9494
// Record the number of (ECC) ways in the config database. The top-level environment's config
9595
// will use this to decide how many agents to create.
96-
uvm_config_db#(int unsigned)::set(null, "*", "num_ecc_ways", dut.ICacheECC ? dut.NumWays : 0);
96+
uvm_config_db#(int unsigned)::set(null, "*", "num_ecc_ways", dut.ICacheECC ? ibex_pkg::IC_NUM_WAYS : 0);
9797

9898
$timeformat(-12, 0, " ps", 12);
9999
run_test();

ibex_icache.core

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ filesets:
1010
- lowrisc:prim:secded
1111
- lowrisc:prim:ram_1p
1212
- lowrisc:prim:assert
13+
- lowrisc:ibex:ibex_pkg
1314
files:
1415
- rtl/ibex_icache.sv
1516
file_type: systemVerilogSource

0 commit comments

Comments
 (0)