prim_sync4r

Synchronize each bit of d_i into clk_i through a four-flop resettable chain.

Each bit uses its own prim_flop_4sync_r cell. Under SIMULATION, prim_cdc_rand_delay randomizes when a change on d_i reaches the first stage to model CDC uncertainty; synthesis connects d_i to the cells directly. rst_ni clears every stage to 0 asynchronously.

Parameters

Table 1. Parameters
NameTypeDefaultDescription
WIDTHint unsigned1Number of independent bits synchronized.

Ports

Table 2. Ports
NameDirectionTypeDescription
clk_iinputlogicDestination clock.
d_iinputlogic [WIDTH-1:0]Asynchronous bits, each resolved independently.
rst_niinputlogicActive-low asynchronous reset.
q_ooutputlogic [WIDTH-1:0]Synchronized bits in the clk_i domain.