Forum Discussion
Altera_Forum
Honored Contributor
8 years agoI have done this before to delay a signal from being generated in a rising edge clocked domain to a falling edge clocked domain:
reg rising;
reg falling;
always @(posedge clk)
begin
rising <= ~rising;
end
always @(negedge clk)
begin
falling <= rising;
end
then rising is a signal that can be used in a rising edge clocked domain; and falling is that same signal delayed by half a clock cycle, suitable for use in a falling edge clocked domain.