]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
Finally defined baseline, but averaging not working yet
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Thu, 19 Feb 2015 08:13:54 +0000 (09:13 +0100)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Sat, 13 Jun 2015 15:36:57 +0000 (17:36 +0200)
ADC/source/adc_ad9219.vhd
ADC/source/adc_processor_cfd_ch.vhd

index 2e5989cb74cf1c9b40b1098fac16f3d54866972a..4299b00420e0c4d355af90a24be7701ae4b6ecb7 100644 (file)
@@ -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;
index 6572e1280fe1391821a0940f7043ad423c783de1..c73816c8c02010ef9de5b609951231e852518e1c 100644 (file)
@@ -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);