ADufl
New Contributor
6 years agoAssociate an individual mif file to each RAM memory instantiated by a "generate"
Hello,
I instantiate RAM memories with the following VHDL code :
gen_inst_ram_0to7 :
for i in 0 to 7 generate
inst_ram : ram
port map(
address_a => w_address_a(i),
address_b => w_address_b(i),
clock => clk,
data_a => w_data_a(i),
data_b => w_data_b(i),
wren_a => w_wren_a(i),
wren_b => w_wren_b,
q_a => w_data_out_a(i),
q_b => w_data_out_b(i)
);
end generate gen_inst_ram_0to7;
I would like to use memory initialization files (*.mif) but don't know how to link the 8 files to the 8 instanciations.
Could you give me a hint to do such thing ?
Thank you.