]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
Little improvements for simulation
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Fri, 6 Feb 2015 17:43:32 +0000 (18:43 +0100)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Sat, 13 Jun 2015 15:36:54 +0000 (17:36 +0200)
ADC/source/adc_processor.vhd

index b50e4f65c58b127966c7bdf588119dff12475d95..43a35679cfa0692ae35dfab3f28fd3f0ebe049e9 100644 (file)
@@ -114,7 +114,7 @@ architecture adc_processor_arch of adc_processor is
   signal channelselect, last_channelselect, channelselect_valid    : integer range 0 to 3                    := 0;
   signal prepare_header, last_prepare_header, prepare_header_valid : std_logic                               := '0';
   signal blockcurrent, last_blockcurrent                           : integer range 0 to 3                    := 0;
-  signal myavg                                                     : unsigned(7 downto 0);
+  signal myavg                                                     : unsigned(7 downto 0) := (others => '0');
   signal ram_read_rdo                                              : std_logic_vector(CHANNELS - 1 downto 0) := (others => '0');
 
   signal psa_data_i                 : std_logic_vector(8 downto 0);
@@ -914,6 +914,7 @@ begin
         cfd_state     <= CFD_WRITE_READCOUNT;
 
       when CFD_WRITE_READCOUNT =>
+        report "CFD ch=" & integer'image(ch) & ": zero=" & integer'image(readcount_zerox) severity note;
         RDO_write_cfd <= '1';
         RDO_data_cfd  <= std_logic_vector(to_unsigned(readcount_zerox, RDO_data_cfd'length));
         cfd_state     <= CFD_WRITE_ZEROX1;