实验五:数字钟的设计 一.实验目的 1.熟练使用VHDL语言进行较复杂电子系统的设计 2.学会用自顶向下的设计方法进行较复杂数字电子系统的设计 3.掌握数字电子系统的综合设计方法和一般设计过程 二.实验仪器 1.计算机及软件 2.TH-DZS-1型电子工程系统开发实验箱 三.实验内容及要求 要求 1、具有时、分、秒计数显示功能,以二十四小时循环计时。 2、具有清零,调节小时,分钟的功能。
***********百分秒*************************
entity count100 is
Port ( shift_temp,clk: in STD_LOGIC;
q:out std_logic_vector(7 downto 0);
co:out std_logic);
end count100;
architecture Behavioral of count100 is
signal temp:std_logic_vector(7 downto 0):=(others=>'0');
begin
process(clk)
begin
if clk'event and clk='1' then
if temp(3 downto 0)=9 then
if temp(7 downto 4)=9 then
temp<=(others=>'0');co<='1';
else temp(7 downto 4)<=temp(7 downto
0)<=(others=>'0');co<='0';end if;
else temp(3 downto 0)<=temp(3 downto 0)+1;co<='0';end if;
end if;
end process;
q<=temp;
end Behavioral;
****************************秒,分*******************
entity count60 is
Port ( shift_temp,key_m,clk: in STD_LOGIC;
q:out std_logic_vector(7 downto 0);
co:out std_logic);
end entity;
architecture Behavioral of count60 is
signal temp:std_logic_vector(7 downto 0):=(others=>'0');
signal temp_clk,temp_co:std_logic;
begin
process(shift_temp)
begin
if shift_temp='1' then temp_clk<=key_m;co<='0';
else temp_clk<=clk;co<=temp_co;
end if;
end process;
process(temp_clk)
begin
if temp_clk'event and temp_clk='1' then
if temp(3 downto 0)=9 then 4)+1;temp(3 downto
电子时钟VHDL程序,实现了显示时,分,秒。电子时钟VHDL程序,实现了显示时,分,秒。隐藏>> 电子时钟 VHDL 程序与仿真 1. 10 进制计数器设计与仿真 (1)10 进制...
电子钟小模块电子钟小模块隐藏>> VHDL 电子时钟程序最近收到网上朋友们来信咨询如何设计电子时钟, 也有很多热心朋友把他设计的 时钟或时钟程序发给我。 因时间和...
VHDL电子时钟程序 6页 1下载券 电子时钟VHDL编程 9页 2下载券 VHDL 电子...数字时钟设计 数字时钟设计 专 业: 自动化 5080522 王园伟 班级学号: 姓名: ...
VHDL电子时钟程序,进攻参考VHDL电子时钟程序,进攻参考隐藏>> LIBRARY IEEE; USE IEEE.STD_LOGIC_1164.ALL; USE IEEE.STD_LOGIC_UNSIGNED.ALL; ENTITY clksystem ...
VHDL电子时钟的设计_计算机硬件及网络_IT/计算机_专业资料。VHDL电子时钟的设计现代电子系统设计 中北学院 现代电子系统设计_数字电子钟实验报告 姓班学专 名 : ...
电子设计自动化实训说明书 题系专班 目:电子日历 VHDL 程序设计报告 部:信息与...1 电子设计自动化实训说明书 2 实训意义该数字时钟实现了调时、年、月、日、...
时钟VHDL程序tee 5页 1下载券 VHDL电子时钟程序 6页 1下载券 喜欢此文档的...时钟个位输出 bcd_h_s : out std_logic_vector(3 downto 0); --时钟十位...
关于VHDL电子时钟_电子/电路_工程科技_专业资料。程序实现的是小时分钟秒钟 还可以调整时间library ieee; use ieee.std_logic_1164.all; entity zz is port(clk...
EDA技术就是依赖功能强大的计算机,在EDA工具软件平台上,对以硬件描述语言VHDL为系统逻辑描述手段完成的设计文件,自动地完成逻辑优化和仿真测试,直至实现既定的电子线路...
2、课程设计内容及要求 、 2.1 设计内容(1)VHDL 程序设计、输入——在 ise ...整个电子钟的顶层设计实体为 clock (时钟)模块,其下又分为:second_wave(秒...
热门文档