| ²é¿´: 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_lcd1 utstd_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; pay ut std_logic_vector(3 downto 0);need ut std_logic_vector(3 downto 0); success ut std_logic;failure ut std_logic; getready ut std_logic; change ut std_logic_vector(3 downto 0) ; end component; component code11 port( b:in std_logic_vector(3 downto 0); b1 ut std_logic_vector(3 downto 0); b2 ut std_logic_vector(3 downto 0) ); end component; component code12 port( b:in std_logic_vector(3 downto 0); b1 ut std_logic_vector(3 downto 0); b2 ut std_logic_vector(3 downto 0) ); end component; component code13 port( b:in std_logic_vector(3 downto 0); b1 ut std_logic_vector(3 downto 0); b2 ut std_logic_vector(3 downto 0) ); end component; component code21 port( d:in std_logic_vector(3 downto 0); q ut std_logic_vector(6 downto 0)); end component; component code22 port( d:in std_logic_vector(3 downto 0); q ut std_logic_vector(6 downto 0)); end component; component code23 port( d:in std_logic_vector(3 downto 0); q ut std_logic_vector(6 downto 0)); end component; component code24 port( d:in std_logic_vector(3 downto 0); q ut std_logic_vector(6 downto 0));end component; component code25 port( d:in std_logic_vector(3 downto 0); q ut std_logic_vector(6 downto 0)); end component; component code26 port( d:in std_logic_vector(3 downto 0); q ut 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" |
» ²ÂÄãϲ»¶
Ϊʲô×ÊÖúÊý¸÷´ó¸ßУ¶¼´´Ð¸ߣ¬×Ô¼ºÉêÇëÔõô¾ÍÕâôÄÑ
ÒѾÓÐ8È˻ظ´
µ¼Ê¦Í²ۣºÎÒÔõô̯ÉÏÁËÕâô¸ö¼«Æ·Ñо¿Éú£¡
ÒѾÓÐ7È˻ظ´
Çà»ùÈçºÎÆÆ¾Ö
ÒѾÓÐ7È˻ظ´
ÓжàÉÙÈËÊǽñÌì²éϵͳ֪µÀ½á¹ûµÄ£¿
ÒѾÓÐ17È˻ظ´
»ù½ð²»ÖУ¬¹²Ãã
ÒѾÓÐ10È˻ظ´
¹ú×ÔÈ»ÃæÉϸ´ÅÌ~»¶ÓÌÖÂÛ
ÒѾÓÐ11È˻ظ´
»ù½ðδÖУ¬ÕâÖÖ´ð¸´ÊÇÄ£°åÂð£¿
ÒѾÓÐ6È˻ظ´
¿´°åÉÏÕâô¶àÖеģ¬ÓеãÏñ50ÈËȺÀï49¸öÈ˶¼ÊÇÆ×ÓµÄÄÇÖָоõ¡¡
ÒѾÓÐ6È˻ظ´
Ôõô¿´Çà»ùÖÐÁËûÓа¡
ÒѾÓÐ5È˻ظ´
ÃÎÏë
ÒѾÓÐ3È˻ظ´
yyzhao2013
гæ (³õÈëÎÄ̳)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 10
- Ìû×Ó: 3
- ÔÚÏß: 1Сʱ
- ³æºÅ: 5811057
- ×¢²á: 2017-03-02
|
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_lcd1 utstd_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; pay ut std_logic_vector(3 downto 0);need ut std_logic_vector(3 downto 0); success ut std_logic;failure ut std_logic; getready ut std_logic; change ut std_logic_vector(3 downto 0) ; end component; component code11 port( b:in std_logic_vector(3 downto 0); b1 ut std_logic_vector(3 downto 0); b2 ut std_logic_vector(3 downto 0) ); end component; component code12 port( b:in std_logic_vector(3 downto 0); b1 ut std_logic_vector(3 downto 0); b2 ut std_logic_vector(3 downto 0) ); end component; component code13 port( b:in std_logic_vector(3 downto 0); b1 ut std_logic_vector(3 downto 0); b2 ut std_logic_vector(3 downto 0) ); end component; component code21 port( d:in std_logic_vector(3 downto 0); q ut std_logic_vector(6 downto 0)); end component; component code22 port( d:in std_logic_vector(3 downto 0); q ut std_logic_vector(6 downto 0)); end component; component code23 port( d:in std_logic_vector(3 downto 0); q ut std_logic_vector(6 downto 0)); end component; component code24 port( d:in std_logic_vector(3 downto 0); q ut std_logic_vector(6 downto 0));end component; component code25 port( d:in std_logic_vector(3 downto 0); q ut std_logic_vector(6 downto 0)); end component; component code26 port( d:in std_logic_vector(3 downto 0); q ut 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
cdeda
ÖÁ×ðľ³æ (ÖªÃû×÷¼Ò)
- Ó¦Öú: 1 (Ó×¶ùÔ°)
- ½ð±Ò: 17375.1
- ºì»¨: 1
- ɳ·¢: 8
- Ìû×Ó: 5228
- ÔÚÏß: 133.2Сʱ
- ³æºÅ: 1239617
- ×¢²á: 2011-03-20
- ÐÔ±ð: GG
- רҵ: ÐÅÏ¢ÀíÂÛÓëÐÅϢϵͳ

3Â¥2017-03-20 17:23:35









utstd_logic_vector(6 downto 0);
;
»Ø¸´´ËÂ¥