⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 muxalu1.vhd

📁 32位微处理器的设计
💻 VHD
字号:
------------------------------------------------------------------------------------ Company: -- Engineer: -- -- Create Date:    22:39:29 12/17/2007 -- Design Name: -- Module Name:    muxalu1 - Behavioral -- Project Name: -- Target Devices: -- Tool versions: -- Description: ---- Dependencies: ---- Revision: -- Revision 0.01 - File Created-- Additional Comments: ------------------------------------------------------------------------------------library IEEE;use IEEE.STD_LOGIC_1164.ALL;use IEEE.numeric_std.ALL;use IEEE.std_logic_signed.ALL;---- Uncomment the following library declaration if instantiating---- any Xilinx primitives in this code.--library UNISIM;--use UNISIM.VComponents.all;entity muxalu1 is    Port ( muxalu1_c : in  STD_LOGIC;           muxalu1_rs : in  signed (31 downto 0);           muxalu1_rt : in  signed (31 downto 0);           muxalu1_out : out  signed (31 downto 0));end muxalu1;architecture Behavioral of muxalu1 isbegin	process(muxalu1_rs,muxalu1_rt,muxalu1_c)
	begin
		case muxalu1_c is
			when '0' =>
				muxalu1_out <= muxalu1_rs;
			when '1' =>
				muxalu1_out <= muxalu1_rt;
			when others =>
				null;
		end case;
	end process;end Behavioral;

⌨️ 快捷键说明

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