[sram_ctrl] waive unused paramter error.
sram_ctrl currently does not instantiate the memory it controls.
As a result, parameters that are actually used by the memory and
not the controller appear as "unused".
Signed-off-by: Timothy Chen <timothytim@google.com>
diff --git a/hw/ip/sram_ctrl/rtl/sram_ctrl.sv b/hw/ip/sram_ctrl/rtl/sram_ctrl.sv
index f2b7796..e8ba080 100644
--- a/hw/ip/sram_ctrl/rtl/sram_ctrl.sv
+++ b/hw/ip/sram_ctrl/rtl/sram_ctrl.sv
@@ -80,6 +80,13 @@
assign sram_scr_o.key = key_q;
assign sram_scr_o.nonce = nonce_q[NonceWidth-1:0];
+ // tie-off unused nonce bits
+ if (otp_ctrl_pkg::SramNonceWidth > NonceWidth) begin : gen_nonce_tieoff
+ logic unused_nonce;
+ assign unused_nonce = ^nonce_q[otp_ctrl_pkg::SramNonceWidth-1:NonceWidth];
+ end
+
+
// Status register outputs
logic parity_error_d, parity_error_q;
logic escalated_q;
@@ -103,6 +110,12 @@
logic unused_error;
assign unused_error = sram_scr_i.rerror[0];
+ // Parameter not used within module
+ // The memory is the user of the perm parameter. At the moment memories are not instantianted
+ // inside sram_ctrl but parallel to it.
+ lfsr_perm_t unused_perm_param;
+ assign unused_perm_param = RndCnstSramLfsrPerm;
+
//////////////////
// Alert Sender //
@@ -266,6 +279,8 @@
logic unused_otp_bits;
assign unused_otp_bits = ^otp_hw_cfg_i;
+
+
////////////////
// Assertions //
////////////////