
Memories BRAM80KFIFO
Speedster22i Macro Cell Library
AchronixSemiconductorProprietary PAGE 137
FIFO Operational Modes
TheFIFOmacrosupportsbothsingleclocksynchronous(sameclockconnectedtowrclkand
rdclkinputswithout anyphaseoffsetbetweenthetwoclocks) anddualclock asynchronous
(twounrelatedclocksortworelatedclocks)modesofoperation.Forsynchronousoperation,
both the wrclk and rdclk inputs must be connected to
the same clock net.Phase offsets
between the two clocks in synchronous mode is not allowed.For asynchronous mode, the
usermayconnectthewrclkandrdclkinputstotwodifferentclocks.TheFIFOwilltreatthe
twoclocksasiftheyareunrelated.
Asynchronous FIFO Operation
When the FIFO is configured as an asynchronous FIFO (sync_mode = 1’b0), there are two
modesofoperationavailable.ThetwomodesoftheFIFOiscontrolledbytheFirstWordFall
Through(fwft)parameter.ThisparametercontrolswhatisontheoutputoftheFIFOafterthe
firstwordhas
beenwri tten toaFIFOthatwaspreviouslyinanemptystate.Forasynchronous
operation,theusermustsettheen_out_regparameterto1’b1.
Asychronous FIFO Standard Mode (sync_mode = 1’b0, fwft = 1’b0)
Afteraresetoperation,orafterthelastwordhasbeenreadfromtheFIFO,theFIFOwillbein
an empty state as indicated by a high level on the empty flag.When the FIFO in set to
standardmode(fwft= 1’b0),theoutputoftheFIFOremainsunchanged
afterthefirstwriteto
a FIFO in the empty state.After the first writeoperation the empty flag will be deasserted
indicating that there isdatain the FIFOthatmaybe read.The usermustread theFIFOby
settingtherdenhighatwhichtimethefirst
wordwrittenintotheFIFOwillbeavailableatthe
FIFO outputs at the next rising edge of the rdclk input.Each subsequent read operation
updatestheFIFOoutputswiththe nextstoreddatawordifitisavailable(emptyflag=false).
Asychronous FIFO First Word Fall Through Mode (sync_mode = 1’b0, fwft = 1’b1)
Afteraresetoperation,orafterthelastwordhasbeenreadfromtheFIFO,theFIFOwillbein
anemptystateasindicatedbyahighlevelontheemptyflag.WhentheFIFOinsettoFirst
WordFallThroughmode(fwft=1’b1),theoutputofthe
FIFOwillbeupdatedafterthefirst
write to a FIFO in the empty state.After the first write operation the empty flag will be
deasserted indicating that there is data in the FIFO that may be read.In First Word Fall
Throughmode,thefirstwordwrittenintothe
FIFOisplacedonthe FIFOoutputsbeforethe
firstreadoperation occurs.Eachsubsequent read operationupdatesthe FIFOoutputswith
thenextstoreddatawordifitisavailable(emptyflag=1’b0).NotethatwhenselectingFirst
Word Fall Through mode, the FIFO must be configured for asynchronous
operation
(sync_mode = 1’b0).First Word Fall Through mode is not supported when the FIFO is
configuredforsynchronousFIFOoperation(sync_mode=1’b1).
Synchronous FIFO Operation
The synchronous FIFO mode supports the standard mode.The First Word Fall Through
modeisnotsupportedwhensynchronous FIFOoperationisselected.Theusermustnotset
thefwftparameterto1’b1whensynchronousFIFOoperationisselected.Theusermayeither
allowtheFIFOtopickupthedefault
valueofthefwftparameter(1’b0)orsetitto1’b0.
Synchronous FIFO Standard Mode (sync_mode = 1’b1)
Thesynchronous FIFO standardmodehas the advantagethatthereisnolatencyin theflag
calculations, so the flags represent the exact state of the FIFO.In sycnchronous mode, the
Reset
Output
“regce” 1 1
reg_srval
Operation regce_priority rstreg outregce rdclk dout
Commenti su questo manuale