Heading3 - porta_srval(portb_srval), Heading3 - mem_init_file, Heading3 - initd_000 – initd_255 – Achronix Speedster22i User Macro Guide User Manual
Page 111: Heading3 - initp_00 – initp_31

Memories
BRAM80K
Speedster22i Macro Cell Library
PAGE 94
porta_srval(portb_srval)
The porta_srval(portb_srval) parameter defines the value assigned to the Port A(B) output
latch(register if porta_en_out_reg(portb_en_out_reg)=1) at the next active edge of the clock
when the Port A(B) latch(register) reset conditions are met. The 40‐bit porta_srval(portb_srval)
parameter assignment is dependent on the porta_read_width(portb_read_width). The
association of the of the porta_srval(portb_srval) parameter values to the
douta,doutpa,doutpxa (doutb,doutpb,doutpxb) bits is assigned according to
The default value of porta_srval (portb_srval) is 40’h0.
Table 6-4: Relationship of porta_srval(portb_srval) bit positions to douta,doutpa,doutpxa
(doutb,doutpb,doutpxb)
porta_read_width
(portb_read_width)
doutpxa (doutpxb)
porta_srval[39:36]
(portb_srval[39:36])
doutpa (doutpb)
porta_srval[35:32]
(portb_srval[35:32])
douta (doutb)
porta_srval[15:0]
(portb_srval[15:0])
40
porta_srval[39:36]
porta_srval[35:32]
porta_srval[31:0]
36
4’hx
porta_srval[35:32]
porta_srval[31:0]
32
4’hx
4’hx
porta_srval[31:0]
20
2’bxx,porta_srval[19:18]
2’bxx,porta_srval[17:16]
16’hxxxx,porta_srval[15:0]
18
4’hx
2’bxx,porta_srval[17:16]
16’hxxxx,porta_srval[15:0]
16
4’hx
4’hx
16’hxxxx,porta_srval[15:0]
10
3’bxxx,porta_srval[9]
3’bxxx,porta_srval[8]
24’hxxxxxx,porta_srval[7:0]
9
4’hx
3’bxxx,porta_srval[8]
24’hxxxxxx,porta_srval[7:0]
8
4’hx
4’hx
24’hxxxxxx,porta_srval[7:0]
5
4’hx
3’bxxx,porta_srval[4]
28’hxxxxxxx,porta_srval[3:0]
4
4’hx
4’hx
28’hxxxxxxx,porta_srval[3:0]
2
4’hx
4’hx
30’hxxxxxxxx,porta_srval[1:0]
1
4’hx
4’hx
31’hxxxxxxxx,porta_srval[0]
mem_init_file
The mem_init_file parameter provides a mechanism to set the initial contents of the
BRAM80K memory. If the mem_init_file parameter is defined, the BRAM80K will be
initialized with the values defined in the file pointed to by the mem_init_file parameter
according to the format defined in the
section. If the mem_init_file is
left at the default value of “”, the initial contents will be defined by the values of the initd_000
‐ initd_255, initp_00 ‐ initp_31, and the initpx_00 ‐ initpx_31 parameters. If the memory
initialization parameters and the mem_init_file parameters are not defined, the contents of the
BRAM80K will not be initialized.
initd_000 – initd_255
The initd_000 through initd_255 parameters define the initial contents of the memory contents
associated with douta[31:0] and doutb[31:0]. Each 256‐bit parameter associated with the
BRAM80K memory as defined in the
section.
initp_00 – initp_31
The initp_00 through initp_31 parameters define the initial contents of the memory contents
associated with doutpa[3:0] and doutpb[3:0]. Each 256‐bit parameter associated with the
BRAM80K memory is defined in the