Skip to content

Commit

Permalink
Fixed Verilator lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rejunity committed Sep 22, 2023
1 parent 10949b1 commit 4c4e2dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/attenuation.v
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* verilator lint_off REALCVT */

module attenuation #( parameter CONTROL_BITS = 4, parameter VOLUME_BITS = 15 ) (
input wire in,
Expand Down
3 changes: 3 additions & 0 deletions src/noise.v
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* verilator lint_off WIDTH */

// For the SMS (1 and 2), Genesis and Game Gear, the tapped bits are bits 0 and 3 ($0009), fed back into bit 15.
// For the SG-1000, OMV, SC-3000H, BBC Micro and Colecovision, the tapped bits are bits 0 and 1 ($0003), fed back into bit 14.
// For the Tandy 1000, the tapped bits are bits 0 and 4 ($0011), fed back into bit 14.
Expand Down Expand Up @@ -35,6 +37,7 @@ module noise #( parameter LFSR_BITS = 15, LFSR_TAP0 = 0, LFSR_TAP1 = 1, paramete
.out(noise_trigger));

reg is_white_noise;
reg reset_lfsr;
reg [LFSR_BITS-1:0] lfsr;
assign reset_lfsr = reset | restart_noise;
always @(posedge noise_trigger, posedge reset_lfsr) begin
Expand Down

0 comments on commit 4c4e2dd

Please sign in to comment.