rom en vhdl
i wanted to have a reconfigurable rom, the read width and depth may be non standard sizes and are required to be changed so that the component using the rom can be tested for performance using different wordlengths.
actually there are many sizes of arrays to be read depending on the configuration,3x3,5x5,9x9 and so on.the individual array element sizes and the array sizes are to be varied for the testing.i thought having a configurable xilinx core gen block rom and having different mif files for the cases might be the solution.maybe someone can suggest a better solution.for now i'm concentrating on the other blocks in the design and thought i can come back to the rom later.for now i'm using a case statement.if the xilinx core is used can the read widths be any size? in one location the rom stores one 2D array (9 for 3x3,81 for 9x9,..)so the read width will change depending on the element size...similarly the read depth will also change depending on a configuration value.
if anyone has suggestions on how this can be done pl help.