下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Assignment 3聪201428007326030计控学院1.Access relevant reference books or technical data books and give accurate definitions for the following timing parameters:(1) propagation time tPD,(2) transition time tTD,(3) setup time tSU,(4) hold time tHD,(5) clock-to-output time tCO.propagation time tPD :传送时间是从输
2、入脉冲到引起输出电平跳变之间的时间间隔。transition timetTD : Transitiontime is the dynamical system need to switchbetween two different stable states, when responding to a stable input signal. setup time tSU :建立时间是在时钟到达之前,输入信号稳定不变的一段时间。hold time tHD:保持时间是在时钟上升沿到来之后,数据在改变之前稳定不变的时间。clock-to-output time tCO:输出时钟时间是在时钟边沿过去
3、之后,为了使信号正常输出,仍然要保持信号稳定不变的一段时间。2.Construct VHDL ms for 74-139 dual 2-to-4-line decoders using threedescription types, i.e., behavioral, dataflow and structural descriptions. Synthesizeand simulate these ms respectively in the environment of Xilinx ISE with theMSim simulator integrated. When simulatin
4、g these ms, test vector(s) arerequired to stimulate the units under test (UUT). Reasonable test vectors are designed and created by your own as sources added to your VHDL project.Logic schematic of 74-139:Function table of one decoder of 74-139:答:行为描述:只描述电路的功能,不提供电路的硬件结构。数据流描述:分析寄存器之间的逻辑,利用逻辑关系描述电路。
5、结构描述:用各种元件描述电路。(1)Behavioral description:library IEEE;use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL;use IEEE.STD_LOGIC_UNSIGNED.ALL;- Uncomment the following library declaration if instantiating- any Xilinx primitives in this code.-library UNISIM;-use UNISIM.VComponents.all;entity decode
6、r_behavior is port(A1:in std_logic;B1:in std_logic; G1:in std_logic;INPUTSOUTPUTSENABLEGSELECTBAY0Y1Y2Y3HXXHHHHLLLLHHHLLHHLHHLHLHHLHLHHHHHLA2:in std_logic; B2:in std_logic; G2:in std_logic;Y1:out std_logic_vector(3 downto 0); Y2:out std_logic_vector(3 downto 0);end decoder_behavior;architecture Beha
7、vioral of decoder_behavior is beginprocess(A1,B1,G1) beginif G1='1' then Y1<="1111" elsif(A1='0')and(B1='0') then Y1<="1110"elsif(A1='1')and(B1='0') then Y1<="1101"elsif(A1='0')and(B1='1') then Y1<=&quo
8、t;1011" else Y1<="0111"end if; end process;process(A2,B2,G2) beginif G2='1' then Y2<="1111" elsif(A2='0')and(B2='0') then Y2<="1110"elsif(A2='1')and(B2='0') then Y2<="1101"elsif(A2='0')and(B2=
9、9;1') then Y2<="1011" else Y2<="0111"end if; end process;end Behavioral;Synthesis Result:Simulation Result:(2)Dataflow description:library IEEE;use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL;use IEEE.STD_LOGIC_UNSIGNED.ALL;- Uncomment the following library de
10、claration if instantiating- any Xilinx primitives in this code.-library UNISIM;-use UNISIM.VComponents.all;entity decoder_dataflow is port(A1,B1,G1:in std_logic;A2,B2,G2:in std_logic; Y10,Y11,Y12,Y13:out std_logic; Y20,Y21,Y22,Y23:out std_logic);end decoder_dataflow;architecture dataflow of decoder_
11、dataflow is beginY10<='0' when(A1='0')and(B1='0')and(G1='0') else '1'Y11<='0' when(A1='1')and(B1='0')and(G1='0') else '1'Y12<='0' when(A1='0')and(B1='1')and(G1='0') else '1
12、9;Y13<='0' when(A1='1')and(B1='1')and(G1='0') else '1'Y20<='0' when(A2='0')and(B2='0')and(G2='0') else '1'Y21<='0' when(A2='1')and(B2='0')and(G2='0') else '1'Y22<='
13、0' when(A2='0')and(B2='1')and(G2='0') else '1'Y23<='0' when(A2='1')and(B2='1')and(G2='0') else '1'end dataflow;Synthesis Result:Simulation Result:(3)Structural Description结构描述是通过对电路元件之间端口的描述来定义电路的,所以首先,要知道电路使用了哪些元件,以及各端口之
14、间相连的关系。从74139的结构图可以看出, 使用了10个反相器与8各三输入的与非门。编程实现反相器与三输入与非门,再使用多个反相器与三输入与非门将电路描述出来。程序代码如下:其中NOT_1 表示反相器,AND_NOT3表示三输入与非门。library IEEE;use IEEE.std_logic_1164.ALL;entity NOT_1 is port(i:in bit;o: out bit); end entity;architecture func_1 of NOT_1 is begino<=not i; end func_1;entity AND_NOT3 is port(i
15、1,i2,i3:in bit;o: out bit); end entity;architecture func_2 of AND_NOT3 is begino<=not (i1 and i2 and i3); end func_2;entity structure7 is port(G1,G2: in bit;A1,B1,A2,B2: in bit; Y10,Y11,Y12,Y13: out bit; Y20,Y21,Y22,Y23: out bit);end entity;architecture Behavioral of structure7 is component NOT_1
16、 isport(i: in bit;o: out bit);end component; component AND_NOT3 isport(i1,i2,i3: in bit;o:out bit);end component;signal G1_R,A1_R,B1_R,G2_R,A2_R,B2_R: bit; signal A1_RR,B1_RR,A2_RR,B2_RR: bit;beginn1: NOT_1 port map(G1,G1_R); n2: NOT_1 port map(A1,A1_R); n3: NOT_1 port map(B1,B1_R); n4: NOT_1 port m
17、ap(G2,G2_R); n5: NOT_1 port map(A2,A2_R); n6: NOT_1 port map(B2,B2_R);n7: NOT_1 port map(A1_R,A1_RR); n8: NOT_1 port map(B1_R,B1_RR); n9: NOT_1 port map(A2_R,A2_RR); n10: NOT_1 port map(B2_R,B2_RR);an1: AND_NOT3 port map(A1_R,B1_R,G1_R,Y10); an2: AND_NOT3 port map(G1_R,B1_R,A1_RR,Y11); an3: AND_NOT3
18、 port map(G1_R,A1_R,B1_RR,Y12); an4: AND_NOT3 port map(G1_R,A1_RR,B1_RR,Y13); an5: AND_NOT3 port map(A2_R,B2_R,G2_R,Y20); an6: AND_NOT3 port map(G2_R,B2_R,A2_RR,Y21); an7: AND_NOT3 port map(G2_R,A2_R,B2_RR,Y22); an8: AND_NOT3 port map(G2_R,A2_RR,B2_RR,Y23);end Behavioral;Synthesis Result:Simulation Result:3. (Optional) Macrocells (MCs) are key components of Complex Programmable Logic Device (PLD). Based on the MC logic schemat
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 企业客户关系管理实施指南手册
- 2025年企业内部审计团队建设与培养指南
- 非机动车停放管理规范制度
- 超市员工考勤及工资制度
- 超市商品分类及编码制度
- 2026年西藏机场招聘19人备考题库及参考答案详解一套
- 养老院老人健康饮食营养师职业发展规划制度
- 2026年阳江市纪委监委公开选调公务员8人备考题库及答案详解一套
- 2026年苏州市生物医药产业集团有限公司招聘备考题库及1套完整答案详解
- 咸安区2026年面向教育部直属师范大学公费师范毕业生专项招聘备考题库有答案详解
- 购销交易合同模板
- 2024年世界职业院校技能大赛高职组“新材料智能生产与检测组”赛项考试题库(含答案)
- CT及MR对比剂种类、临床应用及常见副反应
- 酒店楼层管理制度
- 晶体渗透压与胶体渗透压讲解
- 2023年09月四川成都市新津区招考聘用卫生专业技术人才33人笔试历年难易错点考题荟萃附带答案详解
- 沪科版七年级上册初一数学全册教案(教学设计)
- 全国各气象台站区站号及经纬度
- 三阶魔方入门-小学教学版
- 生产技术部主要职责及流程
- 广东高中高考英语听说考试故事速记复述技巧
评论
0/150
提交评论