]> jspc29.x-matter.uni-frankfurt.de Git - tdc.git/commitdiff
Add hardware ID to TDC header. Remove unnecessary no-hit-detection
authorJan Michel <j.michel@gsi.de>
Thu, 23 Aug 2018 14:36:43 +0000 (16:36 +0200)
committerJan Michel <j.michel@gsi.de>
Thu, 23 Aug 2018 14:36:43 +0000 (16:36 +0200)
releases/tdc_v2.3/Readout_record.vhd

index a5666af28362c5349775fc5a14aec8039bb9df0f..b7bfaabf3f163a0bf21f09cc0cb6e589fe88813e 100644 (file)
@@ -688,8 +688,9 @@ begin  -- behavioral
   -- Error, warning bits set in the header
 
   header_error_bits(0)           <= or_all(CH_ALMOST_FULL_IN);
-  header_error_bits(15 downto 1) <= (others => '0');
-
+  header_error_bits(7 downto 1)  <= (others => '0');
+  header_error_bits(15 downto 8) <= HARDWARE_INFO(31 downto 24);
+  
   -- Error, warning bits set in the trailer
   trailer_error_bits(0)           <= missing_ref_time;  -- info from the triggerhandler
   trailer_error_bits(1)           <= READOUT_RX.trg_spurious;  -- if there is a wrong readout because of a spurious timing trigger
@@ -724,20 +725,20 @@ begin  -- behavioral
 
 --   any_hit <= or_all(hit_in_i);
 
-  CheckHitStatus : process (CLK_100) is
-  begin
-    if rising_edge(CLK_100) then        -- rising clock edge
-      if LIGHT_MODE_IN = '0' or TRG_WIN_EN_IN = '1' then
+--   CheckHitStatus : process (CLK_100) is
+--   begin
+--     if rising_edge(CLK_100) then        -- rising clock edge
+--       if LIGHT_MODE_IN = '0' or TRG_WIN_EN_IN = '1' then
         isNoHit   <= '0';
         isNoHit_r <= '0';
-      elsif READOUT_RX.valid_timing_trg = '1' then
-        isNoHit   <= '1';
-        isNoHit_r <= isNoHit;
-      elsif or_all(hit_in_i) = '1' then
-        isNoHit <= '0';
-      end if;
-    end if;
-  end process CheckHitStatus;
+--       elsif READOUT_RX.valid_timing_trg = '1' then
+--         isNoHit   <= '1';
+--         isNoHit_r <= isNoHit;
+--       elsif or_all(hit_in_i) = '1' then
+--         isNoHit <= '0';
+--       end if;
+--     end if;
+--   end process CheckHitStatus;
 -------------------------------------------------------------------------------
 -- Debug and statistics words
 -------------------------------------------------------------------------------