OR
Inputs
| Pin | Type | Description |
|---|---|---|
| A | bit | First input signal |
| B | bit | Second input signal |
Outputs
| Pin | Type | Description |
|---|---|---|
| Q | bit | 1 if A=1 or B=1 |
How It Works
OR (disjunction) outputs 1 if at least one input is 1. It performs logical addition.
Truth Table
| A | B | Q |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Usage
Introduced in Level 4. Used for combining multiple conditions into a single signal.