B
Brad Smallridge
Guest
I would like to initialize a Xilinx BRAM in a format that is more byte wide
organized and with the bytes going in a left to right, or down the page,
manner.
Presently, the Xilinx BRAMs are initialized in the generic map with
statements like this:
INIT_00 =>
"0000000000000000000000000000000000000000000000000000000004030201",
which, I believe are, 256 bit bit_vectors filled with hex literals. The init
as shown goes from right to left and would count 1,2,3,4 in a 9 bit wide
read. Very clumsy.
Even more difficult to format is the extra parity bit.
I will make shorter constant bit_vectors and reverse the order
with long concatenate statements if no one can suggest to me an
easier way. What I would like to see is an unconstained array of
8 or 9 bit bit_vectors, and some sort of procedure or function
that stuffs the BRAM init strings with the needed reversed order,
perhaps fills the rest of BRAM with a default value, and passes
this info to a wrapper BRAM module, whereby most of the BRAMs
workings, and initiaization, can be hidden away.
Brad Smallridge
ai vision
organized and with the bytes going in a left to right, or down the page,
manner.
Presently, the Xilinx BRAMs are initialized in the generic map with
statements like this:
INIT_00 =>
"0000000000000000000000000000000000000000000000000000000004030201",
which, I believe are, 256 bit bit_vectors filled with hex literals. The init
as shown goes from right to left and would count 1,2,3,4 in a 9 bit wide
read. Very clumsy.
Even more difficult to format is the extra parity bit.
I will make shorter constant bit_vectors and reverse the order
with long concatenate statements if no one can suggest to me an
easier way. What I would like to see is an unconstained array of
8 or 9 bit bit_vectors, and some sort of procedure or function
that stuffs the BRAM init strings with the needed reversed order,
perhaps fills the rest of BRAM with a default value, and passes
this info to a wrapper BRAM module, whereby most of the BRAMs
workings, and initiaization, can be hidden away.
Brad Smallridge
ai vision