²é¿´: 1037  |  »Ø¸´: 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;

ÕâÊdzÌÐò£¬ÉÏÃæÄǸö²»ÖªµÀÔõô³öÄÇô¶à±íÇé¡£¡£¡£¡£
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 µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[»ù½ðÉêÇë] Çà»ùÈçºÎÆÆ¾Ö +6 lyz123lyz 2026-08-27 7/350 2026-08-27 17:31 by Äþ¾²ÖÂÔ¶sy
[»ù½ðÉêÇë] Ôõô¿´Çà»ùÖÐÁËûÓа¡ +5 Ò¶¾Å΢ 2026-08-26 5/250 2026-08-27 10:35 by l_zh2008
[»ù½ðÉêÇë] ÃæÉϺÏ×÷µ¥Î»¸ÇÕ +3 ssyjh 2026-08-27 3/150 2026-08-27 09:59 by °¢À­¹±aragon
[»ù½ðÉêÇë] ÈÃÎÒÖÐÒ»¸öÃæÉϰɣ¡ +13 ´óƼ1987 2026-08-20 17/850 2026-08-27 08:20 by ´óƼ1987
[˶²©¼ÒÔ°] ÊÛSCIÒ»ÇøT0PÎÄÕ£¬ÎÒ:8.O.55.1.O.54,¿ÆÄ¿ÆëÈ«,¿É+¼± +3 LIbGuocjEEYw 2026-08-26 4/200 2026-08-27 02:01 by Ie9AyIAvGbvs
[»ù½ðÉêÇë] 2026ÄêµÄ¹ú¼ÒÉç¿Æ»ù½ðÏîĿͨѶÆÀÉóµÄйæÔòÓëж¯Ïò¡¢ÐÂÌôÕ½ +7 process2012 2026-08-23 10/500 2026-08-26 19:23 by hmhminy
[»ù½ðÉêÇë] 2026¹ú×ÔÈ»º¯ÆÀ·Ñµ½ÕË +22 ÑòÑü°å 2026-08-21 25/1250 2026-08-26 15:00 by zuocuiping
[»ù½ðÉêÇë] 2026Äê8ÔÂ25ÈÕ¹ú×ÔÈ»·Å°ñǰͻȻÊÕµ½ÁÐÈëÆÀÉóר¼ÒÓʼþ£¬ÓйØÏµÂ𣿠+25 ľˮ˼¶¹ 2026-08-25 28/1400 2026-08-26 14:53 by draco1987
[»ù½ðÉêÇë] Ϊʲô¹ú×ÔÈ»²»ÄÜÖ±½Ó¹«²¼ +4 bjdxyxy 2026-08-26 4/200 2026-08-26 13:12 by qingmu1201
[»ù½ðÉêÇë] ¹úºÏ¿É²éÁË +3 paperzjh 2026-08-26 3/150 2026-08-26 10:41 by LemmonTr
[»ù½ðÉêÇë] ½ñÌìÎñί»á¿ªÍêÁË£¬Ã÷Ìì³ö½á¹ûÂð +19 angus9576 2026-08-25 23/1150 2026-08-26 10:03 by zp519
[Ö°³¡ÈËÉú] ѧÉúײ¼û¸¨µ¼Ô±ËÍÍâÂô£¬µÚ¶þÌìÈ«°à¶¼³ÁĬÁË +3 ¾¨ÓãÈÚ½ð_Õã½­_É 2026-08-22 3/150 2026-08-26 09:01 by zzuzxg
[»ù½ðÉêÇë] ÔÚ¼á±ù»¹¸Ç×ű±º£µÄʱºò£¬ÎÒ¿´µ½ÁËÅ­·ÅµÄ÷»¨¡£ (½ð±Ò+10) +6 ziyangfang 2026-08-25 9/450 2026-08-25 20:26 by huagongfeihu
[»ù½ðÉêÇë] ijЩ»ú¹¹£¬ÒÔЧÂʵÍΪÈÙ£¬ÒÔЧÂʵÍ×÷Ϊ´æÔڸР+9 yuleib84 2026-08-25 10/500 2026-08-25 17:14 by alexon
[»ù½ðÉêÇë] Èç¹û´Ë¿ÌÄãÕýÔÚΪ¹ú»ù¸Ðµ½½¹ÂÇ£¬²»·ÁÀ´ÌýÌýÕâÊס¶»ù½ðÖ®Íâ¡· +8 scalable 2026-08-24 8/400 2026-08-25 12:52 by jnhyjjm
[»ù½ðÉêÇë] ûÓÐÈκÎÏûÏ¢-ÊDz»ÊǾÍÁ¹ÁË +9 ͼÀ²Í¼À² 2026-08-24 10/500 2026-08-25 11:59 by ÄϺ£Ð¡¸ç
[»ù½ðÉêÇë] ÈËÆø²»ÐÐÁË +11 fansofjerry 2026-08-21 11/550 2026-08-25 11:04 by ¹Â¶ÀµÄÓ¢ÐÛ6
[»ù½ðÉêÇë] ÎÒÃæÉÏÍêµ°ÁË +13 ÇÒÌý»¢Ð¥ 2026-08-20 14/700 2026-08-25 09:10 by mrkang
[½Ìʦ֮¼Ò] Ìø²ÛºóÔÚÑÐÏîÄ¿Ôõô°ì£¿ +5 ¼òµ¥»¯xn 2026-08-22 10/500 2026-08-23 12:38 by ¼òµ¥»¯xn
[»ù½ðÉêÇë] ʱ¼ä´Á½ñÌ죬20ºÅ±äÁË +5 archvillain 2026-08-20 5/250 2026-08-22 06:12 by hui_daxiao
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û