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 request signal to transition on the negative edge of the clock (and stay high until the following negative edge of the clock). If I try driving the memory's wr_req directly from the data source then both the clock and wr_req transition at the same time and the memory doesn't get the data. How can I delay the data source's write pulse such that it goes high (for one cycle) starting on the next negative edge of the clock? BTW, is there any book that teaches these kinds of things? I know the concepts and syntax as well as differences between simulation and sythesizable code, but would love to find best practices for things like the above, or for dealing with logic that have different clock domains.