24小时热门版块排行榜    

Znn3bq.jpeg
查看: 982  |  回复: 2

yyzhao2013

新虫 (初入文坛)

[求助] 为什么我的的vhdl三个程序都出现这个错误呢?

library IEEE; 
use ieee.std_logic_1164.all; 
use ieee.std_logic_arith.all;  
use ieee.std_logic_unsigned.all; 

entity top is 
port ( 
clk1:in std_logic; 
C1,C5,P2,P3:in std_logic;   
pay_lcd0,pay_lcd1,need_lcd0,need_lcd1,Mout_lcd0,Mout_lcd1utstd_logic_vector(6 downto 0); 
s,f,showout ut std_logic  ;
end top; 
architecture one of top is component fanmaijioriginal 
port( clk:in std_logic;                    
coin1:in std_logic; 
coin5:in std_logic;   
select2:in std_logic;  
select4:in std_logic; 
payut std_logic_vector(3 downto 0);
needut std_logic_vector(3 downto 0);   
successut std_logic;
failureut std_logic;   
getreadyut std_logic; 
changeut std_logic_vector(3 downto 0) 
end component; 
component code11
port(
b:in std_logic_vector(3 downto 0);  
b1ut std_logic_vector(3 downto 0); 
b2ut std_logic_vector(3 downto 0)   
); 
end component; 
component code12 
port( b:in std_logic_vector(3 downto 0);   
b1ut std_logic_vector(3 downto 0); 
b2ut std_logic_vector(3 downto 0)  
); 
end component; component code13
port(
b:in std_logic_vector(3 downto 0);  
b1ut std_logic_vector(3 downto 0); 
b2ut std_logic_vector(3 downto 0)  
); 
end component; 
component code21 
port(
d:in std_logic_vector(3 downto 0); 
qut std_logic_vector(6 downto 0)
); 
end component; 
component code22 
port(
d:in std_logic_vector(3 downto 0); 
qut std_logic_vector(6 downto 0)); 
end component; 
component code23 
port(
d:in std_logic_vector(3 downto 0); 
qut std_logic_vector(6 downto 0)
);
end component; 
component code24 
port(
d:in std_logic_vector(3 downto 0); 
qut std_logic_vector(6 downto 0));
end component;
component code25 
port(
d:in std_logic_vector(3 downto 0); 
qut std_logic_vector(6 downto 0)); 
end component; 
component code26 
port(
d:in std_logic_vector(3 downto 0); 
qut std_logic_vector(6 downto 0));
end component; 
signal p,n,mo:std_logic_vector(3 downto 0); 
signal s1,s2,s3,s4,s5,s6:std_logic_vector(3 downto 0);
begin 
u0:fanmaiji 
port map
(clk=>clk1,coin1=>C1,coin5=>C5,select2=>P2,select4=>P3,success=>s,
failure=>f,getready=>change,pay=>p,need=>n,change=>mo);
u1:code11 port map(b=>p,b1=>s1,b2=>s2);
u2:code12 port map(b=>n,b1=>s3,b2=>s4); 
u3:code13 port map(b=>mo,b1=>s5,b2=>s6);
u4:code21 port map(d=>s1,q=>pay_lcd0);
u5:code22 port map(d=>s2,q=>pay_lcd1);
u6:code23 port map(d=>s3,q=>need_lcd0);
u7:code24 port map(d=>s4,q=>need_lcd1); 
u8:code25 port map(d=>s5,q=>Mout_lcd0);
u9:code26 port map(d=>s6,q=>Mout_lcd1);
end one;




错误:Error (10500): VHDL syntax error at code2.vhd(2) near text "libraryÂ";  expecting "entity", or "architecture", or "use", or "library", or "package", or "configuration"
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yyzhao2013

新虫 (初入文坛)

library IEEE; 
use ieee.std_logic_1164.all; 
use ieee.std_logic_arith.all;  
use ieee.std_logic_unsigned.all; 

entity top is 
port ( 
clk1:in std_logic; 
C1,C5,P2,P3:in std_logic;   
pay_lcd0,pay_lcd1,need_lcd0,need_lcd1,Mout_lcd0,Mout_lcd1utstd_logic_vector(6 downto 0); 
s,f,showout ut std_logic  ;
end top; 
architecture one of top is component fanmaijioriginal 
port( clk:in std_logic;                    
coin1:in std_logic; 
coin5:in std_logic;   
select2:in std_logic;  
select4:in std_logic; 
payut std_logic_vector(3 downto 0);
needut std_logic_vector(3 downto 0);   
successut std_logic;
failureut std_logic;   
getreadyut std_logic; 
changeut std_logic_vector(3 downto 0) 
end component; 
component code11
port(
b:in std_logic_vector(3 downto 0);  
b1ut std_logic_vector(3 downto 0); 
b2ut std_logic_vector(3 downto 0)   
); 
end component; 
component code12 
port( b:in std_logic_vector(3 downto 0);   
b1ut std_logic_vector(3 downto 0); 
b2ut std_logic_vector(3 downto 0)  
); 
end component; component code13
port(
b:in std_logic_vector(3 downto 0);  
b1ut std_logic_vector(3 downto 0); 
b2ut std_logic_vector(3 downto 0)  
); 
end component; 
component code21 
port(
d:in std_logic_vector(3 downto 0); 
qut std_logic_vector(6 downto 0)
); 
end component; 
component code22 
port(
d:in std_logic_vector(3 downto 0); 
qut std_logic_vector(6 downto 0)); 
end component; 
component code23 
port(
d:in std_logic_vector(3 downto 0); 
qut std_logic_vector(6 downto 0)
);
end component; 
component code24 
port(
d:in std_logic_vector(3 downto 0); 
qut std_logic_vector(6 downto 0));
end component;
component code25 
port(
d:in std_logic_vector(3 downto 0); 
qut std_logic_vector(6 downto 0)); 
end component; 
component code26 
port(
d:in std_logic_vector(3 downto 0); 
qut std_logic_vector(6 downto 0));
end component; 
signal p,n,mo:std_logic_vector(3 downto 0); 
signal s1,s2,s3,s4,s5,s6:std_logic_vector(3 downto 0);
begin 
u0:fanmaiji 
port map
(clk=>clk1,coin1=>C1,coin5=>C5,select2=>P2,select4=>P3,success=>s,
failure=>f,getready=>change,pay=>p,need=>n,change=>mo);
u1:code11 port map(b=>p,b1=>s1,b2=>s2);
u2:code12 port map(b=>n,b1=>s3,b2=>s4); 
u3:code13 port map(b=>mo,b1=>s5,b2=>s6);
u4:code21 port map(d=>s1,q=>pay_lcd0);
u5:code22 port map(d=>s2,q=>pay_lcd1);
u6:code23 port map(d=>s3,q=>need_lcd0);
u7:code24 port map(d=>s4,q=>need_lcd1); 
u8:code25 port map(d=>s5,q=>Mout_lcd0);
u9:code26 port map(d=>s6,q=>Mout_lcd1);
end one;

这是程序,上面那个不知道怎么出那么多表情。。。。
2楼2017-03-20 12:33:12
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

cdeda

至尊木虫 (知名作家)

提示有语法错误,仔细看哟

发自小木虫IOS客户端
客观认识世界。
3楼2017-03-20 17:23:35
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 yyzhao2013 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 302求调剂 +7 易!? 2026-04-13 7/350 2026-04-13 10:59 by Faiz5552
[考研] 268分085602化学工程调剂 +31 月照花林。 2026-04-09 31/1550 2026-04-12 23:37 by 学zh
[考研] 复试调剂 +14 积极向上; 2026-04-10 16/800 2026-04-12 20:02 by gruyclewee
[考研] 295分求调剂 +13 ?要上岸? 2026-04-10 13/650 2026-04-12 15:37 by laoshidan
[考研] 22408调剂315分 +3 zhuangyan123 2026-04-09 3/150 2026-04-12 00:25 by 蓝云思雨
[考研] 303求调剂 +14 SereinQ 2026-04-10 15/750 2026-04-11 20:43 by 蓝云思雨
[考研] 070300化学279求调剂 +19 哈哈哈^_^ 2026-04-08 20/1000 2026-04-11 20:43 by stoner78
[考研] 0854调剂 +5 音像店听花鼓戏 2026-04-10 5/250 2026-04-11 10:49 by qingpingzhu
[考研] 085410-273求调剂 +6 X1999 2026-04-10 6/300 2026-04-11 10:32 by Delta2012
[考研] 302分求调剂 +9 凡语祈愿 2026-04-08 10/500 2026-04-10 23:26 by 314126402
[考研] 266求调剂 +29 阳阳哇塞 2026-04-07 29/1450 2026-04-10 16:20 by 高维春
[考研] 071000生物学调剂求助 +17 zzzzwww 2026-04-09 20/1000 2026-04-10 15:55 by 求调剂zz
[考研] 296求调剂 +6 汪!?! 2026-04-08 6/300 2026-04-10 11:02 by mattzhming
[考研] 278求调剂 +27 范婷娜 2026-04-07 31/1550 2026-04-09 20:49 by zhouxiaoyu
[考研] 085501机械英二77总分294求调剂,接受跨专业学习 +6 守法公民亓纪 2026-04-08 6/300 2026-04-09 15:55 by wp06
[考研] 327求调剂 +10 Xxjc1107. 2026-04-06 11/550 2026-04-09 01:21 by lature00
[考研] 求调剂 +13 柒luck 2026-04-07 13/650 2026-04-08 22:46 by 猪会飞
[考研] 一志愿哈工大,初试329,求环境科学与工程调剂! +11 余未辛 2026-04-06 11/550 2026-04-08 15:21 by screening
[考研] 338求调剂 +8 wxygxsaaaaa 2026-04-06 8/400 2026-04-08 06:58 by 无际的草原
[考研] 325 调剂 +6 QQ小虾 2026-04-07 6/300 2026-04-07 15:17 by Ccclqqq
信息提示
请填处理意见