Belle II KLM Scint Firmware  1
KLMTrigBitsProc Entity Reference
Inheritance diagram for KLMTrigBitsProc:
fifo_cc bram_sdp_cc KLMReadoutCtrl klm_scint

Entities

beh  architecture
 

Libraries

ieee 
work 

Use Clauses

std_logic_1164 
numeric_std 
std_logic_unsigned 
std_logic_misc 
conc_intfc_pkg  Package <conc_intfc_pkg>
klm_scint_pkg  Package <klm_scint_pkg>
klm_scrod_pkg  Package <klm_scrod_pkg>

Generics

CUR_WIN_LATENCY_g  integer := 5
CHECK_AND_READ_TIME_g  integer := 6
TB_LATCH_DELAY_g  integer := 4

Ports

clk   in std_logic
rst   in std_logic
tb   in std_logic_vector ( 4 downto 0 )
ctime   in std_logic_vector ( 26 downto 0 )
cur_win   in std_logic_vector ( 8 downto 0 )
localtrg   in std_logic
ctime_trg   in std_logic_vector ( 26 downto 0 )
sca_rst   in std_logic
sca_cnt_max   in std_logic_vector ( 7 downto 0 )
asic_on   in std_logic
lookback   in std_logic_vector ( 15 downto 0 )
lookback_width   in std_logic_vector ( 15 downto 0 )
ctime_max   in std_logic_vector ( 26 downto 0 )
hit_bits   out std_logic_vector ( 4 downto 0 )
hit_win   out std_logic_vector ( 8 downto 0 )
is_hit   out std_logic := ' 0 '
self_trig   out std_logic := ' 0 '
sca_busy   out std_logic := ' 0 '
scalers_cnt   out std_logic_vector ( 31 downto 0 ) := ( others = > ' 0 ' )
fifo_full_cnt   out std_logic_vector ( 15 downto 0 ) := ( others = > ' 0 ' )

Detailed Description

Module to process trigger bits (TB) signals from TargetX ASICs. The module does timestamping of trigger bits with ctime value and combines data to be sent to DAQ.

            tb
             _                              trg
  __________| |______________________________|________________________
       <---------------><------------------->
         lookback width       lookback                                 

Issues:

  1. (Resolved - CK) A lot of logic for counting scalers on all channels then throwing away all channels but one in TBScalersMux.vhd. Already doing this in software by setting all trigger thresholds to zero except channel of interest.

Definition at line 26 of file KLMTrigBitsProc.vhd.


The documentation for this class was generated from the following file: