sel2.vhd
来自「基于VHDL波形信号发生器」· VHDL 代码 · 共 30 行
VHD
30 行
--SEL2 模块
library ieee;
use ieee.std_logic_1164.all;
entity sel2 is
port(
kin1,kin2: in std_logic;
sel:in std_logic;
fout1,fout2,aout1,aout2: out std_logic
);
end sel2;
architecture beh of sel2 is
begin
process(sel)
begin
case sel is
when '0' =>fout1<=kin1;
fout2<=kin2;
when '1' =>aout1<=kin1;
aout2<=kin2;
when others =>null;
end case;
end process;
end beh;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?