Belle II KLM Scint Firmware  1
Belle II KLM Scint Firmware Documentation
Project Information
Engineers *Nakao-san, †Brandon Kunkler, ‡Isar Mostafanezhad, ‡Vasily Shebalin, ‡Chris Ketter
Company *KEK, †Indiana University, ‡University of Hawaii
Create Date 2015?
Design Name
Module Name klm_scint - Behavioral
Project Name KLM Scnitillator Readout
Target Devices XC6SLX150T

Conceptual Block Diagram

KLM_Scint_Firmware_merged_201221.svg

Control Registers (Only high one clock cycle)

Reg Bit Name Additional Info
0 0 TBScalersReset
0 3 status_upd_cmd
0 4 debug_wave_rd_ena
0 5 force_trig
0 6 sps_reset
0 10 b2tt_reg_imanual
0 12 b2tt_set_idelay
0 13 b2tt_clr_idelay
0 14 b2tt_sig_caldelay

Configuration Registers

Reg Bits Name Additional Info
1 0 downto 0 AlwaysUpdStat
2 7 downto 4 TxLatchPeriod
2 3 downto 0 TxLoadPeriod
2 15 downto 8 TBScalersPeriod
3 15 downto 0 TBLookBack
4 15 downto 0 TBLookBackWidth
5 9 downto 0 TxProcMask
6 13 downto 13 use_ftsw_trig
6 12 downto 12 ped_sub_ena
6 14 downto 14 use_self_trig
6 15 downto 15 measure_peds
6 11 downto 0 RampLength
7 15 downto 12 t_sr_clk_low
9 15 downto 12 t_sr_clk_strobe
9 11 downto 0 LE_time_thresh
10 14 downto 6
10 15 downto 15 use_force_trig
10 2 downto 0 force_trig_asic_A
10 5 downto 3 force_trig_asic_B
11 4 downto 0 force_trig_bits
11 9 downto 5 SPS_count_max
11 10 downto 10 stream_peds
12 13 downto 0 SPS_hist_rd_addr_A
13 13 downto 0 SPS_hist_rd_addr_B
14 3 downto 0 t_samp_addr_settle
14 7 downto 4 t_setup_ss_any
14 15 downto 12 t_sr_clk_high
14 11 downto 8 t_strobe_settle

Status-Only Registers

# Bits Name Additional Info
20 15 downto 0 AliveCnt
21 1 downto 1 B2ClkUp
21 9 downto 9 aurora_hard_err
21 10 downto 10 aurora_soft_err
21 14 downto 14 aurora_warn_cc
21 12 downto 12 aurora_channel_up
21 6 downto 6 sfp_mod_flag
21 13 downto 13 aurora_lane_up
21 7 downto 7 sfp_los_flag
21 15 downto 15 aurora_do_cc
21 11 downto 11 aurora_frame_err
21 5 downto 5 sfp_fault_flag
21 8 downto 8 aurora_gtlock
21 0 downto 0 B2ttUp
22 15 downto 0 Version
23 0 downto 0 TxRegBusy
23 11 downto 10 fe_dbg_b
23 9 downto 8 fe_dbg_a
23 3 downto 3 TbScalersBusy
23 4 downto 4 rcl_fifo_not_empty
23 7 downto 6 sps_dbg
23 5 downto 5 ped_meas_busy
23 2 downto 2 MppcDacBusy
24 15 downto 0 rcl_cmd_cnt
25 15 downto 0 TrgCnt
26 15 downto 0 TrgProcCnt
27 15 downto 0 i_dbg_1
28 15 downto 0 StartUtimeL
29 15 downto 0 StartUtimeH
30 15 downto 0 B2ttUpUtimeL
31 15 downto 0 B2ttUpUtimeH
32 15 downto 0 CurUtimeL
33 15 downto 0 CurUtimeH
34 9 downto 0 Shout
35 10 downto 0 CTimeMaxH
36 15 downto 0 CTimeMaxL
37 1 downto 0 B2ttStaIddr
38 8 downto 2 B2ttCntIdelay
39 11 downto 0 DebugWaveformsA
40 11 downto 0 DebugWaveformsB
41 10 downto 0 DebugWordCountA
42 10 downto 0 DebugWordCountB
43 15 downto 0 SPS_hist_rd_dataA
44 15 downto 0 SPS_hist_rd_dataB
46 15 downto 0 HitsOverflowCnt
47 15 downto 0 TbFifoFullCnt_0
48 15 downto 0 TbFifoFullCnt_1
49 15 downto 0 TbFifoFullCnt_2
50 15 downto 0 TbFifoFullCnt_3
51 15 downto 0 TbFifoFullCnt_4
52 15 downto 0 TbFifoFullCnt_5
53 15 downto 0 TbFifoFullCnt_6
54 15 downto 0 TbFifoFullCnt_7
55 15 downto 0 TbFifoFullCnt_8
56 15 downto 0 TbFifoFullCnt_9
57 15 downto 0 QtFifoFullCnt
58 15 downto 0 TbScalersL_0
59 15 downto 0 TbScalersL_1
60 15 downto 0 TbScalersL_2
61 15 downto 0 TbScalersL_3
62 15 downto 0 TbScalersL_4
63 15 downto 0 TbScalersL_5
64 15 downto 0 TbScalersL_6
65 15 downto 0 TbScalersL_7
66 15 downto 0 TbScalersL_8
67 15 downto 0 TbScalersL_9
68 15 downto 0 TbScalersH_0
69 15 downto 0 TbScalersH_1
70 15 downto 0 TbScalersH_2
71 15 downto 0 TbScalersH_3
72 15 downto 0 TbScalersH_4
73 15 downto 0 TbScalersH_5
74 15 downto 0 TbScalersH_6
75 15 downto 0 TbScalersH_7
76 15 downto 0 TbScalersH_8
77 15 downto 0 TbScalersH_9
78 15 downto 0 last_stat_reg