Belle II KLM Scint Firmware  1
klm_scint_pkg Package Reference
Package Body >> klm_scint_pkg

Libraries

ieee 
work 

Use Clauses

std_logic_1164 
conc_intfc_pkg  Package <conc_intfc_pkg>
klm_scrod_pkg  Package <klm_scrod_pkg>
slv5 
slv9 

Constants

TargetRegWidth  integer := 19
ROI  integer := 128
wave_stat_0  waveform_stat_t := ( ped_meas_busy = > ' 0 ' , fe_dbg_a = > " 00 " , fe_dbg_b = > " 00 " , wave_proc_busy = > ' 0 ' )
KlmScrodHitDataNull  KlmScrodHitDataType := ( first_hit = > ' 0 ' , last_hit = > ' 0 ' , null_hit = > ' 0 ' , word1 = > ( others = > ' 0 ' ) , word2 = > ( others = > ' 0 ' ) , word3 = > ( others = > ' 0 ' ) , word4 = > ( others = > ' 0 ' ) )
KlmScrodStatusType0  KlmScrodStatusType := ( Version = > ( others = > ' 0 ' ) , TxRegBusy = > ' 0 ' , TbScalersChnArr = > ( others = > ( others = > ' 0 ' ) ) , TrgCnt = > ( others = > ' 0 ' ) , FullProcCnt = > ( others = > ' 0 ' ) , SimpProcCnt = > ( others = > ' 0 ' ) , NullProcCnt = > ( others = > ' 0 ' ) , TbScalersBusy = > ' 0 ' , TbFifoFullCnt = > ( others = > ( others = > ' 0 ' ) ) , QtFifoFullCnt = > ( others = > ' 0 ' ) , MppcDacBusy = > ' 0 ' , B2ttUp = > ' 0 ' , B2ClkUp = > ' 0 ' , B2ttStaIddr = > ( others = > ' 0 ' ) , B2ttCntIdelay = > ( others = > ' 0 ' ) , StartUtime = > ( others = > ' 0 ' ) , B2ttUpUTime = > ( others = > ' 0 ' ) , CurUTime = > ( others = > ' 0 ' ) , Shout = > ( others = > ' 0 ' ) , WaveStat = > wave_stat_0 , debug_wave_we = > ( others = > ' 0 ' ) , debug_wave_din = > ( others = > ( others = > ' 0 ' ) ) , SPS_hist_rd_data = > ( others = > ( others = > ' 0 ' ) ) , sfp_stat = > ( others = > ' 0 ' ) , aurora_stat = > ( others = > ' 0 ' ) )
default_wave_config  wave_config_t := ( measure_peds = > ' 0 ' , use_ftsw_trig = > ' 0 ' , ped_sub_ena = > ' 1 ' , ramp_length = > " 010111 " , use_force_trig = > ' 0 ' , t_samp_addr_settle = > " 0000 " , t_setup_ss_any = > " 0010 " , t_strobe_settle = > " 0000 " , t_sr_clk_high = > " 0011 " , t_sr_clk_low = > " 0010 " , t_sr_clk_strobe = > " 0001 " , LE_time_thresh = > " 000000110010 " , force_trig_asic = > ( others = > 0 ) , force_trig_bits = > " 00000 " , SPS_hist_rd_addr = > ( others = > ( others = > ' 0 ' ) ) , stream_peds = > ' 0 ' )
KlmScrodConfigZero  KlmScrodConfigType := ( TBLookBack = > " 0000000111110100 " , TBLookBackWidth = > " 0000000001000000 " , TBScalersPeriod = > x " 08 " , TxLatchPeriod = > x " 4 " , TxLoadPeriod = > x " 8 " , TxProcMask = > " 1111111111 " , TxRegData = > ( others = > ' 0 ' ) , TxRegCtrlMask = > ( others = > ' 0 ' ) , MppcDacCtrl = > ( others = > ' 0 ' ) , AlwaysUpdStat = > ' 1 ' , wave_config = > default_wave_config )
null_trig_info_t0  trig_info_type_0 := ( bits = > ( others = > ( others = > ' 0 ' ) ) , wr_time = > ( others = > ( others = > ' 0 ' ) ) , ctime = > ( others = > ' 0 ' ) , mask = > ( others = > ' 0 ' ) )
null_trig_info_t1  trig_info_type_1 := ( bits = > ( others = > ( others = > ' 0 ' ) ) , wr_time = > ( others = > ( others = > ' 0 ' ) ) , ctime = > ( others = > ' 0 ' ) , mask = > ( others = > ' 0 ' ) , first_dig_win = > ( others = > ' 0 ' ) , last_dig_win = > ( others = > ' 0 ' ) )
null_TX_ana_wr_ena_mask  TARGETX_analong_wr_ena_mask_t := ( ' 0 ' , ' 0 ' , " 000000000 " , " 0000 " )

Types

i5 array ( natural range <> ) of st_i5
slv2 array ( natural range <> ) of st_slv2
slv3 array ( natural range <> ) of st_slv3
slv4 array ( natural range <> ) of st_slv4
slv7 array ( natural range <> ) of st_slv7
slv8 array ( natural range <> ) of st_slv8
slv10 array ( natural range <> ) of st_slv10
slv11 array ( natural range <> ) of st_slv11
slv12 array ( natural range <> ) of st_slv12
slv14 array ( natural range <> ) of st_slv14
slv15 array ( natural range <> ) of st_slv15
slv16 array ( natural range <> ) of st_slv16
slv22 array ( natural range <> ) of st_slv22
slv24 array ( natural range <> ) of st_slv24
slv32 array ( natural range <> ) of st_slv32
slv41 array ( natural range <> ) of st_slv41
wave_stat_vec array ( natural range <> ) of waveform_stat_t
scalers32_all_type ( 0 to 9 ) slv32 ( 15 downto 0 )
ReadOutModesType ( ROMODE_DUMMY , ROMODE_SIMPLE , ROMODE_TEST , ROMODE_SCALERS , ROMODE_FULL )
trig_queue_type array ( natural range <> ) of trig_info_type_1

Subtypes

st_i5  integer range 0 to 4
st_slv2  std_logic_vector ( 1 downto 0 )
st_slv3  std_logic_vector ( 2 downto 0 )
st_slv4  std_logic_vector ( 3 downto 0 )
st_slv5  std_logic_vector ( 4 downto 0 )
st_slv7  std_logic_vector ( 6 downto 0 )
st_slv8  std_logic_vector ( 7 downto 0 )
st_slv9  std_logic_vector ( 8 downto 0 )
st_slv10  std_logic_vector ( 9 downto 0 )
st_slv11  std_logic_vector ( 10 downto 0 )
st_slv12  std_logic_vector ( 11 downto 0 )
st_slv14  std_logic_vector ( 13 downto 0 )
st_slv15  std_logic_vector ( 14 downto 0 )
st_slv16  std_logic_vector ( 15 downto 0 )
st_slv22  std_logic_vector ( 21 downto 0 )
st_slv24  std_logic_vector ( 23 downto 0 )
st_slv32  std_logic_vector ( 31 downto 0 )
st_slv41  std_logic_vector ( 40 downto 0 )

Records

waveform_stat_t  
ped_meas_busy  std_logic
fe_dbg_a  std_logic_vector ( 1 downto 0 )
fe_dbg_b  std_logic_vector ( 1 downto 0 )
wave_proc_busy  std_logic
KlmScrodHitDataType  
first_hit  std_logic
last_hit  std_logic
null_hit  std_logic
word1  std_logic_vector ( 15 downto 0 )
word2  std_logic_vector ( 15 downto 0 )
word3  std_logic_vector ( 15 downto 0 )
word4  std_logic_vector ( 15 downto 0 )
KlmScrodStatusType  
Version  std_logic_vector ( 15 downto 0 )
TxRegBusy  std_logic
TbScalersChnArr  slv32 ( 9 downto 0 )
TrgCnt  std_logic_vector ( 15 downto 0 )
FullProcCnt  std_logic_vector ( 15 downto 0 )
SimpProcCnt  std_logic_vector ( 15 downto 0 )
NullProcCnt  std_logic_vector ( 15 downto 0 )
TbScalersBusy  std_logic
TbFifoFullCnt  slv16 ( 9 downto 0 )
QtFifoFullCnt  std_logic_vector ( 15 downto 0 )
MppcDacBusy  std_logic
B2ttUp  std_logic
B2ClkUp  std_logic
B2ttStaIddr  std_logic_vector ( 1 downto 0 )
B2ttCntIdelay  std_logic_vector ( 6 downto 0 )
StartUtime  std_logic_vector ( 31 downto 0 )
B2ttUpUTime  std_logic_vector ( 31 downto 0 )
CurUTime  std_logic_vector ( 31 downto 0 )
Shout  std_logic_vector ( 9 downto 0 )
WaveStat  waveform_stat_t
debug_wave_we  std_logic_vector ( 1 downto 0 )
debug_wave_din  slv12 ( 1 downto 0 )
SPS_hist_rd_data  slv16 ( 1 downto 0 )
sfp_stat  SFP_Status_t
aurora_stat  Aurora_Status_t
wave_config_t  
measure_peds  std_logic
use_ftsw_trig  std_logic
ped_sub_ena  std_logic
ramp_length  std_logic_vector ( 11 downto 6 )
use_force_trig  std_logic
t_samp_addr_settle  std_logic_vector ( 3 downto 0 )
t_setup_ss_any  std_logic_vector ( 3 downto 0 )
t_strobe_settle  std_logic_vector ( 3 downto 0 )
t_sr_clk_high  std_logic_vector ( 3 downto 0 )
t_sr_clk_low  std_logic_vector ( 3 downto 0 )
t_sr_clk_strobe  std_logic_vector ( 3 downto 0 )
LE_time_thresh  std_logic_vector ( 11 downto 0 )
force_trig_asic  i5 ( 1 downto 0 )
force_trig_bits  std_logic_vector ( 4 downto 0 )
SPS_hist_rd_addr  slv10 ( 1 downto 0 )
stream_peds  std_logic
KlmScrodConfigType  
TBLookBack  std_logic_vector ( 15 downto 0 )
TBLookBackWidth  std_logic_vector ( 15 downto 0 )
TBScalersPeriod  std_logic_vector ( 7 downto 0 )
TxLatchPeriod  std_logic_vector ( 3 downto 0 )
TxLoadPeriod  std_logic_vector ( 3 downto 0 )
TxProcMask  std_logic_vector ( 9 downto 0 )
TxRegData  std_logic_vector ( TargetRegWidth- 1 downto 0 )
TxRegCtrlMask  std_logic_vector ( 9 downto 0 )
MppcDacCtrl  std_logic_vector ( 15 downto 0 )
AlwaysUpdStat  std_logic
wave_config  wave_config_t
KlmScrodControlType  
TBScalersReset  std_logic
KlmStatusUpdate  std_logic
force_trig  std_logic
sps_reset  std_logic
TxRegUpdate  std_logic
MppcDacUpdate  std_logic
B2ttDbg  std_logic_vector ( 5 downto 0 )
trig_info_type_0  
bits  slv5 ( 9 downto 0 )
wr_time  slv9 ( 9 downto 0 )
ctime  std_logic_vector ( 15 downto 0 )
mask  std_logic_vector ( 9 downto 0 )
trig_info_type_1  
first_dig_win  std_logic_vector ( 8 downto 0 )
last_dig_win  std_logic_vector ( 8 downto 0 )
TARGETX_analong_wr_ena_mask_t  
ena  std_logic
mask_bit  std_logic
win_start  std_logic_vector ( 8 downto 0 )
n_win  std_logic_vector ( 3 downto 0 )

Detailed Description

Definition at line 7 of file klm_scint_pkg.vhd.


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