Skip to content

Commit db927a6

Browse files
Fix module name to match filename: hdc_ngram_encoder_v3
Changed module name from 'hdc_ngram_encoder_v4_pipelined' to 'hdc_ngram_encoder_v3' to match the filename (hdc_ngram_encoder_v3.sv). This resolves the Verilator warning: %Warning-DECLFILENAME: Filename 'hdc_ngram_encoder_v3' does not match MODULE name: 'hdc_ngram_encoder_v4_pipelined' Also updated assertion warning messages to use v3 instead of v4.
1 parent 3ef1c33 commit db927a6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎rtl/hdc/hdc_ngram_encoder_v3.sv‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// =============================================================================
22
// Project: Open Cognitive Core Project (OCCP)
3-
// File: hdc_ngram_encoder_v4_pipelined.sv
3+
// File: hdc_ngram_encoder_v3.sv
44
// Description: Pipelined N-gram encoder with 4-stage token_to_hv
55
// - Breaks 1024-bit LFSR hash into 4 x 256-bit stages
66
// - Reduces critical path by 4x
@@ -25,7 +25,7 @@
2525
`timescale 1ns/1ps
2626
`endif
2727

28-
module hdc_ngram_encoder_v4_pipelined #(
28+
module hdc_ngram_encoder_v3 #(
2929
parameter HV_DIM = 1024,
3030
parameter NGRAM_SIZE = 3,
3131
parameter TOKEN_WIDTH = 16,
@@ -237,11 +237,11 @@ module hdc_ngram_encoder_v4_pipelined #(
237237
`ifndef SYNTHESIS
238238
assert property (@(posedge clk) disable iff (!rst_n)
239239
(ngram_valid) |-> (ngram_hv != '0) && (ngram_hv != '1)
240-
) else $warning("HDC_NGRAM_V4: Degenerate hypervector!");
240+
) else $warning("HDC_NGRAM_V3: Degenerate hypervector!");
241241

242242
assert property (@(posedge clk) disable iff (!rst_n)
243243
clear_context |=> !ngram_valid
244-
) else $error("HDC_NGRAM_V4: valid not cleared!");
244+
) else $error("HDC_NGRAM_V3: valid not cleared!");
245245
`endif
246246

247247
endmodule

0 commit comments

Comments
 (0)