0
\$\begingroup\$

Do I have the right circuit drawn? Please help enter image description here

\$\endgroup\$
1
  • \$\begingroup\$ You might consider a way to simplify the middle one, for example. I can easily see one less gate. \$\endgroup\$
    – jonk
    Commented May 7, 2017 at 7:26

1 Answer 1

2
\$\begingroup\$

It depends on what you mean by right. Sure, they all do what the expressions say, but are they optimized?

If you want to minimize the number of gates (which is related to the physical area of your IC), keeping the same fan-in for each gate, you have to simplify the second circuit so that it contains 4 gates, rather than 5, as @jonk suggests.

In general,if you want to only use AND and OR gates, and want to minimize the number of gates, you may want to use something like Karnaugh maps. However, this cannot be easily done on the first two circuits by hand.

If you want to only use one type of gate to make the circuits more modular and easier to analyze, you have to choose either NAND or NOR gates, since they're universal sets. This is done in many integrated circuits. In this case, you have to use the De Morgan's laws.

If you want to minimize the delay, you have to perform a timing analysis and see, for example, whether it is convenient to replace the two 2-input AND gates in the first circuit, AB and (AB)C, with a single, 3-input AND gate.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.