Guest
Hi there!
I have a ROM model, and I use $readmemh to read its memory file.
I have multiple instances of this ROM, and I want each to read in a
different memory file.
I know I can do this statically (at compile time) using parameters as
follows:
parameter FILE_1 = "file_1.dat";
parameter FILE_2 = "file_2.dat";
rom #(FILE_1) rom_1( ... );
rom #(FILE_2) rom_2( ... );
Is there a standard way to do this dynamically (ie, at run time),
without having to re-compile/elaborate? I've tried a few things, but
none has been satifactory...
thanks in advance!
marcas
I have a ROM model, and I use $readmemh to read its memory file.
I have multiple instances of this ROM, and I want each to read in a
different memory file.
I know I can do this statically (at compile time) using parameters as
follows:
parameter FILE_1 = "file_1.dat";
parameter FILE_2 = "file_2.dat";
rom #(FILE_1) rom_1( ... );
rom #(FILE_2) rom_2( ... );
Is there a standard way to do this dynamically (ie, at run time),
without having to re-compile/elaborate? I've tried a few things, but
none has been satifactory...
thanks in advance!
marcas