UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 17444

5.2i Data2BRAM - How do I calculate the address space in a BMM file?

Description

General Description:  

How do I calculate the address space in a BMM file?

Solution

The formula for calculating the address space is: 

 #of blockRAM * size of blockRAM bits / 8 -1 = address space (starting from zero) 

 

For the Spartan-II/-IIE and Virtex/-E architectures the size of the blockRAM is 2^12 = 4,096 bits 

For the Spartan-3 and Virtex-II/-II Pro architectures the size of the blockRAM is 2^14 = 16,384 bits 

 

For example in a Virtex-II design:  

 # of blockRAM = 22 

size of blockRAM = 2^14 

You divide by 2^3 = 8 to convert from bits to bytes. 

 

Therefore, in this example 22 * (2^14) / (2^3) - 1 = 45055 = AFFF in hex 

ADDRESS_BLOCK test RAMB16 [0x00000000:0x0000AFFF]

AR# 17444
Date Created 09/03/2007
Last Updated 05/15/2014
Status Archive
Type General Article