




已阅读5页,还剩8页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
J I A N G S U U N I V E R S I T Y课 程 实 验 报 告电子设计自动化 实验报告学院: 电气信息工程学院 班级: 学号: 姓名: 2015年10月实验一 半加器和全加器的设计1、 实验目的1.熟悉Max+plus软件的作用2.学习用图形输入方式和VHDL语言输入方式设计数字电 路二、实验内容1.图形输入方式设计半加器2.VHDL方式设计半加器 library ieee;use ieee.std_logic_1164.all;entity half_adder11 is port(a,b : in std_logic; so,co : out std_logic);end entity half_adder11;architecture fh1 of half_adder11 is begin so=(a xor b); co=( a and b);end architecture fh1;3. 图形输入方式设计全加器4.VHDL方式设计全加器 library ieee;use ieee.std_logic_1164.all;entity or1 is port(a,b : in std_logic; c : out std_logic);end entity or1;architecture fu1 of or1 is begin c= a or b;end architecture fu1;library ieee;use ieee.std_logic_1164.all;entity h_a is port(a,b : in std_logic; so,co : out std_logic);end entity h_a;architecture fh1 of h_a is begin so=(a xor b); coain,b =bin,co =d,so =e);u2 : h_a port map(a =e,b =cin,co =f,so =sum);u3 : or1 port map(a =d,b =f,c =cout);end architecture fd1;3、 设计实现 1.图形输入方式设计半加器 2.VHDL方式设计半加器 3.图形输入方式设计全加器4.VHDL方式设计全加器 四、仿真波形 半加器:全加器: 实验二 四选一数据选择器的设计一、实验目的1.熟悉Max+plus软件的作用2.学习用图形输入方式和VHDL语言输入方式设计数字电 路二、实验内容1. If语句library ieee;use ieee.std_logic_1164.all;entity mux41a is port(a,b,c,d : in std_logic_vector(3 downto 0); sel : in std_logic_vector(1 downto 0); y : out std_logic_vector(3 downto 0);end mux41a;architecture one of mux41a isbeginprocess(a,b,c,d,sel)beginif(sel=00) then y=a;elsif(sel=01) then y=b;elsif(sel=10) then y=c;elsif(sel=11) then y y y y y y=null;end case;end process;end one;3. whenelse语句library ieee;use ieee.std_logic_1164.all;entity mux41c is port(a,b,c,d : in std_logic_vector(3 downto 0); sel : in std_logic_vector(1 downto 0); y : out std_logic_vector(3 downto 0);end mux41c;architecture one of mux41c isbeginy=a when sel=00 else b when sel=01 else c when sel=10 else d when sel=11;end one;4. withselectwhen语句library ieee;use ieee.std_logic_1164.all;entity mux41d is port(a,b,c,d : in std_logic_vector(3 downto 0); sel : in std_logic_vector(1 downto 0); y : out std_logic_vector(3 downto 0);end mux41d;architecture one of mux41d isbeginwith sel selecty=a when 00, b when 01, c when 10, d when 11, null when others;end one;3、 设计实现 4、 仿真波形 实验三 可逆计数器的设计一、实验目的1.熟悉Max+plus软件的作用2.学习用图形输入方式和VHDL语言输入方式设计数字电 路二、实验内容library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity bicnt isport(clk,rst,dir:in std_logic; q:buffer std_logic_vector(3 downto 0);end bicnt;architecture one of bicnt isbegin process(clk,rst,dir) begin if rst
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 分销合作合同范本
- 2024年二级造价师考试题库及参考答案(新)
- 2024年社区《网格员》备考题汇编(含答案)
- 毕业论文目录制作
- 2025年双向转诊医疗纠纷预防合同模板
- 毕业论文专业文献翻译
- “入乎其内”也要出乎其外“”-以《促织》和《变形记》小说教学为例
- 环境专业毕业论文插图
- 2025年18-萘二甲酰亚胺合作协议书
- 2025年写字楼电梯困人演练通知范文大全
- 2025年留疆战士考试题库及答案
- 新初一入学分班考试语文卷(含答案)
- 2025年高考英语新课标Ⅱ卷点评及2026备考方向 课件
- 2025广西专业技术人员公需科目培训考试答案
- 人教版2024年小学升学考试数学模拟测试卷(共5套)(含答案解析)
- 中航工业运营管理体系内容介绍课件
- 敏捷项目管理实践指南
- 《数据结构》课件(完整版)
- 友声收银系列电子秤使用说明书
- 《立体裁剪》实训指导书
- 中英文版送货单
评论
0/150
提交评论