?? mux2to1.vhd
字號(hào):
--mux2to1.vhd n-bit 2-to-1 multiplexer
library ieee ;
use ieee.std_logic_1164.all ;
entity mux2to1 is
generic ( n : integer := 14 ) ;
port (
w0 : in std_logic_vector(n-1 downto 0) ;--input first term
w1 : in std_logic_vector(n-1 downto 0) ;--input second term
s : in std_logic ;--select line
f : out std_logic_vector(n-1 downto 0) ) ;--output seleted term
end mux2to1 ;
architecture behavior of mux2to1 is
begin
with s select
f <= w0 when '0',
w1 when others ;
end behavior ;
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -