?? 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 + -