
Memories LRAMFIFO
Speedster22i Macro Cell Library
AchronixSemiconductorProprietary PAGE 165
Table 6-56: Condition to Assert almost_full Flag based on afull_offset Parameter Assignment
Condition when
almost_full flag is asserted
Condition when almost_full flag is
deasserted
afull_offset or fewer empty loca-
tions remain in the FIFO.
There are at least (afull_offset +1) empty
locations remaining in the FIFO.
aempty_offset
The aempty_offset parameter defines the word depth at which the FIFO almost_empty
changes.Thealmost_emptyflagmaybeusedtodeterminethenumberofblindreadsfromthe
FIFO that can be performed without monitoring the empty flag.For example, if the
aempty_offset parameter is set to 7’h04 and the almost_empty fl
ag is deasseted, the user is
guaranteed that there are at leastfive words in the FIFO. The user may read all five words
withoutmonitoringtheemptyflagandbeguaranteedthatthesewordswillbereadfromthe
FIFO and the read_err flag will not be asserted. The default va
lue of the aempty_offset
parameteris7’h04,correspondingtofourorfewerwordsremainingintheFIFO.
Table 6-57: Condition to Assert almost_empty Flag based on aem
pty_offset Parameter Assignment
Condition when
almost_empty flag is
asserted
Condition when almost_empty flag is
deasse
rted
aempty_offset or fewer
words remain in the FIFO.
There are at least (aempty_offset +1) words in
the FIFO.
Status Flags
Empty Flag
TheEmpty(empty)flagisassertedaftertheFIFOisresetorwhenallofthedatahasbeenread
fromtheFIFO.TheEmptyflagissynchronoustotherdclkclockdomain.Furtherattemptsto
readtheFIFOwhentheEmptyflagisassertedwillbeblocked,theReadError(re
ad_err)flag
willbesetinthefollowingrdclkclockcycle,andtheReadPointerwillremainunchanged.
Almost Empty Flag
The Almost Empty (almost_empty) flag is asserted when there are aempty_offset or fewer
wordsremainingintheFIFO(SeeTable6‐57
: ConditiontoAssertalmost_emptyFlagbased
onaempty_offsetParameterAssignment).Thealmost_emptyfl
agmaybeusedtodetermine
thenumberofblindreadsfr
omtheFIFOthatcanbeperformedwithoutmonitoringtheempty
flag.Forexample,iftheaempty_offsetparameterissetto7’h04andthe almost_emptyflagis
deasserted,theuserisguaranteedthatthereareatleastfivewordsintheFIFO.Theusermay
read all fi
vewords without monitoring the empty flag and be guaranteed that these words
willbereadfromtheFIFOandtheread_errflagwillnotbeasserted.TheAlmostEmptyflag
issynchronouswiththerdclkclockinput.
Full Flag
TheFull(full)flagisassertedwhenalloftheavailablelocationsoftheFIFOhavebeenwritten.
Itissynchronoustothewrclkclockdomain.FurtherattemptstowritetheFIFOwhentheFull
flag is asserted will be blocked, the Write Error (write_err) flag will be set in the f
ollowing
wrclkclockcycle,andtheWritePointerwillremainunchanged.
Almost Full Flag
The Almost Full (almost_full) flag is asserted when there are afull_offset or feweravailable
locationsremainingintheFIFO.Thealmost_fullflagmaybeusedtodeterminethenumber
Komentáře k této Příručce