[pwm,lint] Move unused regen signal across CDC; waive lint warning
This signal is here as a reminder to implement reg-enable based
register locking, but lint tools warn both that we're not using it and
that we're not using the regen field of reg2hw_sync.
Move the TODO message to the other side of the CDC primitive and
rename it "unused_regen", which means Verilator and AscentLint should
stop complaining about it (but the TODO message is still clear).
Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
diff --git a/hw/ip/pwm/rtl/pwm_core.sv b/hw/ip/pwm/rtl/pwm_core.sv
index 211981a..9db73e0 100644
--- a/hw/ip/pwm/rtl/pwm_core.sv
+++ b/hw/ip/pwm/rtl/pwm_core.sv
@@ -15,11 +15,6 @@
output logic [NOutputs-1:0] pwm_o
);
- logic regen;
-
- // TODO: implement register locking
- assign regen = reg2hw.regen.q;
-
pwm_reg_pkg::pwm_reg2hw_t reg2hw_sync;
logic clr_phase_cntr;
logic [NOutputs-1:0] clr_blink_cntr;
@@ -54,6 +49,11 @@
logic phase_ctr_en;
logic cycle_end;
+ logic unused_regen;
+
+ // TODO: implement register locking
+ assign unused_regen = reg2hw_sync.regen.q;
+
assign cntr_en_sync = reg2hw_sync.cfg.cntr_en.q;
assign dc_resn_sync = reg2hw_sync.cfg.dc_resn.q;
assign clk_div_sync = reg2hw_sync.cfg.clk_div.q;