📄 mux.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity mux is
port (q1,q2 :in std_logic_vector (7 downto 0);
m :in std_logic;
dout : out std_logic_vector (7 downto 0));
end mux;
architecture mux of mux is
begin
process (q1,q2)
begin
case m is
when '1' => dout<=q1;
when '0' => dout<=q2;
end case ;
end process;
end mux;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -