prova 1
NOT
entity nome is
port (
A:
in bit
;
B:
out bit
);
end nome;
architecture lógica of nome is
Begin
B<=>=> not
A;
end lógica;
AND
entity nome_1 is
port (a,b:
In bit
;
X:
Out bit
);
end nome_1;
architecture lógica of nome_1 is
Begin
X<=>=>a and b;
end lógica;
OR
entity nome_1 is
port (a,b:
In bit
;
X:
Out bit
);
end nome_1;
architecture lógica of nome_1 is
Begin
X<> a or b;
end lógica;
NAND
entity nome_1 is
port (a,b:
In bit
;
X:
Out bit
);
end nome_1;
architecture lógica of nome_1 is
Begin
X<> a nand b;
end lógica;
NOR
entity nome_1 is
port (a,b:
In bit
;
X:
Out bit
);
end nome_1;
architecture lógica of nome_1 is
Begin
X<> a nor b;
end lógica;
XOR
entity nome_1 is
port (a,b:
In bit
;
X:
Out bit
);
end nome_1;
architecture lógica of nome_1 is
Begin
X<> a xor b;
end lógica;
entity nome_3 is
port (a,b,c:
In bit
;
f:
Out bit
);
end nome_3;
architecture concorrente of nome_3 is
Begin
f<> not a xnor ( b nand c
) ;
end concorrente;
|
