What kind of gate is this

Thread Starter

gammaman

Joined Feb 14, 2009
29
Rich (BB code):
Library ieee;
Use ieee.std_logic_1164.all;
Entity ThisTable is
Port(
    D: in std_logic_vector(1 downto 0);
    Y: out std_logic_vector(1 downto 0));
    
End ThisTable;
Architecture Joe_Structure of ThisTable is
Begin
with D select
    Y<= "01" when "00",
        "00" when "01",
        "11" when "10",
        "11" when "11";
End Joe_Structure;
 

mik3

Joined Feb 4, 2008
4,843
The function can't be described by a particular gate. The function of the code is a combination of logic gates if you build it with discrete gate ICs.
 

mik3

Joined Feb 4, 2008
4,843
Y<= "01" when "00",
"00" when "01",
"11" when "10",
"11" when "11";


You have it in the code, the bits after when are the inputs.
 

kubeek

Joined Sep 20, 2005
5,793
Actualy it should be two functions, its easier to understand:
Function a
"0" when "00",
"0" when "01",
"1" when "10",
"1" when "11";


Function b
"1" when "00",
"0" when "01",
"1" when "10",
"1" when "11";
 
Top