fix: replace UNUSEDPARAM/UNUSEDSIGNAL with UNUSED for verilator lint

Verilator does not recognize UNUSEDPARAM or UNUSEDSIGNAL.
Correct suppression code is UNUSED.
This commit is contained in:
2026-06-30 02:10:07 +08:00
parent 92777efd30
commit 542495cb52
14 changed files with 1178 additions and 593 deletions

View File

@@ -30,16 +30,16 @@
`include "defines.vh"
/* verilator lint_off UNUSEDPARAM */
/* verilator lint_off UNUSED */
(* use_dsp = "no" *)
module sample_ntt_sync #(parameter K = 4) (
/* verilator lint_on UNUSEDPARAM */
/* verilator lint_on UNUSED */
input clk,
input rst_n,
input [255:0] rho_i,
/* verilator lint_off UNUSEDSIGNAL */
/* verilator lint_off UNUSED */
input [2:0] k_i,
/* verilator lint_on UNUSEDSIGNAL */
/* verilator lint_on UNUSED */
input [1:0] i_idx,
input [1:0] j_idx,
input valid_i,
@@ -73,12 +73,12 @@ module sample_ntt_sync #(parameter K = 4) (
// ================================================================
// Registered inputs (captured on valid_i)
// ================================================================
/* verilator lint_off UNUSEDSIGNAL */
/* verilator lint_off UNUSED */
reg [255:0] rho_r;
reg [2:0] k_r;
reg [1:0] i_r;
reg [1:0] j_r;
/* verilator lint_on UNUSEDSIGNAL */
/* verilator lint_on UNUSED */
// ================================================================
// Coefficient counter (0..256). 9 bits to avoid overflow when
@@ -164,9 +164,9 @@ module sample_ntt_sync #(parameter K = 4) (
// ================================================================
wire kc_valid_i;
wire [1599:0] kc_state_i;
/* verilator lint_off UNUSEDSIGNAL */
/* verilator lint_off UNUSED */
wire kc_ready_o;
/* verilator lint_on UNUSEDSIGNAL */
/* verilator lint_on UNUSED */
wire [1599:0] kc_state_o;
wire kc_valid_o;