GATE / CS ARCHIVE

GATE CSE 1997 / QUESTION 71(b)

Output stuck-at-zero error count

Digital Logic · Boolean Algebra & Logic Gates · Full GATE CSE 1997 paper

GATE 1997, Q71(b) 2 marks · Descriptive
Report issue

Boolean Algebra & Logic Gates

Question 71(b), GATE 1997: f=(¬w+y)(¬x+y)(w+¬x+z)(¬w+z)(¬x+z), where + is Boolean OR, juxtaposition is AND, and ¬ is complement. If the output line is stuck at 0, for how many input combinations is the output incorrect?
Question 71(b), GATE 1997: f=(¬w+y)(¬x+y)(w+¬x+z)(¬w+z)(¬x+z), where + is Boolean OR, juxtaposition is AND, and ¬ is complement. If the output line is stuck at 0, for how many input combinations is the output incorrect?
Tap to enlarge
Answer & solution

Answer: 7 of the 16 input combinations. (no official key was published)

A stuck-at-zero output differs from the correct circuit exactly on inputs for which f should be 1. Inputs where f=0 still produce the correct visible output even though the circuit is faulty. First simplify the function to f=¬w¬x+yz using Boolean algebra.

Count the satisfying assignments by inclusion-exclusion. The term ¬w¬x fixes w=x=0 and leaves y,z free, giving four inputs. The term yz fixes y=z=1 and leaves w,x free, also giving four inputs. Their intersection fixes w=x=0,y=z=1, so that single input was counted twice. The number of distinct true inputs is 4+4−1=7.

In wxyz binary order, the erroneous inputs are 0000,0001,0010,0011,0111,1011,1111, corresponding to minterms 0,1,2,3,7,11,15. On each, the healthy output is 1 and the faulty output is 0. The other nine combinations have healthy output 0 and therefore do not expose this fault.

This count concerns one stuck-at fault on the final output line. It is not the count of faulty internal signals, nor a probability unless an input distribution is supplied. If all 16 inputs are equally likely, the observable error probability would be 7/16, but the requested answer is the integer 7.

Original paper, page 10