mux2.vhd

来自「《CPLDFPGA嵌入式应用开发技术白金手册》源代码」· VHDL 代码 · 共 15 行

VHD
15
字号
--mux2
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_unsigned.all;
use IEEE.std_logic_arith.all;
entity mux2 is
 port(a,b,en:in std_logic;
        y:out std_logic);
 end mux2;
architecture behav of mux2 is
begin
y<=b when en='1' else a;
end behav;

⌨️ 快捷键说明

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