mux.vhd

来自「PictureBrowser 是基于Altera 的DE2 开发板设计图像浏览器」· VHDL 代码 · 共 29 行

VHD
29
字号
-- Modified 3/17/2007-- Ian Rothlibrary ieee;use ieee.std_logic_1164.all;use IEEE.std_logic_arith.all;entity mux is  port (	input0, input1, input2, input3,	input4, input5, input6, input7 : in signed(31 downto 0);	sel : in std_logic_vector(2 downto 0);	output : out signed(31 downto 0)  );end mux;architecture behavior of mux isbegin  with sel select	output(31 downto 0) <=  input0(31 downto 0) when "000",			  				input1(31 downto 0) when "001",			  				input2(31 downto 0) when "010",			  				input3(31 downto 0) when "011",			  				input4(31 downto 0) when "100",			  				input5(31 downto 0) when "101",			  				input6(31 downto 0) when "110",			  				input7(31 downto 0) when others;end behavior;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?