Forum Discussion
Altera_Forum
Honored Contributor
15 years agoTo build a FIFO using SRAM
Hi, I would like to build a DCFIFO using a SRAM chip on DE2-115. Any idea on where i should start? I know SRAM reads and writes on a different clock cycle as the dataIn and dataOut share t...
Altera_Forum
Honored Contributor
15 years agoI think we're misunderstanding each other! :D
What I'm proposing is a back to back write sequence such as: clk 0: WE = UB = LB = CS = OE = 0; ADDR = addr0; DATA=xxxx clk 1: ADDR = addr0; DATA=data0; others remain the same clk 2: ADDR = addr1; DATA=data1; others remain the same clk 3: ADDR = addr2; DATA=data2; others remain the same ... clk N: ADDR = addrN-1; DATA=dataN-1; others remain the same clk N+1: WE = 1; ADDR = addrN-1; DATA=dataN-1; others remain the same No complicated pulses on WE/CS/OE/UB/LB! The only tricky thing is to make sure tSD is respected. Ie, DATA needs to remain stable right until after ADDR changes. But that can be done, either with output delays or using the other clock edge.