Forum Discussion
Altera_Forum
Honored Contributor
8 years agoHow to create a neg-edge Write pulse, from a pos-edge Write pulse?
I have a active-high signal that transitions on the positive edge of its clock when it has data ready to be written to memory. I also have ram memory (uses same clock) but expects the write ...
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.