📄 mux4_1.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
entity mux4_1 is
port( sine,sanjiao,juchi,juxing:in std_logic_vector(9 downto 0);
a,b:in std_logic;
cout:out std_logic_vector(9 downto 0)
);
end mux4_1;
architecture behavior of mux4_1 is
signal addr:std_logic_vector(1 downto 0);
begin
process(a,b)
begin
addr(0)<=a;
addr(1)<=b;
case addr is
when "00" => cout<=sine;
when "01" => cout<=sanjiao;
when "10" => cout<=juchi;
when others => cout<=juxing;
end case;
end process;
end behavior;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -