版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、动态数码管 library IEEE;entity count1000 isport(clock:in std_logic;clk:out std_logic;end entity count1000;architecture one of count1000 issignal q:std_logic;beginprocess(clockvariable a:integer range 0 to 10000;beginif clock'event and clock='1' thenif a=10000 thena:=0;q<= not q;elsea:=a+1;
2、end if;end if;end process;clk<=q;end architecture one;library IEEE;entity count8 isport(clk:in std_logic;a:buffer std_logic_vector(2 downto 0; end entity count8;architecture one of count8 isbeginprocess(clkbeginif clk'event and clk='1' thenif a=7 thena<="000"elsea<=a+1
3、;end if;end if;end process;end one;library IEEE;entity seg7 isport(clk:in std_logic;q:out std_logic_vector(6 downto 0;end entity seg7;architecture one of seg7 issignal w:std_logic_vector(3 downto 0:="0000" beginprocess(clkbeginif clk'event and clk='1' thenif w="1111"
4、thenw<="0000"elsew<=w+1;end if;end if;end process;process(wbegincase w iswhen "0000"=> q<="1111110"when "0001"=> q<="0110000"when "0010"=> q<="1101101"when "0011"=> q<="1111001"whe
5、n "0100"=> q<="0110011" when "0101"=> q<="1011011" when "0110"=> q<="1011111"when "0111"=> q<="1110000"when "1000"=> q<="1111111"when "1001"=> q<="11
6、11011"when "1010"=> q<="1110011"when "1011"=> q<="0011111"when "1100"=> q<="1001110"when "1101"=> q<="0111101"when "1110"=> q<="1001111"when others=> q<="1000111"end case;end process;end one;library IEEE;port(clock:in std_logic;clk:out std_logic;end entity count1HZ;architecture one of count1HZ is signal q:std_logic;beginprocess(clockvariable a:integer range 0 to 10000000; beginif clock'event and clock='1'
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 电子维修服务站设备操作与维护手册
- 中国人民建设银行借款合同
- 分部分项验收规范方案
- 交通行业大数据安全防护手册
- 2025年河北省生物试题及答案
- 科技创新激发探索欲望小学主题班会课件
- 土地规划利用试题及答案
- 环境保护小卫士:节约用水篇小学主题班会课件
- 年医疗汽车电池材料市场供需关系投资潜力规划分析报告
- 职场人士商务沟通技巧高效提升指导书
- 2026湖南衡阳市衡东县卫健系统招聘专业技术人员46人模拟试卷完整附答案详解
- 2026-2030国内铁路电气设备行业市场发展分析及竞争格局与投资机会研究报告
- 2026-2030中国建筑信息模型(BIM)行业发展状况与前景趋势研究报告
- 水电站运行人员考试题及答案(教学参考)
- 2026年营养师《公共营养》测试卷(含答案)专项训练
- 2026年甘肃省三支一扶招聘考试(1800人)考试参考题库及答案详解
- 2026年学校会计高频面试题包含详细解答
- 初中八年级历史《民族团结与祖国统一》单元整体导学案
- 2026年7月自考13811绩效管理押题及答案
- 多病共存患者安全管理
- 24J113-1 内隔墙-轻质条板(一)
评论
0/150
提交评论