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) ?
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.