diff --git a/gateware/drivers/ak4619.sv b/gateware/drivers/ak4619.sv index 992ca3a..2e8903f 100644 --- a/gateware/drivers/ak4619.sv +++ b/gateware/drivers/ak4619.sv @@ -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