Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions hw/ip_templates/racl_ctrl/data/racl_ctrl.tpldesc.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
type: "int"
default: "2"
}
{
name: "nr_external_subscribing_ips"
desc: "Number of external RACL subscribing IPs"
type: "int"
default: "1"
}
{
name: "policies"
desc: "The RACL policies"
Expand Down
8 changes: 2 additions & 6 deletions hw/ip_templates/racl_ctrl/dv/tb.sv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@ module tb;
`include "uvm_macros.svh"
`include "dv_macros.svh"

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

wire clk, rst_n, rst_shadowed_n;
wire intr_racl_error;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@
topname: darjeeling
uniquified_modules: {}
enable_shadow_reg: true
nr_external_subscribing_ips: 1
}
}
8 changes: 2 additions & 6 deletions hw/top_darjeeling/ip_autogen/racl_ctrl/dv/tb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@ module tb;
`include "uvm_macros.svh"
`include "dv_macros.svh"

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

wire clk, rst_n, rst_shadowed_n;
wire intr_racl_error;
Expand Down
Loading