电子设计自动化课程设计报告 在实验箱上设计可调时钟_第1页
电子设计自动化课程设计报告 在实验箱上设计可调时钟_第2页
电子设计自动化课程设计报告 在实验箱上设计可调时钟_第3页
电子设计自动化课程设计报告 在实验箱上设计可调时钟_第4页
电子设计自动化课程设计报告 在实验箱上设计可调时钟_第5页
已阅读5页,还剩8页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、湖北轻工职业技术学院学号25分数电子设计自动化课程设计报告目录引 言3vhdl概述3第一章41.1 课题简述41.1.1 实训设备41.1.2 设计任务41.1.3 设计要求41.1.4 设计目的42.1 实验程序52.1.1 时种程序52.1.2 分钟程序62.2.3 秒钟程序82.2.4 扫描程序9第二章122.1原理图122.2 实验连线图132.3 实验结果13总结14参考文献15引 言vhdl概述第一章1.1 课题简述1.1.1 实训设备计算机设备系统、eda实验箱。1.1.2 设计任务 在实验箱上设计可调时钟。2.1.1 时种程序ibrary ieee;use ieee.std_l

2、ogic_1164.all;use ieee.std_logic_unsigned.all;entity zyy24 isport(clk:in std_logic; r:in std_logic_vector(1 downto 0); d:in std_logic_vector(3 downto 0); g23:out std_logic_vector(3 downto 0); s23:out std_logic_vector(3 downto 0) );end zyy24;architecture yang of zyy24 is signal one_temp1,one_temp2:st

3、d_logic_vector(3 downto 0); b2.1.2 分钟程序library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity zyy60 isport(clk:in std_logic; r:in std_logic_vector(1 downto 0); d:in std_logic_vector(3 downto 0); co:out std_logic; clock:out std_logic; g60:out std_logic_vector(3 downto 0); s60

4、:out std_logic_vector(3 downto 0) );end zyy60;architecture yang of zyy60 is signal one_temp1,one_temp2:std_logic_vector(3 downto 0); begin process(clk) begin if(r=00) then one_temp1=0000; one_temp2=0000; elsif(r=01) then one_temp2=d; elsif (r=10) then one_temp1=d; elsif(clkevent and clk=1) then if (

5、one_temp1=5 and one_temp2=9) then one_temp1=0000; one_temp2=0000; elsif (one_temp2=9) then one_temp2=0000; one_temp1=one_temp1+1; else one_temp2=one_temp2+1; end if; end if; end process; g60=one_temp2; s60=one_temp1; co=1 when (one_temp1=5 and one_temp2=9) else 0; clock=1 when (one_temp1=5 and one_t

6、emp2=9) else 0;end yang; 2.2.3 秒钟程序library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity m60 isport(clk:in std_logic; r:in std_logic; co:out std_logic; g60:out std_logic_vector(3 downto 0); s60:out std_logic_vector(3 downto 0) );end m60;architecture yang of m60 is signal on

7、e_temp1,one_temp2:std_logic_vector(3 downto 0); begin process(clk) begin if(r=0) then one_temp1=0000; one_temp2=0000; elsif(clkevent and clk=1) then if (one_temp1=5 and one_temp2=9) then one_temp1=0000; one_temp2=0000; elsif (one_temp2=9) then one_temp2=0000; one_temp1=one_temp1+1; else one_temp2=on

8、e_temp2+1; end if; end if; end process; g60=one_temp2; s60=one_temp1; co=1 when (one_temp1=5 and one_temp2=9) else 0;end yang;2.2.4 扫描程序library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity sm isport(clk:in std_logic;qin0,qin1,qin2,qin3,qin4,qin5:in std_logic_vector(3 downt

9、o 0); seg:out std_logic_vector(6 downto 0);scan:out std_logic_vector(2 downto 0);end sm;architecture one of sm issignal cnt:integer range 0 to 5;signal data:std_logic_vector(3 downto 0);beginprocess(clk) beginif clkevent and clk=1 thenif cnt=5 then cnt=0;else cntdata=qin0;scandata=qin1;scandata=qin2

10、;scandata=qin3;scandata=qin4;scandata=qin5;scannull; end case;end process;process(data) begin case data is when 0000=segsegsegsegsegsegsegsegsegsegnull; end case;end process;end one; 第二章2.1原理图2.2 实验连线图2.3 实验结果1.实现了基本要求:24小时计时;分钟小时可调;2.并在基本要求的基础上增加了复位,以及精确调整时的秒清零功能;3.分钟调整时,当调整至59时,此时的小时不增加,合理化设计;4.能实

11、现整点报时功能;总结 经过4天的eda课程设计,我的学到了很多,体会很多,受益匪浅。首先,从学习上我深刻学习主动性的重要。在eda实训前几天我将本学期学的所有内容都进行了一次充分的复习,做到心底有数,在实训的编程过程中才能有一个较清晰的逻辑思路,掌握了设计的全局,在编程时才很少漏掉细节,出错率大大降低,提高了编程效率。当然,还是不可避免的出现了错误,如秒钟没有预计的效果就进位,进位错乱,在自已多方面的思考和老师的指导下才找出错误,达到预定效果。其次,通过学期的课程设计,我们真正体会到什么是团队协作,真正的了解到团队合作的有利之处,真正感受到团队成员为了共同的目标联合在一起时的强大的力量,在课程设计期间,我们团队间相互讨论,互相合作,做到了分工明确。当工作出现问题时,各成员仔细商讨,尽快找到问题的症结,共同解决问题。“独学而无友则孤陋而寡闻”只有和同学多交流多学习才能不断的提高自身水平。再次,我们学会了一种快速有效的学习方法。以往的学习都是老师讲学生记,不懂得地方就靠解答大量习题帮助记忆,学习的主要目的是通过最后的考试。课程设计使我们发现考试真的并不是最重要,

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论