EDA技术与实践综合设计报告.doc
《EDA技术与实践综合设计报告.doc》由会员分享,可在线阅读,更多相关《EDA技术与实践综合设计报告.doc(28页珍藏版)》请在三一办公上搜索。
1、北 华 航 天 工 业 学 院综合实践总结报告 综合实践名称: EDA技术与实践 年历日历设计 综合实践地点、时间 教十EDA实验室 2014-2015-2学期第1317周 专业班级: 13251 姓 名: 李露 陈泽东 李泽宙 学号: 201310194 201310167 201310193 指导教师姓名: 薛 瑞 完 成 时 间: 2015 年 6 月 20 日一、综合实践目的1.通过编写VHDL程序,结合硬件电路设计,实现年月日的计时 功能。同时将计时结果通过8个七段数码管显示,并可通过两个按键,对计数时钟的有关参数进行调整。2.学会使用QUARTUS软件下载调试程序,用调试程序将学习
2、板调试成功。锻炼学生的动手能力以及提高学生的综合专业素质。 二、综合实践理论基础和核心内容根据系统的设计要求,计时电路可分为计日电路,计月电路,计年电路等三个子模块,这三个子模块必须都具有预置,计数和进位功能,设计思想如下:(1) 计日电路:将计时电路产生的进位脉冲信号作为计日电路的计数时钟信号,通过系统辨认,确定本月总天数X(包括28,29,30,31四种情况),待计数至X+1瞬间,进位,计月电路加1,而计日电路返回1重新开始计数。(2) 计月电路:将计日电路产生的进位脉冲信号作为计月电路的计时时钟信号,待计时至12瞬间,进位,计年电路加1,而计月电路返回1重新开始计数。(3) 计年电路:将
3、计月电路产生的进位脉冲信号作为时钟计年电路的计数时钟信号,待计数至100瞬间,计年电路返回0重新开始计数。(4) 对于系统中的时间调整电路,拟通过模式和调整两个外部按件完成。模式键负责切换正常时间计数模式和时间调整模式,调整键负责在时间调整模式之下,对当前模式的计数结果进行调整。三、综合实践具体内容和记录(图、表或程序等)1Tian程序(李露)library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity tian isport(clk,a,b:in std_logic; t1:out std_lo
4、gic_vector(3 downto 0); t2:out std_logic_vector(7 downto 4); cout:out std_logic); end tian;architecture one of tian issignal q1:std_logic_vector(3 downto 0);signal q2:std_logic_vector(7 downto 4);signal ab :std_logic_vector(1 downto 0);beginprocess(clk,a,b)beginif clkevent and clk=1 thenq1 = q1+1;if
5、 q1 =9 then q1 =0000;q2 = q2+1;end if;ab -当ab=00时,yue输出31天if q2=3 and q1=1 then q2=0000;q1=0001;cout=1;else cout -当ab=01时,yue输出30天if q2=3 and q1=0 then q2=0000;q1=0001;cout=1;else cout -当ab=10时,yue输出28天if q2=2 and q1=8 then q2=0000;q1=0001;cout=1;else cout -当ab=11时,yue输出29天if q2=2 and q1=9 then q2=0
6、000;q1=0001;cout=1;else cout null;end case;end if;end process;t1=q1;t2=q2;end one;仿真 31天 30天28天29天2Yue程序(陈泽东)library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity yue isport(clk,run:in std_logic;y1:out std_logic_vector(3 downto 0);y2:out std_logic_vector(7 downto 4);a,b,cou
7、t:out std_logic);end yue;architecture one of yue issignal q1,q2:std_logic_vector(3 downto 0);signal q2q1:std_logic_vector(7 downto 0);beginprocess(clk,run)beginif clkevent and clk=1 then q1=q1+1;if q1=9 then q10);q2=q2+1;end if;if q2=1 and q1=2 thenq2=0000;q1=0001;cout=1;else cout=0;end if;end if;q2
8、q1a=0;b if run=1 then a=1;b=1;else a=1;ba=0;ba=0;ba=0;ba=0;ba=0;ba=0;ba=0;ba=0;ba=0;ba=0;bnull;end case;y1=q1;y2=q2;end process;end one;仿真3Nian程序(李泽宙)library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity nian isport (clk:in std_logic; n1,n2:out std_logic_vector(3 downto 0);
9、 run,cout:out std_logic); end nian;architecture one of nian issignal q1,q2,q3:std_logic_vector(3 downto 0);beginprocess(clk)beginif clkevent and clk=1then -如果clk=1时,q1加1q1=q1+1;if q1=9 then q10); -如果q1=9,q1清零,q2加1q2=q2+1;end if;if q2=9 and q1=9 then q1=0000; -如果q1=9,q2=9,q1、q2清零,进位。否则不进位q2=0000;cout
10、=1;else cout=0;end if;end if;end process;process(clk)beginif clkevent and clk=1then -如果clk=1,q3加1q3=q3+1;if q3=3 then q30); -如果q3=3则q3清零 run=1否则run=0run=1;else run=0;end if;end if;n1 = q1;n2 = q2;end process;end one;仿真4Nian2程序(李泽宙)LIBRARY IEEE; USE IEEE.STD_LOGIC_1164.ALL; USE IEEE.STD_LOGIC_UNSIGNE
11、D.ALL; ENTITY nian2 IS PORT(clk:IN STD_LOGIC; n3,n4:OUT STD_LOGIC_VECTOR(3 DOWNTO 0); END ENTITY nian2; ARCHITECTURE one OF nian2 IS SIGNAL q1:STD_LOGIC_VECTOR(3 DOWNTO 0):=0000; SIGNAL q2:STD_LOGIC_VECTOR(3 DOWNTO 0):=0010; SIGNAL q3:STD_LOGIC_VECTOR(3 DOWNTO 0); BEGIN PROCESS(clk) BEGIN IF clkEVEN
12、T AND clk=1 THEN -如果clk=1时,q1加1 q1=q1+1; IF q1=9 THEN -如果q1=9,q1q2加1 q1=0000; q2=q2+1; END IF; IF q2=9 AND q1=9 THEN -如果q1=9,q2=9,q1、q2清零 q2=0000; q1=0000; END IF; END IF; n3=q1;n4=q2; END PROCESS; END one;仿真5Seltime程序扫描(李露)library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;use
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- EDA 技术 实践 综合 设计 报告

链接地址:https://www.31ppt.com/p-4144004.html