fix(prim): Lint fix for line length
This commit waives the exceeding line length for prim_assert_sec_cm and
also fixes one of the line exceeding errors.
Signed-off-by: Eunchan Kim <eunchan@opentitan.org>
diff --git a/hw/ip/prim/lint/prim_assert.waiver b/hw/ip/prim/lint/prim_assert.waiver
index f811952..83286a7 100644
--- a/hw/ip/prim/lint/prim_assert.waiver
+++ b/hw/ip/prim/lint/prim_assert.waiver
@@ -9,7 +9,8 @@
# unfortunately most tools do not support line wrapping within the declaration of macro functions,
# hence we have to waive line length violations.
-waive -rules {LINE_LENGTH} -location {prim_assert.sv} -msg {Line length of} \
+waive -rules {LINE_LENGTH} -location {prim_assert.sv prim_assert_sec_cm.svh} \
+ -msg {Line length of} \
-comment "Some macros cannot be line-wrapped, as some tools do not support that."
waive -rules {LINE_LENGTH} -location {prim_flop_macros.sv} -msg {Line length of} \
-comment "Some macros cannot be line-wrapped, as some tools do not support that."
diff --git a/hw/ip/prim/rtl/prim_assert_sec_cm.svh b/hw/ip/prim/rtl/prim_assert_sec_cm.svh
index dac5c88..e802441 100644
--- a/hw/ip/prim/rtl/prim_assert_sec_cm.svh
+++ b/hw/ip/prim/rtl/prim_assert_sec_cm.svh
@@ -9,7 +9,9 @@
// Helper macros
`define ASSERT_ERROR_TRIGGER_ALERT(NAME_, PRIM_HIER_, ALERT_, GATE_, MAX_CYCLES_, ERR_NAME_) \
- `ASSERT(FpvSecCm``NAME_``, $rose(PRIM_HIER_.ERR_NAME_) && !(GATE_) |-> ##[0:MAX_CYCLES_] (ALERT_.alert_p)) \
+ `ASSERT(FpvSecCm``NAME_``, \
+ $rose(PRIM_HIER_.ERR_NAME_) && !(GATE_) \
+ |-> ##[0:MAX_CYCLES_] (ALERT_.alert_p)) \
`ifdef INC_ASSERT \
assign PRIM_HIER_.unused_assert_connected = 1'b1; \
`endif \