Skip to content

Commit

Permalink
[membkdr] Switch to uint32_t in constructor
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Schilling <[email protected]>
  • Loading branch information
Razer6 committed Jan 17, 2025
1 parent 3a81698 commit 950092e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hw/dv/sv/mem_bkdr_util/mem_bkdr_util.sv
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class mem_bkdr_util extends uvm_object;
event writememh_event;

// Number of PRINCE half rounds for scrambling, can be [1..5].
protected int num_prince_rounds_half;
protected uint32_t num_prince_rounds_half;

// Construct an instance called name.
//
Expand Down Expand Up @@ -98,11 +98,11 @@ class mem_bkdr_util extends uvm_object;
// no tiles that would need paths at all.
//
// tile_depth The size of each tile in bits. By default, this is the entire memory.
function new(string name = "", string path, int unsigned depth,
function new(string name = "", string path, uint32_t depth,
longint unsigned n_bits, err_detection_e err_detection_scheme,
int num_prince_rounds_half = 3,
int extra_bits_per_subword = 0, int unsigned system_base_addr = 0,
string tiling_path = "", int unsigned tile_depth = depth);
uint32_t num_prince_rounds_half = 3,
uint32_t extra_bits_per_subword = 0, uint32_t system_base_addr = 0,
string tiling_path = "", uint32_t tile_depth = depth);
super.new(name);
`DV_CHECK_FATAL(!(n_bits % depth), "n_bits must be divisible by depth.")

Expand Down

0 comments on commit 950092e

Please sign in to comment.