For the given logic gate circuit, which of the following is the correct truth table?
- Option A: : , , ,
- Option B: : , , ,
- Option C: : , , ,
- Option D: : , , ,
Solution
Core idea. Write the output gate by gate, then simplify with Boolean rules before building the table.
Concept refresher. An OR gate gives ; a NAND gate gives the inverse of AND, . Absorption in Boolean algebra says
because the product is exactly when .
Picture the situation. Working each row through the gates gives the table below.
Approach. Write the OR output, feed it with into the NAND gate, simplify, and compare with the four tables.
Step 1: Gate outputs
The OR gate receives (through the branch) and , and the NAND gate receives and the OR output, so
Step 2: Simplify
The product inside the bar can be simplified before any table is drawn. By absorption, , so
Step 3: Fill the table
is whenever and whenever , whatever is: the rows are , , and . This is table (A).
Answer. (A)
Sanity check. Check one row directly: for , , the OR gate gives , the NAND gate sees and , and its output is , as in table (A).
Smart method. A NAND gate outputs whenever any of its inputs is . With fed straight into it, for both values of ; so the table must have in both rows with . Tables (B), (C) and (D) each have a in one of those rows, so only table (A) is left.
Why the other options are wrong
- (B) This table has when and are equal, an XNOR gate; it gives for , where makes the NAND output .
- (C) This table has when and differ, an XOR gate; it gives for , where the NAND gate, with at one input, must output .
- (D) This is , a NOR of the inputs, which ignores the line taking straight to the NAND gate; for the true output is .
Key takeaway
The trap. Missing the line that takes straight to the last gate.
How toppers think. They look for an input that decides a gate alone, such as a into a NAND gate.
Remember. , and a NAND gate outputs if any input is .
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 ›