Achronix Speedster22i User Macro Guide Manuale Utente Pagina 179

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 224
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 178
Memories LRAMFIFO
Speedster22i Macro Cell Library
AchronixSemiconductorProprietary PAGE 162
ptr_sync_mode
The ptr_sync_mode parameter is used to bypass the synchronization circutry between the
readand writeportswhenbothportsareconnectedtothesameclock.Ifboththewrclkand
rdclk clock inputs are connected to the same clock, the user may set the ptr_sync_mode
parameterto1’b1toallowfasterupda
testothestatusflags(empty,full,etc.). Notethatwhen
ptr_sync_modeissetto1’b1,thetwoclockshavetobeconnectedtothesameclocknet.There
cannotbeanyphasedifferencebetweenthetwoclocksinsingleclockmode(ptr_sync_mode=
1’b1). If the read and write clocks are connected to d
ifferent clocks, the synchronization
circutrymustbeusedandtheptr_sync_modeparametermustbesetto1’b0.Thedefaultvalue
oftheptr_sync_modeparameteris1’b0 .
wrptr_sync_stages
The wrptr_sync_stages parameter defines the number of stages used in the Write Pointer
SynchonizercircuitthatsynchronizestheWritePointertotherdclkclockdomain.Whenthe
FIFOisinasynchronousmode,(ptr_sync_mode=1’b0),theoutputofthesynchonizedWrite
Pointeriscomparedtothe ReadPointertogeneratethe emptyandalmost_emptyfl
ags.The
mappingofthewrptr_sync_stagesparametervaluetothenumberofsychronizationstagesis
definedinTable652: Mappingwrpt
r_sync_stagesParameterSettingstoSynchronization
Stage De
pth, where each stage corresponds to a register in the Write Pointer Synchronizer
circuitshowninFigure633
: WritePointerSynchronizerBlockDiagram.Highervaluesfor
the wrpt
r_sync_stages parameter reduce the possibility of a metastable event when
transferringtheWritePointeracrossclockdomains.Asanexample,settingwrptr_sync_stages
to 2’b00 configures the write pointer synchronization circuit to have two backtoback
registers in the Write Pointer Synchonizer.The default value of the wrptr_sync_stages
parameteris2’b0
0.
Table 6-52: Mapping wrptr_sync_stages Parameter Settings to Synchronization Stage Depth
wrptr_sync_stages Write Pointer Synchronization Stage Depth
2’b00 2
2’b01 3
2’b10 4
2’b11 5
Figure 6-33: W
rite Pointer Synchronizer Block Diagram
rdptr_sync_stages
The rdptr_sync_stages parameter defines the number of stages used in the Read Pointer
SynchonizercircuitthatsynchronizestheReadPointertothewrclkclockdomain.Whenthe
FIFOisinasynchronousmode,(p tr_sync_mode=1’b0),theoutputofthesynchonizedRead
Pointer is compared to the Write Pointer to generate the fu
ll and almost_full flags.The
mappingoftherdptr_sync_stagesparametervaluetothenumberofsychronizationstagesis
definedin Table 653
: Mapping rdptr_sync_stagesParameter Settings to Synchronization
Stage De
pth, where each stage corresponds to a register in the Read Pointer Synchronizer
circuitshowninFigure634
: ReadPointerSynchronizerBlockDiagram.Highervaluesfor
the rdptr_sync_stages parameter reduce the pos
sibility of a metastable event when
Write
Pointer
Write Pointer Synchronizer
d
q
d
q
d
q
d
q
d
q
wrclk
rdclk
ptr_sync_mode
wrptr_sync_stages
Synchronized
Write Pointer
used for flag
00
01
10
11
0
1
calculations
Vedere la pagina 178
1 2 ... 174 175 176 177 178 179 180 181 182 183 184 ... 223 224

Commenti su questo manuale

Nessun commento