Design a logic circuit to convert a single digit BCD number to the number modulo six as follows (Do not detect illegal input):
$${\begin{array}{|cccc|c|ccc|}\hline \bf{I_4}& \bf{I_3}& \bf{I_2}&\bf{ I_1}& &\bf{R_3}& \bf{R_2} & \bf{R_1}\\\hline 0&0&0&0&\bf{0} &0&0&0\\\hline 0&0&0&1&\bf{1}& 0&0&1 \\ \hline 0&0&1&0&\bf{2}& 0&1&0 \\ \hline 0&0&1&1&\bf{3}& 0&1&1 \\ \hline 0&1&0&0&\bf{4}& 1&0&0 \\ \hline 0&1&0&1&\bf{5} &1&0&1 \\ \hline 0&1&1&0&\bf{6}& 0&0&0 \\ \hline0&1&1&1&\bf{7}& 0&0&1\\ \hline 1&0&0&0&\bf{8}& 0&1&0 \\ \hline 1&0&0&1&\bf{9}& 0&1&1 \\ \hline \end{array}}$$
This requires $2$ NOT gates, $2$ two-input AND gates and $1$ two-input OR gate.
After using Don't care (10,11,12,13,14,15) and after K-Map simplification you will get
R1=I1
R2=I2.I3' + I4
R3= I3.I2'
R4 = 0
Here, 2 input AND Gate used=2
2 input OR Gate used=1
NOT Gate used=2
Don't cares are not shown in the table but considered while constructing K-map for $R_1,R_2,R_3.$
64.3k questions
77.9k answers
244k comments
80.0k users