Achronix Speedster22i User Macro Guide Manuale Utente Pagina 151

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 224
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 150
Memories BRAM80KFIFO
Speedster22i Macro Cell Library
AchronixSemiconductorProprietary PAGE 134
Status Flags
Empty Flag
TheEmpty(empty)flagisassertedaftertheFIFOisresetorwhenallofthedatahasbeenread
fromtheFIFO.TheEmptyflagissynchronoustotherdclkclockdomain.Furtherattemptsto
read the FIFO when the Empty flag is asserted will depend upon the en_rd_when_empty
parameter.
Iftheen_rd_when_emptyparameterissetto1’b0,attemptstoreadtheFIFOwhen
the Empty flag is asserted will be blocked, the Read Error (read_err) flag will be set in the
following rdclk clock cycle, and the Read Pointer will remain unchanged. If the
en_rd_when_emptyparameterissetto
1’b1,attemptstoreadtheFIFOwhentheEmptyflagis
asserted will result in a valid read operation from the FIFO with the Read Pointer
incrementing by one word value.The user should disregard the Read Error flag when the
en_rd_when_empty parameter is set to 1’b1.The use may keep
t r ack of the Read Pointer
valuebymonitoringtherdcountoutputpins.
Almost Empty Flag
The Almost Empty (almost_empty) flag is asserted when there are aempty_offset or fewer
wordsremainingintheFIFO(See
Table634: ConditiontoAssertalmost_emptyFlagbased
on afull_offset ParameterAssignment).Thealmost_empty flag may be used to determine
thenumberofblindreadsfromtheFIFOthatcanbeperfromedwithoutmonitoringtheempty
flag.Forexample,iftheaempty_offsetparameterissetto17’h0004andthealmost_emptyflag
isdeasseted,theuserisguaranteedthatthereareatleastfivewordsintheFIFO.Theusermay
read
all five words 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 depend upon the en_wr_when_full param eter.If the en_wr_when_full
parameter is set to
1’b0, attempts to write the FIFO when the Full flag is asserted will be
blocked,theWriteError(writ e_err)flagwillbesetinthefollowingwrclkclockcycle,andthe
Write Pointer will remain unchanged. If the en_wr_when_full parameter is set to 1’b1,
attemptstowritetheFIFOwhen
theFullflagisassertedwillresultinavalidwriteoperation
to the FIFO with the Write Pointer incrementing by one word value.The user should
disregard theWriteErrorflag when the en_wr_when_full parameter issetto1’b1.Theuse
maykeeptrackoftheWritePointervalueby
monitoringthewrcountoutputpins.
Almost Full Flag
The Almost Full (almost_full) flag is asserted when there are afull_offset or feweravailable
locationsremainingintheFIFO.Thealmost_fullflagmaybeusedtodeterminethenumber
ofblindwritestotheFIFOthatcanbemadewithoutmonitoringthefullflag.Forexample,if
theafull_offsetparameteris
setto17’h00004andthealmost_fullflagisdeasserted,theuseris
guaranteedthatthereareatleastfiveemptylocationsintheFIFO.Theusermaywriteallfive
wordswithoutmonitoringthefullflagandbeguaranteedthatthesewordswillbewrittento
theFIFOandthe
write_errflagwillnotbeasserted.TheAlmostFullflagissynchronouswith
thewrclkclockinpu t.
Write Error Flag
TheWriteError(write_err) flag isassertedinthe following wrclkclock cyclewhenthe user
tries to write the FIFO while the Full Flag is high and the Enable Write When Full
(en_wr_when_full) parameter is set to 1’b0.The Write Error flag is undefined when the
EnableWriteWhenFull
parameterissetto1’b1.
Vedere la pagina 150
1 2 ... 146 147 148 149 150 151 152 153 154 155 156 ... 223 224

Commenti su questo manuale

Nessun commento