3039|1

20

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

请大家看看这个错误什么意思 [复制链接]

到底错在哪了?新手,今年我们才开eda(vhdl版)
我的程序:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity shmxsh is
port( data:out std_logic_vector(6 downto 0);
   rst,clk:in  std_logic
);
end shmxsh;
architecture behav of shmxsh is
begin
process(rst,clk,data)
variable Q:std_logic_vector(2 downto 0);
begin
if 
rst='0' then Q:=(others=>'0');
elsif
 clk'event and clk='1' then
if
 Q<7 then Q:=Q+1;
else
 Q:=(others=>'0');
end if;
end if;
case Q is
when "000"=> data<='0111111';
when "001"=> data<='0000110';
when "010"=> data<='1011011';
when "011"=> data<='1001111';
when "100"=> data<='1100110';
when "101"=> data<='1101101';
when "110"=> data<='1111101';
when "111"=> data<='0000111';
when others=>null;
end case;
end process;
end architecture behav;

-----------------------------------------------------------------------------
messages:


Info: *******************************************************************
Info: Running Quartus II Analysis & Synthesis
Info: Version 7.2 Build 151 09/26/2007 SJ Full Version
Info: Processing started: Fri Apr 27 18:34:56 2012
Info: Command: quartus_map --read_settings_files=on --write_settings_files=off shmxsh -c shmxsh
Error (10500): VHDL syntax error at shmxsh.vhd(25) near text "'";  expecting "(", or an identifier, or  unary operator
Error (10500): VHDL syntax error at shmxsh.vhd(26) near text "'";  expecting "(", or an identifier, or  unary operator
Error (10500): VHDL syntax error at shmxsh.vhd(27) near text "'";  expecting "(", or an identifier, or  unary operator
Error (10500): VHDL syntax error at shmxsh.vhd(28) near text "'";  expecting "(", or an identifier, or  unary operator
Error (10500): VHDL syntax error at shmxsh.vhd(29) near text "'";  expecting "(", or an identifier, or  unary operator
Error (10500): VHDL syntax error at shmxsh.vhd(30) near text "'";  expecting "(", or an identifier, or  unary operator
Error (10500): VHDL syntax error at shmxsh.vhd(31) near text "'";  expecting "(", or an identifier, or  unary operator
Error (10500): VHDL syntax error at shmxsh.vhd(32) near text "'";  expecting "(", or an identifier, or  unary operator
Info: Found 0 design units, including 0 entities, in source file shmxsh.vhd
Error: Quartus II Analysis & Synthesis was unsuccessful. 8 errors, 0 warnings
Info: Allocated 182 megabytes of memory during processing
Error: Processing ended: Fri Apr 27 18:34:58 2012
Error: Elapsed time: 00:00:02
Error: Quartus II Full Compilation was unsuccessful. 8 errors, 0 warnings


):'( 
[ 本帖最后由 Hanux 于 2012-4-27 19:05 编辑 ]
此帖出自FPGA/CPLD论坛

最新回复

Q<7 then Q:=Q+1;   楼主,〈两边的类型不一致。还有Q=Q+1也该应该类型一致!  详情 回复 发表于 2012-4-28 12:31
点赞 关注
 

回复
举报

6892

帖子

0

TA的资源

五彩晶圆(高级)

沙发
 

Q<7 then Q:=Q+1;

 

楼主,〈两边的类型不一致。还有Q=Q+1也该应该类型一致!

此帖出自FPGA/CPLD论坛
个人签名一个为理想不懈前进的人,一个永不言败人!
http://shop57496282.taobao.com/
欢迎光临网上店铺!
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/10 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表