Belle II KLM Scint Firmware  1
CalculateROI Entity Reference
Inheritance diagram for CalculateROI:
WaveformReadout KLMReadoutCtrl klm_scint

Entities

Behavioral  architecture
 

Libraries

IEEE 
work 

Use Clauses

STD_LOGIC_1164 
NUMERIC_STD 
STD_LOGIC_MISC 
STD_LOGIC_UNSIGNED 
klm_scint_pkg  Package <klm_scint_pkg>

Generics

ARR_DEPTH_g  integer
VEC_WIDTH_g  integer

Ports

clk   in std_logic := ' 0 '
ena   in std_logic := ' 0 '
vec_arr   in slv9 ( ARR_DEPTH_g- 1 downto 0 )
arr_mask   in std_logic_vector ( ARR_DEPTH_g- 1 downto 0 )
first_vec   out std_logic_vector ( VEC_WIDTH_g- 1 downto 0 )
last_vec   out std_logic_vector ( VEC_WIDTH_g- 1 downto 0 )

Detailed Description

Overview

Takes an array of std_logic_vector's and finds the earilest and latest vector in the array, under the assumption that the input vectors are all grouped closer than 1/2 the vector's range, and that such a group may span over the vector's boundary, e.g. 510, 511, 0, 1, ...

Currently using 9-bit window counter as input. Would like to switch to window & 8ns-resolution timestamp, i.e. 11-bit input, then provide starting window & sample to DigitizeAndShiftOutData. We still have to digitize whole windows, but we can shift out only the samples we care about. As shifting is the most time-expensive part of the process, this idea is appealing, but needs to be worked out in detail.

Definition at line 22 of file CalculateROI.vhd.


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