If and are the input voltages (either or ) and is the output voltage then the two gates represented in the following circuits and are :
- Option A: OR and NOT Gate
- Option B: AND and NOT Gate
- Option C: AND and OR Gate
- Option D: NAND and NOR Gate
Solution
Core idea. Diodes pointing to the output with a resistor to earth make an OR gate; a transistor switch makes a NOT gate.
Concept refresher. In a diode gate with the diodes pointing towards the output and a resistor from the output to earth, the output follows the higher input: it is high if any input is high, . A transistor switch inverts: a high base voltage drives it into saturation and the collector voltage falls nearly to zero, while a low base voltage cuts it off and the collector rises to the supply voltage, .
Picture the situation. In circuit A the two diodes are like two one-way doors into the same room. If either input is high, its door opens and the output is pulled up to that level; only when both inputs are low does the resistor hold the output at earth. In circuit B a high input switches the transistor on, which connects the output almost directly to earth; a low input switches it off, and the output rises to the supply.
Approach. Apply the two input levels to each circuit in turn and read off its truth table.
Step 1: Circuit A, an input high
If or is , the diode on that input is forward biased and conducts, and the output is pulled up to the high level ( less the small drop across the diode). The other diode, if its input is , is reverse biased and plays no part.
Step 2: Circuit A, both inputs low
With both inputs at neither diode conducts, no current flows through R, and the output is at earth potential. The output is high when either input is high: an OR gate.
Step 3: Circuit B, input high
With the base current is about , and would give a collector current of . The collector resistor allows at most , so the transistor is saturated and the output is close to .
Step 4: Circuit B, input low
With there is no base current, the transistor is cut off, and with no drop across the output is . The output is the opposite of the input: a NOT gate.
Answer. (A) OR and NOT Gate
Sanity check. Circuit B has a single input, so of the gates named it can only be a NOT gate; that leaves two options, and the direction of the diodes decides between OR and AND.
Why the other options are wrong
- (B) For an AND gate the diodes would point away from the output, with the resistor going to the supply; here a single high input is enough to raise the output.
- (C) Circuit B has one input and inverts it, so it cannot be an OR gate, which needs two inputs.
- (D) Circuit A has no inverting element, so its output cannot be the inverse of an AND; it is high exactly when an input is high.
Key takeaway
The trap. The direction of the diodes and where the resistor goes decide between OR and AND.
How toppers think. They count the inputs first: a one-input circuit can only be a NOT gate.
Remember. Diodes towards the output: OR. Diodes away from it: AND.
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 ›