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

📄 mux2.vhd

📁 Allegro原理图和PCB
💻 VHD
字号:
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_arith.all;

entity mux2 is

  port(A : in std_logic_vector(7 downto 0);
       B : in std_logic_vector(7 downto 0);
       S : in std_logic;
       Y : out std_logic_vector(7 downto 0));

end mux2;

architecture behavioral of mux2 is
begin

  process (S, a, b)
  begin

    case S is
      when '0' => Y <= A;
      when '1' => Y <= B;
      when others => Y <= a;
    end case;

  end process;

end behavioral;

⌨️ 快捷键说明

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