|
请大家帮我分析一下我的程序中的错误,万分感谢!!
我想对memory型变量进行操作。
下面是我的程序:
module xinsuoyin (dataa,result);
input[5:0] dataa;
output[9:0] result;
reg[9:0] ramzhong;
reg[9:0] result;
reg[6:0] i;
(*ram_init_file = "cpu_ic_tag_ram.mif"*) reg [9:0] ram[63:0];
always@(dataa)
begin
for(i=0;i<=63;i=i+1)
begin
ramzhong[9:0]=ram;
if(ramzhong[9:4]==dataa[5:0])
begin
result[3:0]=ramzhong[3:0];
result[9:4]=6'b0;
end
end
end
endmodule
附:(编译信息)
Warning (10030): Net "ram[0][9]" at xinsuoyin.v(7) has no driver or initial value, using a default initial value '0'
Warning (10030): Net "ram[0][8]" at xinsuoyin.v(7) has no driver or initial value, using a default initial value '0'
Warning (10030): Net "ram[0][7]" at xinsuoyin.v(7) has no driver or initial value, using a default initial value '0'
Warning (10030): Net "ram[0][6]" at xinsuoyin.v(7) has no driver or initial value, using a default initial value '0'
Warning (10030): Net "ram[0][5]" at xinsuoyin.v(7) has no driver or initial value, using a default initial value '0'
Warning (10030): Net "ram[0][4]" at xinsuoyin.v(7) has no driver or initial value, using a default initial value '0'
Warning (10030): Net "ram[0][3]" at xinsuoyin.v(7) has no driver or initial value, using a default initial value '0'
Warning (10030): Net "ram[0][2]" at xinsuoyin.v(7) has no driver or initial value, using a default initial value '0'
Warning (10030): Net "ram[0][1]" at xinsuoyin.v(7) has no driver or initial value, using a default initial value '0'
Warning (10030): Net "ram[0][0]" at xinsuoyin.v(7) has no driver or initial value, using a default initial value '0' |
|