legokor / FPGA-Utils

Little modules that make life easier
1 stars 0 forks source link

Clock domain crossing #4

Closed ksstms closed 3 years ago

ksstms commented 3 years ago

Synchronize a signal to a clock. The width and the synchronization stages should be parameters of the module.

ksstms commented 3 years ago

example: ( ASYNC_REG="true" ) reg [WIDTH-1:0] foo [STAGES-1:0];

ksstms commented 3 years ago

It's good, but let's change the default WIDTH to 1, because that's the most common use case.