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
vk2seb committed Oct 6, 2023
1 parent 20a6b1e commit 955c455
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 955c455

Please sign in to comment.