sevid
Member level 2
hi,everyone
i simulate my design with an off-chip memory with these steps below:
1.if my memory is defined as following:
module memory(...);
...
reg [31:0] mem [07:00];
...
2.then i initialize it in my testbench:
$readmemh("mem0.in", memory0.mem);
3. and my "mem0.in" :
@00 0C012340
@01 13057A21
@02 02000002
@03 11222335
@04 52578847
@05 1565A005
@06 50003847
@07 15A00705
but i find that my memory is not initialized, what's wrong ?
plz help me!
thanks in advance !
sevid
i simulate my design with an off-chip memory with these steps below:
1.if my memory is defined as following:
module memory(...);
...
reg [31:0] mem [07:00];
...
2.then i initialize it in my testbench:
$readmemh("mem0.in", memory0.mem);
3. and my "mem0.in" :
@00 0C012340
@01 13057A21
@02 02000002
@03 11222335
@04 52578847
@05 1565A005
@06 50003847
@07 15A00705
but i find that my memory is not initialized, what's wrong ?
plz help me!
thanks in advance !
sevid