Boolean Logic & Combinational Circuits
Boolean Logic & Combinational Circuits
2.2
Boolean Algebra
George Boole (1854): basic principles. Variables: TRUE or FALSE, conveniently mapped onto 0 or 1. Operations: A B A B A B A+ B
With these three building blocks, you can define any function.
2.3
Postulates
Relationship
AB = BA
Dual
A+ B = B + A
A( B + C ) = AB + AC A + BC = ( A + B )( A + C )
1A = A
AA = 0
0+ A= A
A+ A =1
2.4
Theorems
Zero and one: 0 A = 0 Idempotence: AA = A Associative: Involution:
A( BC ) = ( AB)C
A= A A+ B = A B
1+ A = 1 A+ A = A
A + ( B + C ) = ( A + B) + C
DeMorgans: AB = A + B
A+ B
A B
Important notes: (1) You can build any logic function from (2) You can build any logic function from (these gates are called universal)
. .
2.6
Transistor Logic
V1
V0
In general, the more power you use, the faster the transistor switches. The problem is, the transistor runs hotter and burns more energy.
2.8
time
onoff
off on
switching times
Logic Gates
3. Look at the entries that produce a 1 on the output and construct minterms. Ex. When (A=0, B=1, C=1), we produce a 1 result with: ABC 4. Add up the minterms with an OR: M = ABC + A BC + ABC + ABC
This gives 1 if any of the input combos that produce 1 is presented. This is called Sum of Products (SOP) form, or sum of minterms.
2.10
10
Option 1. Look at the entries that produce a 0 on the output, construct maxterms then AND them all together. Ex. When (A=0, B=0, C=1), the maxterm is: A+ B+C Option 2. Create the SOP for M. Complement and apply DeMorgans.
M = ( A B C ) + ( A BC ) + ( AB C ) + ( A B C ) M = ( A + B + C )( A + B + C )( A + B + C )( A + B + C )
2.11
11
Canonical Forms
Both SOP and POS forms are called canonical. They both yield two-level circuits. Sometimes it may be easier to compute a function (simpler Boolean equation) using one form rather than the other. Always try both to minimize the gate count. Drawback: This mechanical synthesis procedure doesnt always yield the minimal circuit. We need a procedure for reduction
2.12
12
13