From 4f5701252bf62fe380f7b66bc8646d287cc1fe4e Mon Sep 17 00:00:00 2001 From: Andreas Neiser Date: Thu, 19 Feb 2015 09:13:54 +0100 Subject: [PATCH] Finally defined baseline, but averaging not working yet --- ADC/source/adc_ad9219.vhd | 1 + ADC/source/adc_processor_cfd_ch.vhd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ADC/source/adc_ad9219.vhd b/ADC/source/adc_ad9219.vhd index 2e5989c..4299b00 100644 --- a/ADC/source/adc_ad9219.vhd +++ b/ADC/source/adc_ad9219.vhd @@ -288,6 +288,7 @@ begin DATA_VALID_OUT(i) <= '1'; counter(i) <= counter(i) + 1; else + DATA_OUT(i * 40 + 39 downto i * 40 + 0) <= (others => '0'); DATA_VALID_OUT(i) <= '0'; end if; end process; diff --git a/ADC/source/adc_processor_cfd_ch.vhd b/ADC/source/adc_processor_cfd_ch.vhd index 6572e12..c73816c 100644 --- a/ADC/source/adc_processor_cfd_ch.vhd +++ b/ADC/source/adc_processor_cfd_ch.vhd @@ -33,7 +33,7 @@ architecture arch of adc_processor_cfd_ch is signal baseline, input : unsigned(RESOLUTION - 1 downto 0); - signal baseline_average : unsigned(RESOLUTION + 2 ** CONF.BaselineAverage'length - 1 - 1 downto 0); + signal baseline_average : unsigned(RESOLUTION + 2 ** CONF.BaselineAverage'length - 1 - 1 downto 0) := (others => '0'); type delay_baseline_t is array (31 downto 0) of unsigned_in_thresh_t; signal delay_baseline : delay_baseline_t := (others => unsigned_in_thresh_t_INIT); -- 2.43.0