
128
Virtex-5 FPGA User Guide
UG190 (v5.0) June 19, 2009
Chapter 4:
Block RAM
Block RAM Address Mapping
Each port accesses the same set of 18,432 or 36,864 memory cells using an addressing
scheme dependent on whether it is a RAMB18 or RAMB36. The physical RAM locations
addressed for a particular width are determined using the following formula (of interest
only when the two ports use different aspect ratios):
END = ((ADDR + 1)
×
Width) -1
START = ADDR
×
Width
shows low-order address mapping for each port width.
Block RAM Attributes
All attribute code examples are discussed in the
“Block RAM Initialization in VHDL or
section. Further information on using these attributes is available in the
“Additional RAMB18 and RAMB36 Primitive Design Considerations”
section.
Content Initialization - INIT_xx
INIT_xx attributes define the initial memory contents. By default, block RAM memory is
initialized with all zeros during the device configuration sequence. The 64 initialization
attributes from INIT_00 through INIT_3F for the RAMB18, and the 128 initialization
attributes from INIT_00 through INIT_7F for the RAMB36 represent the regular memory
contents. Each INIT_xx is a 64-digit hex-encoded bit vector. The memory contents can be
partially initialized and are automatically completed with zeros.
The following formula is used for determining the bit positions for each INIT_xx attribute.
Given yy = conversion hex-encoded to decimal (xx), INIT_xx corresponds to the memory
cells as follows:
•
from [(yy + 1)
×
256] – 1
•
to (yy)
×
256
For example, for the attribute INIT_1F, the conversion is as follows:
•
yy = conversion hex-encoded to decimal (xx) “1F” = 31
•
from [(31+1)
×
256] – 1 = 8191
•
to 31
×
256 = 7936
More examples are given in
Table 4-8:
Port Address Mapping
Port
Width
Parity
Locations
Data Locations
1
N.A.
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
11
1
0
9 8 7 6 5 4 3 2 1 0
2
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
4
7
6
5
4
3
2
1
0
8 + 1
3 2 1 0
3
2
1
0
16 + 2
1
0
1
0
32 + 4
0
0
Содержание Virtex-5 FPGA ML561
Страница 1: ...Virtex 5 FPGA User Guide UG190 v5 0 June 19 2009 ...
Страница 8: ...Virtex 5 FPGA User Guide www xilinx com UG190 v5 0 June 19 2009 ...
Страница 20: ...20 www xilinx com Virtex 5 FPGA User Guide UG190 v5 0 June 19 2009 ...
Страница 24: ...24 www xilinx com Virtex 5 FPGA User Guide UG190 v5 0 June 19 2009 Preface About This Guide ...
Страница 172: ...172 www xilinx com Virtex 5 FPGA User Guide UG190 v5 0 June 19 2009 Chapter 4 Block RAM ...
Страница 316: ...316 www xilinx com Virtex 5 FPGA User Guide UG190 v5 0 June 19 2009 Chapter 6 SelectIO Resources ...
Страница 352: ...352 www xilinx com Virtex 5 FPGA User Guide UG190 v5 0 June 19 2009 Chapter 7 SelectIO Logic Resources ...