Math-MateSchool maths, made clearer

Search the complete textbook

Find a Math-Mate lesson

Type at least two letters to search 240+ lessons.

Topic 52 · lesson 4 of 5

Analysing Logic Circuits

Clear explanations and worked examples from the Math-Mate school maths textbook.

Free lessonNo sign-upPrint friendly

Analysing Logic Circuits

A typical logic circuit problem will give you a logic circuit to analyse.  A common question might be something like this one:

Mathematical diagram

In this case, you’ve got to work out what the final output of the logic circuit at the far right is.  What you need to do is work your way bit by bit through each part of the circuit.

So if we start with the top NOT gate – it has just one input – x.  So the output is going to be ‘NOT x’, or Mathematical diagram in logic notation.  Moving down to the middle connector on the left – the OR gate – it has 3 inputs, x, y and z.  So the output of this gate is going to be Mathematical diagram.  The bottom left gate is an AND gate – but be careful.  The inputs are not x, y, and z. They’re actually, x, x and z – the x is input twice.  So the output is going to be Mathematical diagram.  After having done this much, we can put this information into our diagram:

Mathematical diagram

We can move to the next stage of the logic circuit now.  There are two more gates – an AND gate with three inputs, and an OR gate with two inputs.  However, if you look at how everything is connected, you can work out that you can’t do the OR gate until you’ve done the AND gate.  This is because the output of the AND gate leads directly into the OR gate.  So let’s do the AND gate first.  It has three inputs – Mathematical diagram, Mathematical diagram and Mathematical diagram.  So the output is going to be:

                                          Mathematical diagram

Notice how I’ve used brackets to keep each of the inputs separate in the expression for the output.  Because the inputs themselves are logic expressions (for instance the Mathematical diagram input), they need to be evaluated first.  That’s why we use the brackets.

This output from the AND gate is one of the inputs into the final OR gate.  The other input comes from the output of the bottom left AND gate – Mathematical diagram.  So after feeding these two inputs into the final OR gate, we should get:

                                Mathematical diagram