led.vhd
来自「以两种结构编写的VHDL驱动LED 已通过调试」· VHDL 代码 · 共 21 行
VHD
21 行
library ieee;
use ieee.std_logic_1164.all;
entity led is
port(clkq:in std_logic;
rst:in std_logic;
q1:out std_logic_vector(0 to 7));
end led;
architecture structure of led is
component ledx is
port(clk:out std_logic;main_clk:in std_logic);
end component ledx;
component ledy is
port(q:out std_logic_vector(0 to 7);rst:in std_logic;clkin:in std_logic);
end component ledy;
signal sig:std_logic;
begin
u1:component ledx
port map(clk=>sig,main_clk=>clkq);
u2:component ledy
port map(clkin=>sig,rst=>rst,q=>q1);
end structure;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?