Altera_Forum
Honored Contributor
19 years agoAvalon slave write cycle to 16-bit SRAM
Hello,
I am trying to interface Nios2 processor running at 80MHz clock to an external SRAM chip using tristate bridge. External SRAM is a single 512kX16-bit chip, fast 8ns grade. I was hoping to get single cpu cycle read/write but it seems it is not doable. CPU is doing two 16-bit cycles to write 32-bit value in SRAM and it holds the /CS and /WE signals low for the two write cycles changing only the address. Of course SRAM does only the second, since from its point of view the write cycle ends only when /CE or /WE goes up. The only way I see to solve this problem is to add one hold-time cycle to this SRAM interface. This way the /WE signal will be set to high after the first 16-bit write and the SRAM will see two separate write cycles. But, it will mean that each write of 16-bit value would require 2 cycles, it makes write cycles twice slower. Is there any other way to solve this problem using one 16-bits wide SRAM chip ? Przemek.