Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2022-02-10 10:44:03

Hannibal lecter
Member
Registered: 2016-02-11
Posts: 392

logic gate

Hi,
which logic gate gives :


x y result
0 0   1
0 1   0
1 0   1
1 1   0


this is the question :



if (A = '1') and (B = '1') then tempY <= '0';
elsif (A = '0') and (B = '0') then tempY <= '0';
else tempY < = '1';
end if;
if (A = '0' and B = '0') then tempZ <= '1';
elsif(A = '0' and B = '1') then tempZ <= '0';
elsif(A = '1' and B = '1') then tempZ <= '0';
elsif(A = '1' and B = '0') then tempZ <= '1';
end if;
end process;
Y <= tempY;
Z <= tempZ;

Y is an xor gate
but what is z

Last edited by Hannibal lecter (2022-02-10 10:49:38)


Wisdom is a tree which grows in the heart and fruits on the tongue

Offline

#2 2022-02-10 20:01:09

Bob
Administrator
Registered: 2010-06-20
Posts: 10,052

Re: logic gate

This is NOT y.  The x input has no effect on the output.

B


Children are not defined by school ...........The Fonz
You cannot teach a man anything;  you can only help him find it within himself..........Galileo Galilei
Sometimes I deliberately make mistakes, just to test you!  …………….Bob smile

Offline

#3 2022-02-12 04:37:31

pi_cubed
Member
From: A rhombicosidodecahedron
Registered: 2020-06-22
Posts: 115

Re: logic gate

Last edited by pi_cubed (2022-02-12 04:37:43)


pi³

Offline

#4 2022-10-12 14:30:44

imcute
Member
Registered: 2022-09-28
Posts: 176

Re: logic gate

what ever it is,its not b

Offline

Board footer

Powered by FluxBB