- library ieee;
- use ieee.std_logic_1164.all;
- ENTITY MUX21 IS
- PORT(A,B,S:IN std_logic; Y:OUT std_logic);
- END MUX21;
- ARCHITECTURE one OF MUX21 IS
- signal a1,b1,c1:std_logic;
- begin
- a1<=A and S;
- b1<=not b;
- c1<=(not S) and (not b1);
- Y<=a1 or c1;
- END architecture one;
复制代码
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>