24小时热门版块排行榜    

查看: 974  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 考研化学308分求调剂 +3 你好明天你好 2026-03-23 4/200 2026-03-23 10:30 by 你好明天你好
[考研] 070300化学求调剂 +5 苑豆豆 2026-03-20 5/250 2026-03-23 09:39 by guoliang1816
[考研] 招08考数学 +4 laoshidan 2026-03-20 11/550 2026-03-23 08:47 by laoshidan
[考研] 求调剂一志愿海大,0703化学学硕304分,有大创项目,四级已过 +6 幸运哩哩 2026-03-22 10/500 2026-03-22 20:10 by edmund7
[考研] 285求调剂 +6 ytter 2026-03-22 6/300 2026-03-22 12:09 by 星空星月
[考研] 求助 +5 梦里的无言 2026-03-21 6/300 2026-03-21 17:51 by 学员8dgXkO
[考研] 材料与化工(0856)304求 B区 调剂 +3 邱gl 2026-03-21 3/150 2026-03-21 13:47 by lature00
[考研] 085601调剂 358分 +3 zzzzggh 2026-03-20 4/200 2026-03-21 10:21 by luoyongfeng
[考研] 机械专硕299求调剂至材料 +3 kkcoco25 2026-03-16 4/200 2026-03-21 03:52 by JourneyLucky
[考研] 265求调剂 +3 Jack?k?y 2026-03-17 3/150 2026-03-21 03:17 by JourneyLucky
[考研] 303求调剂 +5 睿08 2026-03-17 7/350 2026-03-21 03:11 by JourneyLucky
[考研] 华东师范大学-071000生物学-293分-求调剂 +3 研究生何瑶明 2026-03-18 3/150 2026-03-21 01:30 by JourneyLucky
[考研] 一志愿苏州大学材料求调剂,总分315(英一) +5 sbdksD 2026-03-19 5/250 2026-03-20 22:10 by luoyongfeng
[考研] 一志愿西南交通 专硕 材料355 本科双非 求调剂 +5 西南交通专材355 2026-03-19 5/250 2026-03-20 21:10 by JourneyLucky
[考研] 086500 325 求调剂 +3 领带小熊 2026-03-19 3/150 2026-03-20 18:38 by 尽舜尧1
[考研] 298-一志愿中国农业大学-求调剂 +9 手机用户 2026-03-17 9/450 2026-03-20 14:24 by 无懈可击111
[考研] 0703化学调剂 +4 18889395102 2026-03-18 4/200 2026-03-19 16:13 by 30660438
[考研] 本科郑州大学物理学院,一志愿华科070200学硕,346求调剂 +4 我不是一根葱 2026-03-18 4/200 2026-03-19 09:11 by 浮云166
[考研] 【同济软件】软件(085405)考研求调剂 +3 2026eternal 2026-03-18 3/150 2026-03-18 19:09 by 搏击518
[考研] 0703化学调剂 +3 妮妮ninicgb 2026-03-17 3/150 2026-03-18 10:29 by macy2011
信息提示
请填处理意见