![]() |
Belle II KLM Scint Firmware
1
|
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 ' ) |
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
Definition at line 26 of file KLMTrigBitsProc.vhd.