Loading simulator…
A home security alarm system asserts its output if either sensor detects a trigger. Since standard OR gates are not available, the circuit is implemented using the Boolean identity:
Output = (Door Sensor AND Motion Sensor) XOR (Door Sensor XOR Motion Sensor)
To understand how this line is evaluated, we examine the truth table for all input combinations (A = Door Sensor, B = Motion Sensor):
| A | B | (A AND B) | (A XOR B) | Final Result: (AND) XOR (XOR) |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 XOR 0 = 0 |
| 0 | 1 | 0 | 1 | 0 XOR 1 = 1 |
| 1 | 0 | 0 | 1 | 0 XOR 1 = 1 |
| 1 | 1 | 1 | 0 | 1 XOR 0 = 1 |
Calculation breakdown:
This demonstrates that the final output is high whenever at least one sensor is triggered, effectively synthesizing an OR operation without using a standard OR gate.