[dv] Cleanup lint warnings in clk_rst_if
Signed-off-by: Srikrishna Iyer <sriyer@google.com>
diff --git a/hw/dv/sv/common_ifs/clk_rst_if.sv b/hw/dv/sv/common_ifs/clk_rst_if.sv
index 105f606..3a27ac0 100644
--- a/hw/dv/sv/common_ifs/clk_rst_if.sv
+++ b/hw/dv/sv/common_ifs/clk_rst_if.sv
@@ -185,7 +185,7 @@
// 2 - async assert, async dessert
// 3 - clk gated when reset asserted
// Note: for power on reset, please ensure pre_reset_dly_clks is set to 0
- // TODO #2338 issue workaround - $urandom call moved from default argument value to function body
+ // TODO #2338 issue workaround - $urandom call moved from default argument value to function body
task automatic apply_reset(int pre_reset_dly_clks = 0,
integer reset_width_clks = 'x,
int post_reset_dly_clks = 0,
@@ -214,6 +214,13 @@
#(dly_ps * 1ps);
o_rst_n <= 1'b1;
end
+ default: begin
+`ifdef VERILATOR
+ $error({msg_id, $sformatf("rst_n_scheme %0d not supported", rst_n_scheme)});
+`else
+ `uvm_fatal(msg_id, $sformatf("rst_n_scheme %0d not supported", rst_n_scheme))
+`endif
+ end
endcase
wait_clks(post_reset_dly_clks);
endtask