Article View: cn.bbs.sci.electronics
Article #256���һ��С����ı������⣡
From: ���ֹ�ÿһ��
Date: Mon, 05 Dec 2005 01:37
Date: Mon, 05 Dec 2005 01:37
31 lines
1595 bytes
1595 bytes
лл����ˣ�
��QuartusII����VHDL��д��һ��if��������
entity en3 is
port(a,b,c,p1,p2:in bit;
z:out bit);
end en3;
architecture arch of en3 is
begin
process(a,b,c,p1,p2)
begin
if(p1='1')then
z<=a;
else if(p2='0')then
z<=b;
end if;
end process;
end arch;
�������´���
Error: VHDL syntax error at en3.vhd(16) near text "process"; expecting "if"
Error: VHDL error at en3.vhd(17): type of identifier arch does not agree wit
h its usage as void type
--
[1;31;44m�ж�־���ķ�
��Ҫ��Ϊ����IJ�[1;5;43m���ֶ�ʧȥ
ǰ�������[1;5;32;44m�Ͷ���
************************************
[m[1;33m�� ��Դ:����ɽ��ˮվ bbs.neu.edu.cn��[FROM: 202.118.20.122][m
Technical Details
Message-ID:
<4LRTF0$1bP@bbs.neu.edu.cn>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!nntp-server.pubsub.com!news.neu.edu.cn!NEUShow Full Headers
Complete Article Headers
X-Google-Thread: 100bb0,4588bac948553eb0,start X-Google-Attributes: gid100bb0,public X-Google-Language: ENGLISH,GB Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!nntp-server.pubsub.com!news.neu.edu.cn!NEU From: helinbo@bbs.neu.edu.cn (���ֹ�ÿһ��) Newsgroups: cn.bbs.sci.electronics Subject: ���һ��С����ı������⣡ Date: 05 Dec 2005 01:37:29 GMT Organization: ��ɽ��ˮ Message-ID: <4LRTF0$1bP@bbs.neu.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: EDA/M.1133746128.D0 Lines: 31