In the following circuit, the correct relation between output and inputs and will be:
- Option A:
- Option B:
- Option C:
- Option D:
Solution
Core idea. Diodes pointing to the inputs with a pull-up resistor make an AND gate; a transistor switch after it gives NAND.
Concept refresher. In a diode gate with the diodes pointing towards the inputs and a resistor from the common point to a positive supply, any low input pulls the common point low; it is high only when all the inputs are high, which is the AND operation. A transistor switch inverts: a high base turns it on and the collector voltage falls nearly to zero; a low base cuts it off and the collector rises to the supply voltage. The inverse of an AND is a NAND, and by De Morgan's theorem
Picture the situation. The battery tries to hold X high through the resistor R. Each diode points from X towards its input, so an input at the low level gives the current an easy way out and drags X down. X stays high only if both inputs are high. The transistor then turns X upside down: when X is high it conducts and Y drops to nearly zero; when X is low it is off and Y sits at the collector supply.
Approach. Find the level at X for the input pairs, then invert it through the transistor.
Step 1: The diode gate
If or is low, the diode on that input is forward biased (the battery makes X positive) and holds X close to the low level. Only when both inputs are high are both diodes off, and X is pulled high through . So the level at X is the AND of the inputs, .
Step 2: The transistor
When X is high, base current flows, the transistor conducts fully, and the collector, where Y is taken, falls to nearly . When X is low, the transistor is cut off, no current flows through the collector resistor, and Y is at . The transistor inverts X.
Step 3: The relation
Inverting the AND of the inputs gives
which is the NAND operation.
Answer. (C)
Sanity check. Check A = 1, B = 0: the diode on B conducts, X is low, the transistor is off and Y is high, as a NAND gate gives.
Why the other options are wrong
- (A) is the level at X, before the transistor inverts it.
- (B) would need the diodes reversed and no inversion; here one high input alone cannot raise X.
- (D) is 0 for A = 1, B = 0; in that case X is low, the transistor is off and Y is 1.
Key takeaway
The trap. The direction of the diodes decides between AND and OR; check it before anything else.
How toppers think. They test the input pairs 1, 0 and 1, 1: a NAND gate gives 1 and then 0, which no other option does.
Remember. : low only when both inputs are high.
More on Semiconductors
- The output Y for the given inputs A and B to the circuit is:
- The maximum rated power of the LED is 2 mW and it is used in the circuit with input voltage of 5 V as shown…
- Refer to the logic circuit given below. For two inputs (A = 1, B = 1) and (A = 0, B = 1), output (Y) will be…
- All 145 on Semiconductors ›