📄 main_bcd.vhd
字号:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity main_bcd is
Port (cs_sw8 :in std_logic;
p_sw1,p_sw2,p_sw3,p_sw4 :in std_logic;
LED1_out :out std_logic_vector(6 downto 0);
LED2_out :out std_logic_vector(6 downto 0);
LED3_out :out std_logic_vector(6 downto 0)
);
end main_bcd;
architecture Behavioral of main_bcd is
component d_bcd
port(cs_sw8 :in std_logic;
p_sw1,p_sw2,p_sw3,p_sw4 :in std_logic;
LED1_out :out std_logic_vector(6 downto 0);
LED2_out :out std_logic_vector(6 downto 0);
LED3_out :out std_logic_vector(6 downto 0)
);
end component;
begin
l0:d_bcd
port map
( cs_sw8 =>cs_sw8,
p_sw1 =>p_sw1,
p_sw2 =>p_sw2,
p_sw3 =>p_sw3,
p_sw4 =>p_sw4,
LED1_out =>LED1_out,
LED2_out =>LED2_out,
LED3_out =>LED2_out
);
end Behavioral;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -