Summary: This is a worked example demonstrating how to obtain the function from a given transistor level schematic.

In the following exercise, a transistor level schematic will be analyzed and it's underlying function will be found.

Fill out the truth table for the following mystery schematic (Fig 1) and determine the function.

- Step 1:
**Look at the schematic and determine how the bit values travel through the gates.:****Figure 2:**Consider A to be high (1)**States of a transistor**Note that this is a valid schematic and that the p-MOS transistors are connected to the ground and the n-MOS transistors are connected to Vdd

. - Step 2:
**Construct the input section of the truth table to contain all possible combination of inputs.:**.**Figure 3****Truth Table** - Step 3:
**Apply each combination of inputs to the schematic to determine the flow of bit values to Y:**Complete the truth table with the corresponding output Y to its input.**Figure 4****Truth Table** - Step 4:
**Write the output equation as either a Product of Sums or Sum of Products :**Y = A'B'C + A'BC' + AB'C' + ABC OR Y = (A' + B' + C').(A' + B + C).(A + B' + C').(A + B + C')

. - Step 5:
**Simplify the output equation to determine the function of the mystery schematic:**Also, try to notice patterns that you have already learned about. Clearly, the output is high only when there is an odd number of inputs high. Thus, we can conclude that this is a 3 - input XOR.

Answer: Y = XOR(A, B, C)