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

📄 muxwrd.vhd

📁 32位微处理器的设计
💻 VHD
字号:
------------------------------------------------------------------------------------ Company: -- Engineer: -- -- Create Date:    22:53:01 12/17/2007 -- Design Name: -- Module Name:    muxwrd - 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 muxwrd is    Port ( muxwrd_c : in  signed (2 downto 0);           muxwrd_aluout : in  signed (31 downto 0);           muxwrd_imm : in  signed (31 downto 0);           muxwrd_pc : in  signed (31 downto 0);           muxwrd_instr : in  signed (31 downto 0);           muxwrd_out : out  signed (31 downto 0));end muxwrd;architecture Behavioral of muxwrd isbegin
	process(muxwrd_c,muxwrd_aluout,muxwrd_imm,muxwrd_pc,muxwrd_instr)
	begin
		case muxwrd_c is
			when "001" =>
				muxwrd_out <= muxwrd_aluout;
			when "010" =>
				muxwrd_out <= muxwrd_pc;
			when "011" =>
				muxwrd_out <= muxwrd_imm;
			when "100" =>
				muxwrd_out <= muxwrd_instr;
			when "101" =>
				muxwrd_out <= (0=>'1',others=>'0');
			when "110" =>
				muxwrd_out <= (others=>'0');
			when others =>
				null;
		end case;
	end process;end Behavioral;

⌨️ 快捷键说明

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