So according to question our objective is to make a function X that output high when an unused codeword occurs in input and for all correct BCD inputs it outputs low.
So we will make truth table Now using 4 inputs B8, B4, B2, B1, and output X. We will mark all non BCD codeword in output as 1 and other inputs as 0. All codeword from 0-9 is marked as 0 in output and 10-15 as 1.
Truth Table:
| B8 | B4 | B2 | B1 | X |
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 0 | 1 | 0 |
| 0 | 0 | 1 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 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 | 1 |
| 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
Let us make K-map for this truth table
We have 6 minterms in X given below

So finally we have the expression for X

Logic Circuit for expression is given below

13.4 LIRIY WILL Write a DUI expeSSIUI IUI ed UL ce su u 13.4 We need...
find a logic circuit that gives an output logic signal, X, which is high when an error in the form of an unused cornoccurs in a given BCD codeward. the inours to the logic cirxuit are bits B8, B4,B2, B1 of the BCD code word. start by constructing a truth table for X. then use a K-map.