prim_sync4
Synchronize each bit of d_i into clk_i through a four-flop chain.
Each bit uses its own prim_flop_4sync 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.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
WIDTH | int unsigned | 1 | Number of independent bits synchronized. |
Ports
| Name | Direction | Type | Description |
|---|---|---|---|
clk_i | input | logic | Destination clock. |
d_i | input | logic [WIDTH-1:0] | Asynchronous bits, each resolved independently. |
q_o | output | logic [WIDTH-1:0] | Synchronized bits in the clk_i domain. |