
Memories BRAM80KFIFO
Speedster22i Macro Cell Library
AchronixSemiconductorProprietary PAGE 126
Table 6-25: Relationship of reg_srval bit positions to dout,doutp,doutpx
read_width
doutpx
reg_srval[39:36]
doutp
re
g_srval[35:32]
dout
reg_srval[31:0]
40 user_srval[39:36] user_srval[35:32] user_srval[31:0]
36 4’hx user_srval[35:32] user_srval[31:0]
32 4’hx 4’hx user_srval[31:0]
20 2’bxx,user_srval[19:18] 2’bxx,user_srval[17:16] 16’hxxxx,user_srval[15:0]
18 4’hx 2’bxx,user_srval[17:16] 16’hxxxx,user_srval[15:0]
16 4’hx 4’hx 16’hxxxx,user_srval[15:0]
10 3’bxxx,user_srval[9] 3’bxxx,user_srval[8] 24’hxxxxxx,user_srval[7:0]
9 4’hx 3’bxxx,user_srval[8] 24’hxxxxxx,user_srval[7:0]
8 4’hx 4’hx 24’hxxxxxx,user_srval[7:0]
5 4’hx 3’bxxx,user_srval[4] 28’hxxxxxxx,user_srval[3:0]
4 4’hx 4’hx 28’hxxxxxxx,user_srval[3:0]
2 4’hx 4’hx 30’hxxxxxxxx,user_srval[1:0]
1 4’hx 4’hx 31’hxxxxxxxx,user_srval[0]
reg_rstval
Thereg_rstvalparameterdefinestheactiveleveloftheoutputregisterrstreginput.Assigning
avalueof1’b0toreg_rstvalconfigurestheoutputregistertohaveanactive‐lowsynchronous
reset, while assigning a value of 1’b1 configures the output register to have an active‐high
synchronousreset.Thedefaultvalueofthere
g_rstvalparameteris1’b1.
regce_priority
Theregce_priorityparameterdefinesthepriorityoftheoutregceclockenableinputrelativeto
the rstreg reset input during an assertion of the rstreg signal on the output register. Setting
regce_priorityto“rstreg”allowstheoutputregister tobe set/resetatthenextactiveedgeof
therdclkwithoutrequiringas
pecificvalueontheoutregceoutputregisterclockenableinput.
Settingregce_priorityto“regce” requiresthattheoutregceoutputregisterclockenableinput
isactivefortheoutputregisterset/resetoperationtooccuratthenextactiveedgeoftherdclk.
wrrst_rstval
The wrrst_ rstval parameter defines the active level of the write port reset (wrrst) input.
Assigning a value of 1’b0 to wrrst_rstval configures the write port reset input to have an
active‐lowsynchronous reset,whileassigninga value of1’b1 configuresthewriteportreset
inputtohaveanactive‐highre
set.Thedefaultvalueofthewrrst_rstvalparameteris1’b1.
wrrst_input_mode
The wrrst_ input_mode parameter defines how the Write Pointer is reset. The FIFO macro
providestheuserwithseveraloptionstoresettheFIFOeithersychronouslyortosynchronize
the reset input to the appropriate clock domain within the FIFO without the need to
implementseparatesynchronizationcircuitryintheFPGAfabric.
The Wr
ite Pointer Reset input of the Write Pointer must be synchronous to the wrclk clock
domain.The user must either provide a synchronous reset via the wrrst or rdrst inpu ts or
synchronize the rdrst input.The method to reset the Write Pointer is selected via the
wrrst_input_mode paramter as defined in Table 6‐26: wrrst_input_mode Parameter
Mapping.
By configuring the wrrst_
input_mode and rdrst_input_mode parameters, the user may
choosetohavetheFIFOWritePointerandReadPointerresetbyoneorbothofthewrrst/rdrst
Kommentare zu diesen Handbüchern