- 1、本文档共4页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
3-8译码器fpga程序
3-8译码器
library ieee;
use ieee.std_logic_1164.all;entity decoder3_8 is
port(a,b,c,g1,g2a,g2b: in std_logic;
y: out std_logic_vector(7 downto 0));
end decoder3_8;
architecture rtl OF decoder3_8 is
signal indata: std_logic_vector(2 downto 0);
begin
indata=cba;
process(indata,g1,g2a,g2b)
begin
if(g1=1 and g2a=0 and g2b=0) then
case indata is
when 000=y
when 001=y
when 010=y
when 011=y
when 100=y
when 101=y
when 110=y
when 111=y
when others=y=XXXXXXXX;
end case;
else
y
end if;
end process;
end rtl;
8输入、3输出的优先编码器。
library ieee;
use ieee.std_logic_1164.all;
entity prior is
port( input: in std_logic_vector(7 downto 0);
y: out std_logic_vector(2 downto 0));
end prior;
architecture be_prior OF prior is
begin
process(input)
begin
if(input(0)=0) then
y=111;
elsif (input(1)=0) then
y=110;
elsif (input(2)=0) then
y=101;
elsif (input(3)=0) then
y=100;
elsif (input(4)=0) then
y=011;
elsif (input(5)=0) then
y=010;
elsif (input(6)=0) then
y=001;
elsif (input(7)=0) then
y=000;
end if;
end process;
end be_prior;
半加器实现全加器
library ieee;
use ieee.std_logic_1164.all;
entity full_adder is
port( a,b,cin: in std_logic;
co,s : out std_logic);
end full_adder;
architecture beha of full_adder is
component half_adder
port( a,b : in std_logic;
co,s : out std_logic);
end component;
signal u0_co,u0_s,u1_co:std_logic;
begin
u0:half_adder port map(a,b,u0_s,u0_co);
u1:half_adder port map(u0_s,cin,s,u1_co);
co=u0_co or u1_co;
end beha;
具有异步清零端的4位二进制计数器
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity cnt4 is
port(clk,clr: in std_logic;
您可能关注的文档
- 2011中国保险业十件大事.docx
- 2010级临床系等神经系统传导通路.doc
- 2011年下广播站计划.doc
- 2011年义堂煤业地质预报.doc
- 2011遗传与进化.doc
- 2012最新scl-90评分与解释.doc
- 2012年基础训练六(8页).doc
- 2013年十大国际酒店集团盈利.doc
- 2014会计从业增值税计算.docx
- 2013年重庆卷.doc
- 2025年长沙银行浏阳支行社会招聘考试备考题库及答案解析.docx
- 2025年浙商银行成都分行社会招聘考试备考题库及答案解析.docx
- 2025中国农业科学院烟草研究所高层次人才招聘5人考试备考题库及答案解析.docx
- 2025中国冶金地质总局二局 国冶二局(福建)集团有限公司招聘10人考试备考题库及答案解析.docx
- 2025中国宗教杂志社招聘3人考试备考题库及答案解析.docx
- 2025年长沙银行益阳支行社会招聘考试备考题库及答案解析.docx
- 2025中国农业科学院农田灌溉研究所第二批招聘14人(河南)考试备考题库及答案解析.docx
- 2025中国农业科学院郑州果树研究所青年英才招聘3人考试备考题库及答案解析.docx
- 【统编版】高中语文必修上册第1单元2.1《立在地球边上放号》精美课件(23张PPT).pptx
- 【统编版】高一语文必修上册第一单元2.1《立在地球边上放号》优质课(26张PPT)课件.pptx
最近下载
- 牛津自然拼读oxfordphonicsLevel2Unit4Lesson2课件.pptx VIP
- 《梅花易数》预测实战方法.pdf VIP
- 医院地震应急演练脚本.docx VIP
- EPLAN笔记-EPLAN笔记-EPLAN笔记-EPLAN笔记.pdf VIP
- 污水处理厂应急预案.doc VIP
- 防火封堵工程施工与验收记录表(附件8)模板.pdf VIP
- 公路工程高程横坡计算程序(2011表格版).xls VIP
- BS EN 1822-1-2019 高效空气过滤器(EPA,HEPA和ULPA).第1部分:分类性能试验标记.pdf VIP
- 皇极经世预言未来的原理.pdf VIP
- 牛津自然拼读课件OPW PPT L2 U4 Lesson1.pptx VIP
文档评论(0)