Skip to content

Commit

Permalink
axi_adc_decimate: Export signals indicating the rate
Browse files Browse the repository at this point in the history
- oversampling_en signal
- filter mask value

Those signals will be used by the axi_adc_trigger.
  • Loading branch information
AndreiGrozav committed Aug 13, 2020
1 parent 2e0ba5b commit c797a2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/axi_adc_decimate/axi_adc_decimate.v
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ module axi_adc_decimate #(
output [15:0] adc_dec_data_b,
output adc_dec_valid_a,
output adc_dec_valid_b,
output [ 2:0] adc_data_rate,
output adc_oversampling_en,

// axi interface

Expand Down Expand Up @@ -101,6 +103,9 @@ module axi_adc_decimate #(
assign up_clk = s_axi_aclk;
assign up_rstn = s_axi_aresetn;

assign adc_data_rate = filter_mask;
assign adc_oversampling_en = |decimation_ratio;

axi_adc_decimate_filter #(
.CORRECTION_DISABLE(CORRECTION_DISABLE)
) axi_adc_decimate_filter (
Expand Down

0 comments on commit c797a2e

Please sign in to comment.