4 Star 1 Fork 0

1026508651/shudian_elec-clock

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sec_count.vhd.bak 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
1026508651 提交于 2022-03-19 01:28 . 一级模块仅剩音乐控制模块
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;
entity sec_count is
port(
CLK_1:in std_logic;
CLR: in std_logic;
Blick_Control_Sec: in std_logic;
LED_1: out std_logic_vector(3 downto 0);
LED_2: out std_logic_vector(3 downto 0);
Cout1: out std_logic
);
end sec_count;
architecture main of sec_count is
component count_10 is
port(
CLK:in std_logic;
CLR: in std_logic;
Lout: out std_logic_vector(3 downto 0);
Cout1: out std_logic
);
end component count_10;
component count_6 is
port(
CLK:in std_logic;
CLR: in std_logic;
Lout: out std_logic_vector(3 downto 0);
Cout1: out std_logic
);
end component count_6;
signal C1: std_logic;
signal L1: std_logic_vector(3 downto 0);
signal L2: std_logic_vector(3 downto 0);
begin
T1:count_10 port map(CLK=>CLK_1,CLR=>CLR,Lout=>L1,Cout1=>C1);
T2:count_6 port map(CLK=>C1,CLR=>CLR,Lout=>L2,Cout1=>Cout1);
with Blick_Control_Sec select
LED_1<="ZZZZ" when '0',
L1 when others;
with Blick_Control_Sec select
LED_2<="ZZZZ" when '0',
L2 when others;
end main;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
VHDL
1
https://gitee.com/huazhong_xuan/shudian_elec-clock.git
git@gitee.com:huazhong_xuan/shudian_elec-clock.git
huazhong_xuan
shudian_elec-clock
shudian_elec-clock
master

搜索帮助