Skip to content

Commit

Permalink
fix what looks like an off-by-one in the ak4619 driver
Browse files Browse the repository at this point in the history
  • Loading branch information
schnommus committed Oct 4, 2023
1 parent 052d6b0 commit 60dd528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateware/drivers/ak4619.sv
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ always_ff @(posedge clk_256fs) begin
if (bit_counter == 0) begin
adc_words[channel] <= 0;
end
if (bit_counter <= W) begin
if (bit_counter < W) begin
adc_words[channel][W - bit_counter - 1] <= sdout1;
end
end else begin
Expand Down

0 comments on commit 60dd528

Please sign in to comment.