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

📄 mux4_1.vhd

📁 几个VHDL的源代码和和一个本人编写的5级流水线RISC CPU的代码
💻 VHD
字号:
--core_design
--mux4_1
--all right reserved

library ieee;
use ieee.std_logic_1164.all;

entity mux4_1 is
  port (en:in std_logic_vector(1 downto 0);
  	in1:in std_logic_vector(31 downto 0);
  	in2:in std_logic_vector(31 downto 0);
  	in3:in std_logic_vector(31 downto 0);
  	in4:in std_logic_vector(31 downto 0);
  	out1:out std_logic_vector(31 downto 0)
       );
end mux4_1;

architecture b of mux4_1 is
begin
process(en,in1,in2,in3,in4)
begin
case en is
when "00" =>out1<=in1;
when "01" =>out1<=in2;
when "10" =>out1<=in3;
when "11" =>out1<=in4;
when others =>null;
end case;
end process;
end b; 
 

⌨️ 快捷键说明

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