cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
nlotankar
Visitor
Visitor
299 Views
Registered: ‎11-14-2019

Initializing BRAM post implementation

Hi,

I have a hex file which is 32 bit wide. I have a memory block generated using block ram generator in my design which is 32 bit wide and 1k depth - (4kB). I want to initialize this memory with my hex.

I am trying to generate a python code which will take hex as input and throw tcl script with "INIT_xx 256'h<data>" as output.

My question is, how should the data be formatted as my hex is 32*1k bits and INIT_xx accepts 256*128 bits (0x7F rows) ?

0 Kudos
Reply
1 Reply
surajc
Xilinx Employee
Xilinx Employee
220 Views
Registered: ‎01-30-2019

Hi @nlotankar ,

Try initializing the BRAM in your design using the hex file during Synthesis and then open the synthesized design  and check the INIT_ property of the BRAM primitives. Looking at that you can decide the format. 

Let us know if it helped you.

0 Kudos
Reply