版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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年河南幼儿试讲真题及答案
- 2025年二建 试题及答案及答案
- 2026年机械员考试题库及参考答案(突破训练)
- 酒店礼仪素养试卷及答案
- 2025年高三化学高考化学物理交叉模拟试题
- 2025年高三化学高考化学关键能力评估模拟试题
- 陕西省二造考试题及答案
- 西华大学动画真题及答案
- 钻孔专用夹具设计
- 2025年高校教师资格证之高等教育学考试题库及参考答案【综合题】
- 电信宽带服务协议6篇
- 比亚迪讲解课件
- 2025杭州桐庐县统计局编外招聘2人考试参考题库及答案解析
- 人工智能+智能路灯节能减排分析报告
- 湖南单招历史试题及答案
- 扶贫项目实施方案及资金管理
- 2025中国华腾工业有限公司招聘笔试历年参考题库附带答案详解(3卷合一)
- 2025宝鸡社区考试真题及答案
- 机械设计制造及其自动化专升本2025年智能设备联网试卷(含答案)
- 小学数学期末综合评价标准与表格
- 手术过程及准备流程
评论
0/150
提交评论