B
blakaxe@gmail.com
Guest
I have instantiated a ROM in Verilog.
databus = 40 bits
address lines = 7
now i want to initialize it for simulation in VCS.
I use
initial
begin
$readmemh("single_port_rom_init.txt", rom);
end
end
How should I format the initialization file
(single_port_rom_init.txt)?
Should it just be a file with hex numbers with/without spaces?
How does it assign the numbers to the ROM? Is is from the lsb of the
first address line?
Thanks
databus = 40 bits
address lines = 7
now i want to initialize it for simulation in VCS.
I use
initial
begin
$readmemh("single_port_rom_init.txt", rom);
end
end
How should I format the initialization file
(single_port_rom_init.txt)?
Should it just be a file with hex numbers with/without spaces?
How does it assign the numbers to the ROM? Is is from the lsb of the
first address line?
Thanks