In our last post, we met the three fundamental building blocks of the digital world: the AND, OR, and NOT gates. These simple components are the key to all digital decision-making. But rarely do they work alone. They are almost always combined to form more complex and useful circuits.
So, how do we talk about these combinations? Drawing diagrams for every circuit is possible, but it can get complicated fast. We need a more concise way to describe exactly what a logic circuit does. This is where Boolean algebra, the language of logic, comes in.
Think of a logic circuit diagram as a sentence. Boolean algebra is the tool we use to write that sentence down. Any logic circuit, no matter how complex, can be described with a single Boolean expression.
The symbols are straightforward:
.
), just like multiplication. So, A AND B
is written A . B
or often just AB
.+
). So, A OR B
is written A + B
.NOT A
is written as Ā
.To find its expression, we work from the inputs to the output:
A
and B
go into an AND gate. The output of that gate is AB
.AB
) then goes into an OR gate along with input C
.x
, is therefore x = AB + C
.A Note on Parentheses and Precedence: What if the OR gate comes before the AND gate?.
Just like in regular math, we use parentheses. The rule is: AND operations are performed before OR operations,
unless parentheses tell you otherwise. The expression for the circuit below would be x = (A + B)C
.
Without the parentheses, it would mean A + BC
, which is a completely different circuit!
Once you have the Boolean expression, you have the power to predict the circuit’s output for any set of inputs without ever building it! This is called evaluating the expression.
Let’s use our first expression, x = AB + C
. What will the output x
be if A=1
, B=1
, and C=0
?
x = (1 . 1) + 0
1 . 1 = 1
x = 1 + 0
x = 1
So, for that specific input combination, the output will be HIGH (1). It’s that simple!
This process allows engineers to analyze and test circuits just by using algebra.This is the reverse process, where we start with an expression and create the circuit diagram. It’s like having a recipe and buying the ingredients.
Let’s use the expression: y = AC + B̄C + ĀBC
+
) that combines three terms.
This means the last gate in our circuit will be a three-input OR gate.AC
, B̄C
, and ĀBC
.A
and C
to produce AC
.B̄
and C
to produce B̄C
.Ā
, B
, and C
to produce ĀBC
.Ā
and B̄
from the original A
and B
inputs.By learning to describe, evaluate, and implement circuits with Boolean algebra, we gain a powerful set of tools to analyze and design any digital system.
Let's connect with me
2025 Muhamad Rizki Kadafi. All Rights Reserved.