I need to generate chip select signal for memory through address decoding. It will be combo logic only and the read/write access has to be performed in single cycle.
As Chip Select is transparent to Memory Address, whenever memory address is changing the csn is toggling in between the clock period also.
I want to remove that extra toggling on memory address lines when memory is not selected.
Add a latch on the CSN path, transparent when you do a read/write otherwise blocked.
I don't really like latch, perhap you could flop the csn, really dependant of your timing access protocol.
Add a latch on the CSN path, transparent when you do a read/write otherwise blocked.
I don't really like latch, perhap you could flop the csn, really dependant of your timing access protocol.
Do you have enough setup time and control of the clock duty cycle to latch the CS signal on the opposite (unused) clock edge? Or, can you delay the clock and then apply the decoder output to a D flip flip clocked with the delayed clock?
What technology are you using for the decoding? FPGA? PLD? Discrete logic? Custom IC?
The flop to save the CSN could be generated in the same time as the address generation, not at memory level, but at the bus level.
Dependand of the address mapping usage, you could used the MSB bit has direct chip select.
RAM0:0x1xxxYYYY
RAM1:0x2xxxYYYY
RAM2:0x4xxxYYYY
A single bit MSB is used for the CS, and the 16bits-LSB for address.
The address is coming from the processor. Cannot generate csn along with address.
we are also in Fix .. because we have that single cycle access constraint. Already that path is on critical path.