MyFPGA Forum

 找回密码
 注册
搜索
查看: 2783|回复: 0
打印 上一主题 下一主题

QuartusII中编译出现的问题,求助!!

[复制链接]
跳转到指定楼层
1#
发表于 2009-8-10 09:51:28 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式
请大家帮我分析一下我的程序中的错误,万分感谢!!
我想对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'
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|MyFPGA

GMT+8, 2024-11-1 09:04 , Processed in 0.039854 second(s), 15 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表