实验三 8位乘法器的设计.docVIP

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
实验三 8位乘法器的设计

实验三 8位乘法器的设计 实验目的 了解8位乘法器的工作原理 熟悉MAX+plusII软件的基本使用方法 熟悉EDA实验开发的基本使用方法 学习VHDL程序中数据对象,数据类型,顺序语句,并行语句的综合使用 实验内容 设计一个由8位加法器构成的以时序逻辑方式设计的8位乘法器。其乘法原理是:乘法通过逐项位移相加原理来实现,以被乘数的最低位开始,若为1,则乘数左移后与上一次和相加,若为0,左移后以全零相加,直至被乘数的最高位。 实验条件 开发软件:MAX+plus II 9.23 Baseline 硬件设备:装有windows7的pc机 实验设计 系统的原理框架图 VHDL源程序 andarith.vhd源代码 library ieee; use ieee.std_logic_1164.all; entity andarith is port(abin:in std_logic; din:in std_logic_vector(7 downto 0); dout: out std_logic_vector(7 downto 0)); end entity andarith; architecture art of andarith is begin process(abin, din)is begin for i in 0 to 7 loop dout(i)=din(i)and abin; end loop; end process; end architecture art; arictl.vhd源代码 library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity arictl is port(clk:in std_logic; start: in std_logic; clkout:out std_logic; rstall: out std_logic; ariend: out std_logic); end entity arictl; architecture art of arictl is signal cnt4b:std_logic_vector(3 downto 0); begin rstall=start; process(clk, start)is begin if start=1 then cnt4b=0000; elsif clkevent and clk=1then if cnt4b8 then cnt4b=cnt4b+1; end if; end if; end process; process (clk,cnt4b,start)is begin if start=0then if cnt4b8 then clkout=clk; ariend=0; else clkout=0; ariend=1; end if; else clkout=clk; ariend=0; end if; end process; end architecture art; sreg8b.vhd library ieee; use ieee.std_logic_1164.all; entity sreg8b is port (clk: in std_logic; load: in std_logic; din: std_logic_vector(7 downto 0); qb: out std_logic); end entity sreg8b; architecture art of sreg8b is signal reg8:std_logic_vector(7 downto 0); begin process(clk, load)is begin if clkevent and clk=1then if load=1then reg8=din; else reg8(6 downto 0)=reg8(7 downto 1); end if; end if; end process; qb=reg8(0); end architecture art; reg16b.vhd library ieee; use ieee.std_logic_1164.all; entity reg16b is port(clk: in std_logic; clr: in std_logic; d: in std_logic_vector(8 downto 0); q: out std_logic_vec

文档评论(0)

xcs88858 + 关注
实名认证
文档贡献者

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

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档