📄 switch.vhd
字号:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity switch is
Port ( vgadd : in std_logic_vector(14 downto 0);
convadd : in std_logic_vector(14 downto 0);
address2 : out std_logic_vector(14 downto 0);
Q_9 : in std_logic);
end switch;
architecture Behavioral of switch is
begin
process(Q_9)
begin
if(Q_9='1')then
address2 <= convadd;
else
address2 <= vgadd;
end if;
end process;
end Behavioral;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -