diff --git a/education/computer engineering/ECE2700/Binary Logic.md b/education/computer engineering/ECE2700/Binary Logic.md index 0856cdb..13a6297 100644 --- a/education/computer engineering/ECE2700/Binary Logic.md +++ b/education/computer engineering/ECE2700/Binary Logic.md @@ -39,3 +39,17 @@ A NAND gate outputs a 1 *unless* both inputs are enabled. A NAND operation is mathematically expressed using a bar over an AND operation: $$ y = \overline{x_1 \cdot x_2}$$ + +# OR Gate +An OR gate outputs a 1 if either or both inputs are enabled. +## Truth Table +| $x_1$ | $x_2$ | $y$ | +| ----- | ----- | --- | +| 0 | 0 | 0 | +| 0 | 1 | 1 | +| 1 | 0 | 1 | +| 1 | 1 | 1 | +## Mathematical Expression +A mathematical OR is notated with a $+$ symbol. + +$$ y = x_1 + x_2 $$