Similar questions 7 more →
Combinational Circuits

Answer & solution
Official answer: 6
Givens and goal
A,B feed an active-high 2-to-4 decoder with outputs D0…D3. A 4-to-1 multiplexer, selected by S1S0, has input 0=D0, input 1=constant 0, input 2=constant 1, input 3=D3. Of all 16 assignments to A,B,S1,S0, how many give Y=1?
Approach
Partition by the two selector bits and count high outputs in each group.
Step-by-step solution
1. For every decoder input AB exactly one decoder output is high. In particular D0 is high for one of the four AB combinations, and D3 is high for one of the four. They correspond to 00 and 11 in the conventional ordering.
2. When S1S0=00, the multiplexer outputs D0, so exactly one AB assignment gives Y=1. When S1S0=01, it outputs the tied-low input and gives no high outputs.
3. When S1S0=10, it outputs the tied-high input, so all four AB assignments give Y=1. When S1S0=11, it outputs D3, contributing one more assignment.
4. The selector cases are disjoint and cover all 16 inputs. Add their favorable counts: 1+0+4+1=6. There is no need to multiply decoder and multiplexer probabilities or assume random inputs; this is a truth-table count.
5. The unused D1,D2 lines do not replace the constants tied directly to multiplexer inputs 1 and 2.