?? switch.vhd
字號(hào):
-- 庫(kù)聲明
library IEEE;
use IEEE.STD_LOGIC_1164.all;
-- 實(shí)體聲明
entity switch is
port (
din1 : in STD_LOGIC;
din2 : in STD_LOGIC;
sel : in STD_LOGIC;
dout : out STD_LOGIC
);
end switch;
--}} End of automatically maintained section
-- 結(jié)構(gòu)體
architecture switch of switch is
begin
-- 使用select語(yǔ)句
with sel select
dout <= din1 when '0',
din2 when others;
end switch;
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -