Achronix Speedster22i User Macro Guide Bedienungsanleitung Seite 152

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 224
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 151
Memories BRAM80KFIFO
Speedster22i Macro Cell Library
AchronixSemiconductorProprietary PAGE 135
Read Error Flag
TheReadError(read_err)flagisassertedinthefollowingrdclkclockcyclewhentheusertries
to read the FIFO while the Empty Flag is high and the Enable Read When Empty
(en_rd_when_empty) parameter is set to 1’b0.The Read Error flag is undefined when the
EnableReadWhenEmptyparameterissetto1’
b1.
Flag Latency
The empty, full, almost_empty, and almost_full flags are calculated based on comparisons
betweentheFIFOwritepointerandtheFIFOreadpointer.Thewritepointerissynchronous
tothewrclkdomainandthereadpointerissynchronoustotherdclkdomain.Forthecaseof
anasynchronousFIFO,thewrclkandrdc
lkclocksresideindifferentclockdomains.
Table 6-35: FIFO Pointers and Status Flag Clock Domain Assignments
Flag Associated Clock Domain
FIFO Write Pointer wrclk
FIFO Read Pointer rdclk
empty flag rdclk
almost_empty flag rdclk
full flag wrclk
almost_full flag wrclk
Beforefl
agcalculationscanbemade,circuitryhastomakesurethatbothpointersareinthe
same clock domain as the flag for which the calculation is done.The Write Pointer
SynchronizerFigure610: WriteP
ointerSynchronizerBlockDiagramandtheReadPointer
Synchronizer Figure 611: Read Po
inter Synchronizer Block Diagram are used to transfer
eachofthepointersint
otheotherclockdomain.Inordertosynchronizeagivenpointertothe
opposite clock domain, a series of registers, whose depth is determined by the
wrptr_sync_stages and rdptr_sync_stages parameters, is used.The transfer of a pointer
through these registers adds additional delay to the flag calculat
ion. The versions of the
pointers used for flag calculations are shown below in Table 636
: Pointers Used for FIFO
FlagCalcul
ations.
Table 6-36: Pointers Used for FIFO Flag Calculations
Flag
Write Pointer Used for
Fl
ag Calculation
Read Pointer Used for
Flag Calculation
empty flag Synchronized Write Pointer Read Pointer
almost_empty flag Synchronized Write Pointer Read Pointer
full flag Write Pointer Synchronized Read Pointer
almost_full flag Write Pointer Synchronized Read Pointer
Forexample,the emptyfl
agiscomputedfromtheSynchronizedWritePointerandtheRead
Pointer.The write pointer incurs an additional delay of two to five rdclk cyles (set by the
wrptr_sync_stages parameter) before it is used to calculate the empty flag.Therefore, the
emptyflagwillnottransitionfromtheemptytononemptystateforami
nimumoftwordclk
cyclesafterthefirstwritetotheFIFOoccurs.Asimilardelayoccursforthealmost_emptyflag
aswell.Likewise,forthefullandalmost_fullflags,therearetwotofivewrclkcyclesofdelay
intheactual FIFOstatusduetothesynchronizedreadpo
inter.ForanasyncronousFIFO,the
calculationoftheflagsdoesnotimmediatelyreflectthestateoftheFIFO.Whilethisbehavior
isnormalfor asynchronousFIFOs,itshouldbenoted.AsynchronousFIFOhasonlyasingle
clock,sothereisnoclockdom
aincrossingrequired.AsynchronousFIFOhastheadvantage
that the flag calculation is immediate and precise.Table 637: Empty and Al
most Empty
Seitenansicht 151
1 2 ... 147 148 149 150 151 152 153 154 155 156 157 ... 223 224

Kommentare zu diesen Handbüchern

Keine Kommentare