Chinaunix首页 | 论坛 | 博客
  • 博客访问: 400422
  • 博文数量: 77
  • 博客积分: 798
  • 博客等级: 军士长
  • 技术积分: 1238
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-01 22:33
文章分类

全部博文(77)

文章存档

2015年(1)

2014年(7)

2013年(38)

2012年(31)

分类: IT业界

2012-04-05 11:15:39

    Error (10465): VHDL error at jce.vhd(34): name "present_state" cannot be used because it is already used for a previously declared item
Error (10476): VHDL error at jce.vhd(34): type of identifier "s7" does not agree with its usage as " void" type
Error: Quartus II Analysis & Synthesis was unsuccessful. 2 errors, 0 warnings
 
 
   首先点击错误进行定位————发现type of identifier "s7" does not agree with its usage as " void" type (s7变量和viod类型不匹配。)
   仔细观察,很容易发现错误的原因。是“
        if datain='1' then
          present_state:s7;(就是此种错误容易引发其他类型的错误产生,如it is already used for a previously declared item——系统提示的错误(但不是错误的根源))
          else
             present_state:=s1;end if; 
          更正是present_state:=s7;(一个等号引发的“血案”)
  
 
      再编译一下问题解决!!!
 类似,像出现定义错误之类的问题-----可能不是问题和警告的本身。而是要找到真正的错误,如错误边的语句语法错误或者变量字母是否出错!
 
 
 
      所以,上述的错误很容易产生,解决问题,关键是从系统所提示的错误找到根源!!!
 
 
  待续ing.......
  
 
 
 
 
 
 
 
阅读(7609) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~