![EDA数字电子钟设计(共14页)_第1页](http://file2.renrendoc.com/fileroot_temp3/2021-8/20/668773ba-9955-4ffb-bf12-6cab248e9c1d/668773ba-9955-4ffb-bf12-6cab248e9c1d1.gif)
![EDA数字电子钟设计(共14页)_第2页](http://file2.renrendoc.com/fileroot_temp3/2021-8/20/668773ba-9955-4ffb-bf12-6cab248e9c1d/668773ba-9955-4ffb-bf12-6cab248e9c1d2.gif)
![EDA数字电子钟设计(共14页)_第3页](http://file2.renrendoc.com/fileroot_temp3/2021-8/20/668773ba-9955-4ffb-bf12-6cab248e9c1d/668773ba-9955-4ffb-bf12-6cab248e9c1d3.gif)
![EDA数字电子钟设计(共14页)_第4页](http://file2.renrendoc.com/fileroot_temp3/2021-8/20/668773ba-9955-4ffb-bf12-6cab248e9c1d/668773ba-9955-4ffb-bf12-6cab248e9c1d4.gif)
![EDA数字电子钟设计(共14页)_第5页](http://file2.renrendoc.com/fileroot_temp3/2021-8/20/668773ba-9955-4ffb-bf12-6cab248e9c1d/668773ba-9955-4ffb-bf12-6cab248e9c1d5.gif)
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、 青海民族大学 EDA论文论文题目: 基于EDA的数字电子钟的实现指导老师: 院系 : 物理与电子信息工程学院 姓名 : 学号 : 班级 : 08通信工程(1)班 2010年11月25日 目录 摘要 Abstract第1章 :绪论 1.1:选题目的 1.2:设计思路第2章 :数字电子钟小系统 2.1:整体设计方案框架图 2.2:模块程序验证 2.3:总程序框图第3章 :硬件实现与总结 3.1:硬件实现 3.2:总结 致谢 参考文献 摘要EDA技术的设计语言为VHDL(硬件描述语言),实验载体为可编程器件CPLD或者FPGA,进行元件建模和仿真的目标器件为ASIC/SOC芯片。它是一种自动化设计
2、电子产品的过程。在电子设计仿真的领域里,EDA技术的出现具有非常重要的现实意义。EDA源自于计算机辅助设计、制造、测试以及辅助工程。利用EDA工具,设计者们可以从概念、算法、协议等方面来设计电子系统。值得一提的是,在整个电子系统的设计过程中,设计电路、分析性能、布置IC和PCB版图等步骤都可以在电脑上自动完成。时钟我们的日常生活中必备的生活用品之一。而数字时钟的出现更是给人们的生产生活带来了极大的便利。EDA技术为数字类产品提供了一个非常简便实用的开发平台。随着EDA技术的快速发展,数字时钟的应用的范围越来越广泛,并且它在功能、外观等方面也有了很大的改善和提高。本文就是基于EDA技术和数字电路
3、的基础知识,利用Quartus2软件、再现一个传统时钟功能和闹铃功能的数字时钟。整个小系统包括传统数字时钟所拥有的计时模块、校时模块、译码显示模块。 关键词:EDA;数字时钟;模块;闹钟 Abstract EDA technology design language for VHDL (hardware description language), experimental carrier for programmable devices, components or FPGA CPLD device modeling and simulation of target for ASIC/SOC
4、 chip. It is a kind of automation design electronic product process. In the electronic design simulation field, EDA technique appears has very important practical significance. EDA originated in computer aided design, manufacture, test and the auxiliary projects. Using EDA tools, designers can from
5、concept, algorithm, agreement, etc to design electronic systems. Be worth what carry is, in the whole electronic system design process, the circuit design, analyzing performance, decorate IC and PCB layout steps can be on the computer automatically. Clock is one of the necessaries in our daily life.
6、 And digital clock has brought about lots of convenience. EDA technology provides a simpler and more useful platform to make a study of digital products. With the development of EDA technology, digital clock has improved a lot in its designing process, functions, appearance and so on. Nowadays, this
7、 paper is based on EDA technique and digital circuit, by using the basic knowledge of Quartus2 software, reproduce a traditional clock function and alarm function of digital clock. The system includes traditional digital clocks have timer modules, alarm clock module, decoding display module. Keyword
8、s: EDA; digital clock; modules; alarm 第一章:绪论1.1:选题目的 时钟是我们日常生活中常见的一种电子产品,它的出现给我们的生活带来了极大的便利,在大学这两年里所学的有关电子的知识尤其是EDA给了我一个平台去再现原始的、传统的数字电子钟,也为深入去了解、思考创新数字电子钟有一个基础。 目前,现代时钟正朝着高精度、多功能、小体积、低功耗等方向发展。在这种趋势下,数字时钟以其小巧的外形、便宜的价格、走时准确、功能强大等优点迅速成为钟表市场上的主流产品。由此可见,研究数字时钟的扩展及其应用,有着非常重要的现实意义。 因此,本论文即利用EDA技术(本论文仅涉及VH
9、DL语言编程及硬件实现)以及数字电路技术等基础知识设计了一个传统钟表功能(如计时、闹铃等)数字时钟小系统。1.2:设计思路要实现一个数字时钟小系统,整个系统由主要模块电路模块和外部输入输出以及显示模块组成。首先分别实现单个模块的功能,然后再通过级联组合的方式实现对整个系统的设计。其中,主要模块有四个。它包括脉冲信号产生模块、时间计数模块(计数模块又分为分计数模块、秒计数模块、时计数模块)、译码显示模块、复位模块。各个模块先用EDA技术中的VHDL语言编程仿真,再生成各个小模块的模拟元件,再元件例化,根据设计连接电路实现数字电子钟小系统。 第二章:数字电子钟小系统译码显示2.1:整体设计方案框架
10、图 校时模块计时模块复位模块时钟脉冲2.2:模块程序验证 1、秒计时器(second1)library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity second is port(clk,reset:in std_logic; sec1,sec2:out std_logic_vector(3 downto 0); carry:out std_logic);end second;architecture rt1 of second is signal sec1_t,sec2_t:std_logic_
11、vector(3 downto 0);begin process(clk,reset) begin if reset=1then sec1_t=0000; sec2_t=0000; elsif clkevent and clk=1then if sec1_t=1001then sec1_t=0000; if sec2_t=0101then sec2_t=0000; else sec2_t=sec2_t+1; end if; else sec1_t=sec1_t+1; end if; if sec1_t=1001 and sec2_t=0101then carry=1; else carry=0
12、; end if; end if; end process; sec1=sec1_t; sec2=sec2_t;end rt1;程序生成波形和硬器件:同秒计时器一样3、时计时器(hour1)library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity hour is port (clk,reset:in std_logic; hour1,hour2:out std_logic_vector(3 downto 0); end hour;architecture rt1 of hour is sign
13、al hour1_t,hour2_t:std_logic_vector(3 downto 0);beginprocess(clk,reset)begin if reset=1then hour1_t=0000; hour2_t=0000; elsif clkevent and clk=1then if hour1_t=0011 and hour2_t=0010then hour1_t=0000; hour2_t=0000; else if hour1_t=1001then hour1_t=0000; if hour2_t=0010then hour2_t=0000; else hour2_t=
14、hour2_t+1; end if; else hour1_t=hour1_t+1; end if; end if; end if;end process; hour1=hour1_t; hour2=hour2_t;end rt1;程序生成波形和硬器件:4、 分频器(fp)library IEEE; use IEEE.std_logic_1164.all;use IEEE.std_logic_arith.all;use IEEE.std_logic_unsigned.all;entity fp is port (rst,clk : in STD_LOGIC; what: out STD_LOG
15、IC);end fp;architecture a of fp is signal count100 : integer range 0 to 99; signal tt:std_logic;begin process (rst,clk) begin if rst=1 then count100=0; elsif rising_edge(clk) then count100= count100 + 1 ;tt=tt; if count100=99 then count100=0;tt=not tt; end if ; end if; what=tt; end process;end a;程序生
16、成波形和硬器件:5、mux6_1scanlibrary ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity mux6_1scan is port(clkscan,reset:in std_logic; in1,in2,in3,in4,in5,in6:in std_logic_vector(3 downto 0); data:out std_logic_vector(3 downto 0); sel:out std_logic_vector(2 downto 0);end mux6_1scan;archi
17、tecture rt1 of mux6_1scan is signal count:std_logic_vector(2 downto 0);begin process(clkscan,reset) begin if reset=1then count=000; elsif clkscanevent and clkscan=1then if count=101then count=000; else countdatadatadatadatadatadata=in6;end case;end process; seldoutdoutdoutdoutdoutdoutdoutdoutdoutdou
18、tdout=0000000; end case; end process;end behav;程序生成波形和硬器件:7. 校时模块图四、 系统设计 将上述5个程序作为底层文件,存放在同一个文件夹中,然后按下面的图将这几个文件连接起来,并用元件例化语句编写顶层文件的程序,如下:library ieee;use ieee.std_logic_1164.all;entity zdbs isport(hour1,hour2,min1,min2,sec1,sec2:in std_logic_vector(3 downto 0); q1,q0:in std_logic; q:out std_logic);
19、end zdbs;architecture one of zdbs issignal q3,q4:std_logic;beginprocess(min1,min2,sec1,sec2)beginif hour2=0000and hour10111thenq3=0;q4=0;elsif min2=0101and min1=1001and sec2=0101thenif sec1=0000or sec1=0010or sec1=0100 or sec1=0110or sec1=1000thenq3=1;elseq3=0;end if;end if;if hour2=0000and hour10111thenq3=0;q4=0;elsif min2=0000and min1=0000and sec2=0000and sec1=0000thenq4=1;elseq4=0;end if;end proce
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 企业管理服务咨询服务简单合同
- 冲孔灌注桩施工劳务分包合同
- 三方合同补充协议书
- 资产买卖合同
- 给水、污水泵设备安装合同
- 地毯购销合同范本地毯购销合同
- 在线教育系统共建共享合同
- 产品销售合同范本集锦
- 医疗器械销售合同简易模板
- 社区团购平台搭建及运营合同
- 2024年潍坊工程职业学院单招职业适应性测试题库完美版
- GB/T 44823-2024绿色矿山评价通则
- 人教版英语高考试卷与参考答案(2024年)
- 红楼梦服饰文化
- 浙江省中小学心理健康教育课程标准
- 《共情的力量》课件
- 2022年中国电信维护岗位认证动力专业考试题库大全-上(单选、多选题)
- 水平二(四年级第一学期)体育《小足球(18课时)》大单元教学计划
- 《关于时间管理》课件
- 医药高等数学智慧树知到课后章节答案2023年下浙江中医药大学
- 城市道路智慧路灯项目 投标方案(技术标)
评论
0/150
提交评论