abionnnn
Member level 1
Hi guys,
lets say I've created a module called rom16_8 below:
Lets say I was to initialise this from a test bench, tb_rom16_8, how would I initialise memory?\]
lets say I've created a module called rom16_8 below:
Code:
module rom16_8(address, data);
input [7:0] address;
output [15:0] data;
reg [15:0] memory [255:0];
assign data = memory[address];
Lets say I was to initialise this from a test bench, tb_rom16_8, how would I initialise memory?\]