GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 10(b)

Minimal POS for excess-3 to BCD b₄

Digital Logic · Binary Codes & Error Detection · Full GATE CSE 2001 paper

GATE 2001, Q10(b) Descriptive
Report issue

Binary Codes & Error Detection

Question 10(b), GATE 2001: Input bits e8,e4,e2,e1 encode decimal d as d+3 (valid codes 3…12); output b4 is the weight-4 BCD bit. Diagram has four excess-3 input lines and four BCD outputs b8,b4,b2,b1. GFG explicitly requests b4; GateForum omits the subscript in its prose.

Task: Give a minimal product-of-sums expression for b4.
Question 10(b), GATE 2001: Input bits e8,e4,e2,e1 encode decimal d as d+3 (valid codes 3…12); output b4 is the weight-4 BCD bit. Diagram has four excess-3 input lines and four BCD outputs b8,b4,b2,b1. GFG explicitly requests b4; GateForum omits the subscript in its prose.

Task: Give a minimal product-of-sums expression for b4.
Tap to enlarge
Shared context

Input bits e8,e4,e2,e1 encode decimal d as d+3 (valid codes 3…12); output b4 is the weight-4 BCD bit. Diagram has four excess-3 input lines and four BCD outputs b8,b4,b2,b1.

Answer & solution

Answer: b4=(¬e4+e1)(¬e4+e2)(e4+¬e2+¬e1). (no official key was published)

1. For decimal digits d=0…9, the weight-4 BCD bit is 1 exactly for d=4,5,6,7. Their excess-3 inputs are 7,8,9,10. Hence the on-set is {7,8,9,10}; the valid zero-set is {3,4,5,6,11,12}. Codes {0,1,2,13,14,15} are don’t-cares.

2. For a product-of-sums minimize groups of zeros, permitting invalid codes as don’t-cares. The group e4=1,e1=0 covers zero codes 4,6,12 and don’t-care 14, giving the clause ¬e4+e1.

3. The group e4=1,e2=0 covers 4,5,12 and don’t-care 13, giving ¬e4+e2. The pair 3,11 has e4=0,e2=1,e1=1 while e8 varies, giving e4+¬e2+¬e1.

4. Multiplying these clauses covers every required zero and no required one. The e8 input disappears because the chosen groups span both of its values.

5. To check minimality without claiming these groups are all essential, enumerate the maximal zero/don’t-care cubes (bit order e8,e4,e2,e1; dash means either value): -011, -1-0, -10-, 0--0, 0-0-, 00--, 1-11, 11--. Their covered required zeros are respectively {3,11}, {4,6,12}, {4,5,12}, {4,6}, {4,5}, {3}, {11}, {12}. This includes the legal alternative cube {0,1,2,3}; zero 3 is not restricted to pairing with 11.

6. Every clause must avoid all required one-codes. No single zero cube can cover any pair among required zeros 5,6,11: the smallest cube spanning each such pair contains code 7, a required one. At least three clauses are therefore necessary. The maximal cubes listed above have at most four cells, so every nonredundant clause has at least two literals. A cube covering zero 11 has at most two cells (the only choices are -011 and 1-11), so its clause needs at least three literals. Any POS consequently needs at least 3+2+2=7 literals; four or more clauses need at least eight. The displayed three-clause, seven-literal POS attains both lower bounds. Other minimum covers exist; its three chosen prime groups are not all essential.

Original paper, page 8