From: Andreas Neiser Date: Thu, 19 Feb 2015 08:13:54 +0000 (+0100) Subject: Finally defined baseline, but averaging not working yet X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=4f5701252bf62fe380f7b66bc8646d287cc1fe4e;p=trb3.git Finally defined baseline, but averaging not working yet --- 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);