Digital Logic and Computer Architecture
Digital Logic and Computer Architecture
Digital Logic
• Digital logic hides the pitfalls of the analog
world by mapping all physical values as
sequences of 0s and 1s.
• Regardless of what type of digital circuit we
use, 0 and 1 are represented by two ranges
separated by an undefined range in between.
These two ranges are called low and high
respectively.
Physical states representing 0 and 1
State Representing Bit
Technology 0 1
Combinational Circuits
• A logic circuit whose output depends only
on its current inputs is called a
combinational circuit. Its operation is fully
described by a truth table that lists all
possible combinations of inputs and the
output values produced by each input set.
Combinational Circuit Truth Table – An Example
X Y Z F
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1
Logic Gates
A B AB A B A+B
0 0 0 0 0 0
0 1 0 0 1 1
1 0 0 1 0 1
1 1 1 1 1 1
A A’ A x=A
0 1 0 0
1 0 1 1
Logic Gates and Their Truth Tables (continued)
A B (AB)’ A B (A+B)’
0 0 1 0 0 1
0 1 1 0 1 0
1 0 1 1 0 0
1 1 0 1 1 0
A B A⊕B A B (A⊕B)’
0 0 0 0 0 1
0 1 1 0 1 0
1 0 1 1 0 0
1 1 0 1 1 1
Functions and Their Respective Circuits
XY
X
Y XY + X’Y’Z
X’
Y’ X’Y’Z
F
z
y
F
F = xy’ + x’z
Types of Circuits
There are many ways to design an electronic
logic circuit. These are among the most
significant:
• TTL Logic
• MOS Logic
• CMOS Logic
TTL Logic
• TTL (Transistor-transistor logic) is the most
successful family of bipolar logic circuit designs.
– Bipolar logic circuits have junctions where positively
“doped” semiconductors meet negatively “doped”
semiconductors.
• First introduced in the 1960s, TTL is now a family
of logic families that are compatible with each
other but differ in speed, power consumption and
cost.
• TTL was largely replaced by CMOS in the 1990s.
MOS Logic
• In MOS (Metal Oxide Semiconductor)
logic, increasing the voltage decreases the
effective resistance of the transistor.
• It was not until the 1960s that fabrication
methods were practical enough for
manufacturing.
• MOS was significantly slower than TTL but
used much less power.
CMOS Logic
• CMOS (Complementary Metal Oxide
Semiconductor) Logic is an improved
variation on MOS logic and is commonly
used now in large-scale integrated circuits.
• CMOS logic is the most capable and the
easiest to understand commercial digital
logic technology.
Boolean Algebra
• Boolean algebra (named for British
mathematician George Boole) is the algebra
of logical values (true and false).
• Boolean algebra gives us postulates and
theorems that provides ways for us to
simplify logic expressions and therefore
come up with simpler circuits that perform
the same function as the ones with which
we started.
Fundamental Concepts of Boolean Algebra
X Y Z Z’ YZ’ X+YZ’
0 0 0 1 0 0
0 0 1 0 0 0
0 1 0 1 1 1
0 1 1 0 0 0
1 0 0 1 0 1
1 0 1 0 0 1
1 1 0 1 1 1
1 1 1 0 0 1
Minterms and Maxterms
x y F0 F1 F2 F3 F4 F5 F6 F7
0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 1 1 1 1
0 0 0 0 1 1 0 0 1 1
1 1 0 1 0 1 0 1 0 1
0 0 1 1 1 1 1 1 1 1
1 1 0 0 0 0 1 1 1 1
0 0 0 0 1 1 0 0 1 1
1 1 0 1 0 1 0 1 0 1
Sixteen Logic Microoperations
x+y=y+x xy = y x
x + (y+z) = (x+y ) + z x(yz) = (xy)z
x(y + z) = xy + xz x + y z = (x+y)(x+z)
(x+y)’ = x’y’ (xy)’ = x’ + y’
x + xy = x x(x+y) = x
x + x’y = x + y x(x’+y) = xy