- 16
- 0
- 约3.12千字
- 约 5页
- 2016-09-22 发布于河南
- 举报
《EDA作业答案》.doc
作业
讲解P92:3-2、3-3、3-4(1)、3-5、3-12、3-14
P92:3-2
Library ieee;
Use ieee.std-logic-1164.all;
Entity mux41 is
Port(s0,s1,a,b,c,d: in std-logic;
y: out std-logic);
end mux41;
architecture one of mux41 is
begin
process(s0,s1,a,b,c,d)
begin
if s0=‘0’and s1=‘0’then y﹤=a;
elsif s0=‘1’and s1=‘0’then y﹤=b;
elsif s0=‘0’and s1=‘1’then y﹤=c;
else y﹤=d;
end if;
end process;
end one;
Library ieee;
Use ieee.std-logic-1164.all;
Entity mux41 is
Port(s0,s1,a,b,c,d: in std-logic;
y: out std-logic);
end mux41;
architecture one of mux41 is
signal stmp: std-logic-vector(1 downto 0);
begin
stmp﹤=s1s0;
process(s0,s1,a,b,c,d)
begin
case stmp is
when“00”=﹥y﹤=a;
when“01”=﹥y﹤=b;
when“10”=﹥y﹤=c;
when“11”=﹥y﹤=d;
when others=﹥null;
end case;
end process;
end one;
P92:3-3
Entity muxk is
Port(s0,s1,a1,a2,a3: in bit;
outy: out bit);
end muxk;
architecture one of muxk is
signal tmp :bit;
begin
process(s0,a2,a3)
begin
case s0 is
when‘0’=﹥tmp﹤=a2;
when‘1’=﹥tmp﹤=a3;
when others=﹥null;
end case;
end process;
process(s1,tmp,a1)
begin
case s1 is
when‘0’=﹥outy﹤=a1;
when‘1’=﹥outy﹤=tmp;
when others=﹥null;
end case;
end process;
end one;
P92:3-4(1)
x1 0 0 1 1
y1 0 1 0 1
diff 0 1 1 0
s-out 0 1 0 0
Library ieee;
Use ieee.std-logic-1164.all;
Entity h-suber is
Port(x1, y1: in std-logic;
diff, s-out : out std-logic);
end h-suber;
architecture one of h-suber is
begin
diff﹤=x1 xor y1;
s-out﹤=(not x1) and y1;
end one;
Library ieee;
Use ieee.std-logic-1164.all;
Entity or2a is
Port(a, b: in std-logic;
c : out std-logic);
end or2a;
architecture two of or2a is
begin
c﹤=a or b;
end two;
Library ieee;
Use ieee.std-logic-1164.all;
Entity f-suber is
Port(x, y, sub-in: in std-logic;
diffr, sub-out : out std-logic);
end f-suber;
architecture three of f-suber is
component h-suber
port(x1,y1: in std-logic;
diff, s-out: out std-logic);
end component;
component or2a
port(a, b: in std-logic;
c: out std-logic);
end component;
signal t0, t1, t2: std-logic;
begin
u1: h-suber port map(x1=﹥x, y1
您可能关注的文档
- 《2016年高二理科寒假作业参考答案》.doc
- 《2016康美药业股份有限公司财务报告》.pdf
- 《2016新企业会计准则高级培训班(》.doc
- 《2016最新版初级会计实务精讲讲义(全)》.doc
- 《2016注册资产评估师考试综合习题集--财务会计--》.pdf
- 《2016浙大《生理与病理学》离线作业答案》.doc
- 《2016深圳初二寒假作业答案》.doc
- 《2016版采购法务与合同管理(第一章答案)》.doc
- 《2016电大 社交礼义作业答案.》.doc
- 《2016秋本科国际经济技术合作平时作业答案》.doc
- 醛酮化学教学探索.pptx
- 2026年基于大数据的金融数据分析系统开发项目初步设计.docx
- 黑色矿石行业市场前景及投资研究报告:矿石限制博弈,短期反弹,空间有限.pdf
- 机械设备流程工业行业市场前景及投资研究报告:艾默生,中国流程工业仪器仪表自主化机遇.pdf
- 计算机行业市场前景及投资研究报告:Token出海,国产模型,IDC需求.pdf
- 2026年小区安防人脸识别系统管理项目规划.docx
- 2026年小型家用音响销售渠道及推广计划书.docx
- 上海市水闸维修养护技术规程.pptx
- 家居行业市场前景及投资研究报告:政策预期升温,家居板块需求回暖,估值修复.pdf
- 2026年健身行业从业人员技能培训体系建设计划书.docx
原创力文档

文档评论(0)