Hi everyone,
My textbook has an example NAND gate:
and it says the following:
Can you tell me what's wrong with my reasoning?
Thanks
My textbook has an example NAND gate:

and it says the following:
The problem is that I can't figure out why P2 is ON. To me both P1 and P2 are connected directly to A so they should both be OFF.When A = 1 and B = 0,
N1 is ON, but N2 is OFF, blocking the path from Y to GND.
P1 is OFF, but P2 is ON, creating a path from Vdd to Y.
Therefore, Y is pulled up to 1.
Can you tell me what's wrong with my reasoning?
Thanks