
Memories BRAM80KFIFO
Speedster22i Macro Cell Library
AchronixSemiconductorProprietary PAGE 146
Writing and Reading a Mixed-Width FIFO
Figure 6-21: Writing and Reading a Mixed-Width FIFO
Limitations of Concurrent Read/Write Operations
FIFOoperationsmaybeperformedsimultaneously frombothsidesofthememory,however
thereisarestrictionwithmemorycollisions.Amemorycollisionisdefinedasthecondition
whereboth of the ports accessthe same memory address withinthesame clock cycle(both
portsconnectedtothesameclock),or
withinaTBDpswindow(ifeachportisconnectedtoa
differentclock). If one of the ports is writing an address while the other portis reading the
same address, the write operation will occur, but the read data will be invalid.If the user
programseitherthe
en_wr_when_fulloren_rd_when_emptyparametersto1’b1,itispossible
for simul taneous memory operations to occur, resulting in corrupted reads from the FIFO.
Eventhoughmemorycollisionscorruptthereaddata,nodamagetothehardwarewilloccur.
wrclk
rdclk
wren
rden
din
dout
empty
almost_empty
2. wptr_sync_stages = 2’b00
Note: This timing diagram assumes:
3. sync_mode = 1’b0
4. fwft = 1’b0
word 0
word 0[15:0]
word 1
word 0[31:16]
word 1[15:0]
word 1[31:16]
1. write_width = 32, read_width = 16
Komentarze do niniejszej Instrukcji