k4mux.vhd
来自「Fire&password数字系统实验」· VHDL 代码 · 共 26 行
VHD
26 行
library ieee;
use ieee.std_logic_1164.all;
entity k4mux is
port (A,B : in std_logic;
C,D,E,F : out std_logic);
end k4mux;
architecture k4mux_arc of k4mux is
begin
process(A,B)
begin
if(A='0'and B='0')then
C<='0';D<='0';E<='1';F<='0';
elsif(A='1'and B='0')then
C<='1';D<='0';E<='0';F<='0';
elsif(A='0'and B='1')then
C<='1';D<='0';E<='0';F<='0';
else
C<='1';D<='1';E<='1';F<='1';
end if;
end process;
end k4mux_arc;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?