The Boolean function for the output Z of the circuit shown in the figure is most nearly:
 

A.  $$XY$$
B.  $$barXbarY$$
C.  $$XoplusY$$
D.  $$bar(XoplusY)$$

1 Answer

James Dowd

Updated on December 29th, 2020

This circuit consists of 4 NAND gates. A NAND gate conforms to the following truth table:

Based on the truth table, the NAND gate's Boolean expression is: XY. Using this expression, we can walk through and write down the expressions at the output of each gate until we get one for Z:

Now that we have an expression for Z, we are interested in simplification. We will need to use DeMorgan's law for NAND which states:

AB¯ =A¯+B¯

We can therefore split up our expression like this:

Z = XXY¯¯YXY¯¯¯ Z = XXY¯¯¯+YXY¯¯¯

Two top bars indicate a double negative, which would cancel each other out into a positive. We can eliminate the two bars over each expression:

Z = XXY¯+YXY¯

Now, we apply DeMorgan's once more on both parts of our equation:

Z = X(X¯+Y¯)+Y(X¯+Y¯)

Next, we distribute:

Z = XX¯+XY¯+YX¯+Y¯Y

Both XX¯ and Y¯Y terms will become 0, leaving us with our final expression:

Z = XY¯+YX¯

This expression is representative of the XOR logic, which can be expressed through this symbol: . Therefore, another way to write our expression is:

Z = XY

This corresponds to answer C. 

Copyright © 2024 Savvy Engineer