T
tsu
Guest
I am getting compilation error in VCS with the following piece of
verilog code
module A(...)
..
..
..
..
output [(width*depth)-1:0] storage_data;
reg [depth-1 : 0] [width-1 : 0] ram_array;
genvar i;
generate
for(i=0;i<depth;i++)
assign storage_data[(((i+1)*width)-1)width*i)]=ram_array;
endgenerate
..
..
endmodule
The VCS error is pasted below
Error-[SE] Syntax error
"../vhdl/gen_ram2_jm.v", 40: token is 'assign'
assign storage_data[(((i+1)*width)-1)width*i)]=ram_array;
^
1 error
Please advice what is wrong in the above generate.
Thanks in advance,
Sujith
verilog code
module A(...)
..
..
..
..
output [(width*depth)-1:0] storage_data;
reg [depth-1 : 0] [width-1 : 0] ram_array;
genvar i;
generate
for(i=0;i<depth;i++)
assign storage_data[(((i+1)*width)-1)width*i)]=ram_array;
endgenerate
..
..
endmodule
The VCS error is pasted below
Error-[SE] Syntax error
"../vhdl/gen_ram2_jm.v", 40: token is 'assign'
assign storage_data[(((i+1)*width)-1)width*i)]=ram_array;
^
1 error
Please advice what is wrong in the above generate.
Thanks in advance,
Sujith