Skip to content

Commit 682eb75

Browse files
committed
[racl_ctrl,dv] Use the exposed nr_external_subscribing_ips in tb
Signed-off-by: Rupert Swarbrick <[email protected]>
1 parent 1ab2758 commit 682eb75

File tree

2 files changed

+4
-12
lines changed
  • hw
    • ip_templates/racl_ctrl/dv
    • top_darjeeling/ip_autogen/racl_ctrl/dv

2 files changed

+4
-12
lines changed

hw/ip_templates/racl_ctrl/dv/tb.sv.tpl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@ module tb;
1616
`include "uvm_macros.svh"
1717
`include "dv_macros.svh"
1818

19-
// NOTE: These values come from the top-level instantiation. For now, we're fixing them to
20-
// something reasonable, but we don't intend the testing to have an opinion about their values
21-
//
22-
// *These* values get passed through to the environment through the config db.
23-
localparam int unsigned NumSubscribingIps = 5;
24-
localparam int unsigned NumExternalSubscribingIps = 5;
19+
localparam int unsigned NumSubscribingIps = ${nr_subscribing_ips};
20+
localparam int unsigned NumExternalSubscribingIps = ${nr_external_subscribing_ips};
2521

2622
wire clk, rst_n, rst_shadowed_n;
2723
wire intr_racl_error;

hw/top_darjeeling/ip_autogen/racl_ctrl/dv/tb.sv

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@ module tb;
1616
`include "uvm_macros.svh"
1717
`include "dv_macros.svh"
1818

19-
// NOTE: These values come from the top-level instantiation. For now, we're fixing them to
20-
// something reasonable, but we don't intend the testing to have an opinion about their values
21-
//
22-
// *These* values get passed through to the environment through the config db.
23-
localparam int unsigned NumSubscribingIps = 5;
24-
localparam int unsigned NumExternalSubscribingIps = 5;
19+
localparam int unsigned NumSubscribingIps = 11;
20+
localparam int unsigned NumExternalSubscribingIps = 1;
2521

2622
wire clk, rst_n, rst_shadowed_n;
2723
wire intr_racl_error;

0 commit comments

Comments
 (0)