axi_ad9963: Sign extend ADC data when processing is bypassed

Match the behaviour of the processing data path and sign extend the output
data to 16-bit.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
main
Lars-Peter Clausen 2017-03-28 14:50:17 +02:00
parent a0e30a2211
commit 547dc04857
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ module axi_ad9963_rx_channel #(
generate
if (DATAPATH_DISABLE == 1) begin
assign adc_dfmt_valid_s = adc_valid;
assign adc_dfmt_data_s = {4'd0, adc_data};
assign adc_dfmt_data_s = {{4{adc_data[11]}}, adc_data};
end else begin
ad_datafmt #(.DATA_WIDTH (12)) i_ad_datafmt (
.clk (adc_clk),