axi_adc_decimate: Export signals indicating the rate

- oversampling_en signal
- filter mask value

Those signals will be used by the axi_adc_trigger.
main
AndreiGrozav 2020-05-07 21:09:58 +03:00 committed by AndreiGrozav
parent 2e0ba5bffd
commit c797a2e14f
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,8 @@ module axi_adc_decimate #(
output [15:0] adc_dec_data_b, output [15:0] adc_dec_data_b,
output adc_dec_valid_a, output adc_dec_valid_a,
output adc_dec_valid_b, output adc_dec_valid_b,
output [ 2:0] adc_data_rate,
output adc_oversampling_en,
// axi interface // axi interface
@ -101,6 +103,9 @@ module axi_adc_decimate #(
assign up_clk = s_axi_aclk; assign up_clk = s_axi_aclk;
assign up_rstn = s_axi_aresetn; assign up_rstn = s_axi_aresetn;
assign adc_data_rate = filter_mask;
assign adc_oversampling_en = |decimation_ratio;
axi_adc_decimate_filter #( axi_adc_decimate_filter #(
.CORRECTION_DISABLE(CORRECTION_DISABLE) .CORRECTION_DISABLE(CORRECTION_DISABLE)
) axi_adc_decimate_filter ( ) axi_adc_decimate_filter (