# Lab 3 - Exercise 2

## Question

1. Y=1 if A(MSB) B C D(LSB) = 0, 1, 4, 5, 10, 11, 14 else 0. Identify the Boolean logic for Y & Implement the same in WOKWI tool.

## Solution

* Final Expression after solving K-Map is `Y = A'.C' + A.B'.C + A.C.D'`, which is implemented here using logic gates.

## Truth Table for expression

| A | B | C | D | Y |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 |
| 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 | 0 |
| 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 |
| 1 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 0 |