数字电路实验报告.docVIP

  1. 1、本文档共14页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  5. 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  6. 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  7. 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  8. 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
实验一、半加器与全加器的电路图实现 半加器 1、半加器的电路图——见图1 图1——半加器的电路图 2、半加器仿真波形图——见图2 图2——半加器仿真波形图 3、仿真图简析:如图2,为半加器仿真波形图。对应a,b输入波形,得到的c为进位,s为和。如a=1,b=0,c=0,s=1. 4、半加器的VHDL语言为: library ieee; use ieee.std_logic_1164.all; entity tx23p31 is port (a,b:in std_logic; co,so:out std_logic); end entity tx23p31; architecture a of tx23p31 is begin so= a xor b; co= a and b; end; 全加器 1、全加器的电路图——见图3 图3——全加器的电路图 2、全加器的VHDL语言 library ieee; use ieee.std_logic_1164.all; entity tx23p3 is port (ain,bin,cin:in std_logic; cout,sum:out std_logic); end entity tx23p3; architecture a of tx23p3 is component tx23p31 port(a,b:in std_logic; co,so: out std_logic); end component; signal d,e,f:std_logic; begin u1:tx23p31 port map (a=ain,b=bin,co=d,so=e); u2:tx23p31 port map (a=e,b=cin,co=f,so=sum); cout=d or f; end; 3、全加器的RTL viewer:见图4 图4——全加器的RTL viewer 实验二、函数发生器 1、电路图——见图5 图5——函数发生器的实验电路图 2、函数发生器的仿真波形图——见图6 图6——函数发生器的仿真波形图 3、波形图仿真分析:如上图,当a,b,c的取值为0,4,6,7时,f=1;其他时刻,f=0。如第一列波形,a=0,b=0,c=0,此时f=1. 实验三、四选一数据选择器 library ieee; use ieee.std_logic_1164.all; entity tx23w1 is port(a:in std_logic_vector(1 downto 0); d:in std_logic_vector(3 downto 0); y:out std_logic); end tx23w1; architecture mux4 of tx23w1 is begin process(a,d) begin case a is when 00 = y=d(0); when 01 = y=d(1); when 10 = y=d(2); when 11 = y=d(3); when others=y=0; end case; end process; end mux4; 图7——四选一数据选择器波形图 实验四、裁判器 library ieee; use ieee.std_logic_1164.all; entity tx23w2 is port(a:in std_logic_vector(2 downto 0); y:out std_logic_vector(1 downto 0)); end tx23w2; architecture mux8 of tx23w2 is begin process(a) begin case a is when 000 = y= 00; when 001 = y= 00; when 010 = y= 00; when 011 = y= 10; when 100 = y= 10; when 101 = y= 11; when 110 = y= 11; when 111 = y= 11; when others= y=00; end case; end process; end mux8; 图8——裁判表决器 实验五、50M分频器 library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity tx23w3 is port (

文档评论(0)

134****4355 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档