# Lab 3 - Exercise 1
## Question
1. Y=1 if A(MSB) B C D(LSB) = 1, 2, 4, 5, 6, 7, 8, 9, 11, 12, 13 else 0. Identify the Boolean logic for Y & Implement the same in WOKWI tool.
## Solution
* Final Expression after solving K-Map is `Y = A'.B + A.C' + C'.D + A.B'.D + A'.C.D'`, which is implemented here using logic gates.
## Truth Table for expression
| A | B | C | D | Y |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 0 | 1 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 1 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 |
| 1 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 0 |
| 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 0 |
| 1 | 1 | 1 | 1 | 0 |