clock_pkg.vhd
来自「基于VHDL的电子钟 实现一个简单的电子钟」· VHDL 代码 · 共 41 行
VHD
41 行
library ieee;
use ieee.std_logic_1164.all;component cnt60 is
port(ch,cl : buffer std_logic_vector (3 downto 0);
clk : in std_logic ;
carry: buffer std_logic
);
end component
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
package clock_pkg is
component hour is
port( hh,hl : buffer std_logic_vector (3 downto 0);
clk : in std_logic;
carry: buffer std_logic
);
end component ;
;
component day is
port(dh,dl: buffer std_logic_vector (3 downto 0);
clk : in std_logic;
carry2: in std_logic_vector (1 downto 0);
carry1: buffer std_logic
);
end component ;
component month is
port(mh,ml : buffer std_logic_vector (3 downto 0);
clk : in std_logic;
carry1: buffer std_logic;
carry2: buffer std_logic_vector (1 downto 0)
);
end component ;
component year is
port(yh,yl : buffer std_logic_vector (3 downto 0);
clk : in std_logic
);
end component ;
end package ;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?