下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、显示译码部分library ieee;entity dec7s isport(a:in bit_vector(3 downto 0;onoff:in std_logic;led7s:out bit_vector(6 downto 0;end;architecture one of dec7s isbeginprocess(a,onoffbeginif(onoff='0' then led7s<="0000000"elsif (a="0000" then led7s<="0111111"elsif(a=&qu
2、ot;0001"then led7s<="0000110"elsif(a="0010"then led7s<="1011011"elsif(a="0011"then led7s<="1001111"elsif(a="0100"then led7s<="1100110"elsif(a="0101"then led7s<="1101101"elsif(a="0110&qu
3、ot;then led7s<="1111101"elsif(a="0111"then led7s<="0000111"elsif(a="1000"then led7s<="1111111"elsif(a="1001"then led7s<="1101111"elsif(a="1010"then led7s<="1110111"elsif(a="1011"then le
4、d7s<="1111100"elsif(a="1100"then led7s<="0111001"elsif(a="1101"then led7s<="1011110"elsif(a="1110"then led7s<="1111001"else led7s<="1110001"end if;end process;end one;状态机部分library ieee;ENTITY display ISPOR
5、T( clk: in std_logic;reset: IN STD_LOGIC;d1,d2,d3,d4,d5,d6,d7,d8: in std_logic_vector(3 downto 0; Onoff: out std_logic;Dp:out std_logic;Dout: out std_logic_vector(3 downto 0;Sel: buffer std_logic_vector(2 downto 0;END ;ARCHITECTURE one OF display ISBeginProcess(clk,resetBeginIf reset='1' the
6、n sel<="000"Elsif clk'event and clk='1' thenIf (sel="111"thenSel<="000"ElseSel<=sel+1;End if;end if;end process;process(selbeginif(sel="111" then dout<=d1;onoff<='1'dp<='0' elsif(sel="110" then dout<=d
7、2;onoff<='1'dp<='1' elsif(sel="101" then dout<=d3;onoff<='1'dp<='0' elsif(sel="100" then dout<=d4;onoff<='1'dp<='0' elsif(sel="011" then dout<=d5;onoff<='0'dp<='0' elsif(sel="010" then dout<=d6;onoff<='1'dp<='0' elsif(sel="001" then dout<=d7;onoff<='1'dp<='1' el
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年山西省晋中市单招职业适应性测试必刷测试卷及答案1套
- 2026年安徽粮食工程职业学院单招职业倾向性考试题库新版
- 2026年铜川职业技术学院单招职业适应性测试题库必考题
- 2026年山西金融职业学院单招职业适应性测试题库必考题
- 2026年唐山幼儿师范高等专科学校单招职业技能考试题库必考题
- 2026年大理农林职业技术学院单招职业适应性测试题库必考题
- 2026年天津仁爱学院单招职业技能考试题库及答案1套
- 2026年哈密职业技术学院单招职业倾向性测试题库必考题
- 2026年江西省上饶市单招职业倾向性测试必刷测试卷附答案
- 2026年邯郸幼儿师范高等专科学校单招职业倾向性测试题库及答案1套
- 2025齐齐哈尔辅警考试真题
- 幼儿园五大领域跨部门协同流程
- 青少年皮肤护理课件
- 行政实务培训课件
- 《创造的儿童教育》解读与探讨
- 管家星级评定管理办法
- 职业生涯报告课件
- 外贸电池知识培训课件
- 健康教育与疾病预防的实践案例分析
- 胸腔镜肺大泡切除护理查房讲课件
- 2025年中国邮政集团有限公司甘肃省分公司校园招聘笔试模拟试题及参考答案详解一套
评论
0/150
提交评论