K
Kevin Kilzer
Guest
I am new to Verilog, and I'm having trouble getting an SR latch to work.
Consider two signals:
---\____________/----- nCS
--------\____/----------- nSTB
I want to generate something that goes low at nSTB, then returns high at the end of nCS.
--------\_________/------ nSTRETCH
My Verilog looks like this:
wire nCS1000;
assign nCS1000 = (nRESET & ~nCS & ~A13 & A12)? 0 : 1;
assign nSTRETCH = nCS1000 ? 1'b1 : (~nSTB ? 1'b0 : nSTRETCH);
The actual nSTRETCH goes low on the first nSTB, and never goes high again.
All other signals are inputs to a Xilinx 95288 CPLD from a microprocessor (reset and address signals). nSTRETCH is an output pin
on the PLD.
Can anyone suggest where the problem might be?
Thanks.
Kevin
Consider two signals:
---\____________/----- nCS
--------\____/----------- nSTB
I want to generate something that goes low at nSTB, then returns high at the end of nCS.
--------\_________/------ nSTRETCH
My Verilog looks like this:
wire nCS1000;
assign nCS1000 = (nRESET & ~nCS & ~A13 & A12)? 0 : 1;
assign nSTRETCH = nCS1000 ? 1'b1 : (~nSTB ? 1'b0 : nSTRETCH);
The actual nSTRETCH goes low on the first nSTB, and never goes high again.
All other signals are inputs to a Xilinx 95288 CPLD from a microprocessor (reset and address signals). nSTRETCH is an output pin
on the PLD.
Can anyone suggest where the problem might be?
Thanks.
Kevin