Altera_Forum
Honored Contributor
12 years agoGood way to generate /WE signal?
Hi all!
Does anyone have any suggestions for generating a (negative-logic) write-enable signal for an async ram? The ram I'm (planning) to use has a 0ns data/address hold time and since I'd like to keep everything single-clock, my current 'solution' is to OR-in a logic-high with the clock signal so when I clock that low, the last half of the clock would be my write-enable, as in: assign we_n = clk | memwrite; where memwrite is clocked synchronously and would normally be high.Glitches *should* be minimal and not long enough to prevent unwanted writes. Alternatively, I could divide my clock by 2 or 4 and then make it all synchronous, which would allow me to create a nice half-clock period on either side of the write-enable but that kinda limits my performance which I'd like to keep at at least 50mhz. Any ideas?