ctm_src_selector

Mask CT_Dst inputs with a select vector, OR them, and register the CT_Src pulse.

select_i enables which destinations contribute; registration prevents glitches on ct_src_o.

Parameters

Table 1. Parameters
NameTypeDefaultDescription
NUM_CT_DSTint unsigned4CT_Dst input count.

Ports

Table 2. Ports
NameDirectionTypeDescription
clk_iinputlogicSystem clock.
rst_niinputlogicActive-low asynchronous reset; clears ct_src_o.
ct_dst_iinputlogic [NUM_CT_DST-1:0]Cross-trigger pulses from every CT_Dst port, one bit per port.
select_iinputlogic [NUM_CT_DST-1:0]Per-destination enable mask from this CT_Src's CT_DST_SELECT field; bit i admits ct_dst_i[i] into the OR.
ct_src_ooutputlogicOR of the selected ct_dst_i bits, registered on clk_i; one cycle of latency.