S
srinu
Guest
in verilog i defined some memory.For my application i want to load
image in to that memory directly.Is it possible in verilog?
if it is possible is it synthesizable or not?
example:
reg [7:0]memr[0:63][0:63];
reg [7:0]memry[0:4095];
$readmemh("128.txt",memry,0,4095);
for(i=0;i<=63;i=i+1)
for(j=0;j<=63;j=j+1)
begin
memr[j]=memry[l];
l=ltemp+1;
ltemp=l;
end
in this code 128.txt is the text file which is having image
pixels.this code is not synthesizing.
so any one having altenative for this code please help me in this
regard.
image in to that memory directly.Is it possible in verilog?
if it is possible is it synthesizable or not?
example:
reg [7:0]memr[0:63][0:63];
reg [7:0]memry[0:4095];
$readmemh("128.txt",memry,0,4095);
for(i=0;i<=63;i=i+1)
for(j=0;j<=63;j=j+1)
begin
memr[j]=memry[l];
l=ltemp+1;
ltemp=l;
end
in this code 128.txt is the text file which is having image
pixels.this code is not synthesizing.
so any one having altenative for this code please help me in this
regard.