Digital Technics: Óbuda University, Microelectronics and Technology Institute
Digital Technics: Óbuda University, Microelectronics and Technology Institute
buda University,
Microelectronics and Technology Institute
1. LECTURE:
COMBINATONAL CIRCUITS BASIC CONCEPTS
INTRODUCTION
First lecture contents:
1. General introduction to the course
2. Combinational circuits: basic concepts with examples
3. Boolean algebra and logic functions: a review
Aims and scope of the course:
This course will give an overview of the basic concepts and
applications of digital technics, from Boolean algebra to
microprocessors.
The lectures will cover more advanced materials and subjects than
those contained the introductory three semester course of the B.Sc.
programme. It will focus more on the general concepts of the subject
and less on the practical details.
In this respect it is supposed that the students have already a good
foundation and a certain level of hands-on experience in digital
technics and electronics.
2
TOPICS IN FOCUS
Basic concepts of digital technics
Programmable Logic Devices (PLDs) and Field
Programmable Gate Arrays (FGPAs)
MOORES LAW
Gordon Moore (co-founder of Intel) predicted in 1965, just four years after
the first planar integrated circuit was discovered, that the number of
transistors per integrated circuit would double every 18 months.
He forecast that this trend would continue through 1975.
Moore's Law has been maintained
for far longer, it has become a
universal law of the entire semiconductor industry. It still holds
true as we enter the second
decade of new century.
Moores law is about
human ingenuity not physics.
MOORES LAW
A. Groove, R. Noyce
G. Moore INTEL,1970
Logic technology node and transistor gate length versus calendar year.
Note:
mainstream Si technology is nanotechnology.
COMBINATIONAL CIRCUITS:
AN INTRODUCTION WITH EXAMPLES
Digital/logic circuits/networks can be classified into two groups:
1. Combinational logic networks
Results of an operation depend only on the present inputs to the
operation.
Uses: perform arithmetic, control data movement, compare values for
decision making.
2. Sequential logic networks
Results depend on both the inputs to the operation and the result of the
previous operation.
Uses: counters, controllers, etc.
COMBINATIONAL CIRCUITS:
GENERALIZED MODEL AND PROPERTIES
Combinational
circuit
Yi = Fi (A, B, ..., N) i = 1, 2, ... M
Black-box model of combinational circuits.
The combinational circuit maps an input (signal) combination to an
output (signal) combination.
A combinational circuit is a circuit with no memory.
The same input combination always implies the very same output
combination (except transients).
The reverse is not true. For a given output combination different input
combinations can belong.
S = S(A,B,Cin)
Cout = C(A,B,Cin)
A
B
Cin
S
Full adder
Cout
Carry
_
_
_
Ci = AiBiCi-1 + AiBiCi-1 + AiBiCi-1 + AiBiCi-1
= AiBi + AiCi-1 + BiCi-1
The sum can be expressed as a three-variable exclusive OR
function (Si = AiBiCi).
The carry is the three-variable majority function and can also
be expressed in various other algebraic forms.
11
ON THE IMPLEMENTATION
OF THE FULL ADDER
A possible technique for implementing the 1-bit full adder is to generate
the two relevant logic function directly
__
_ _
__
Si = AiBiCi-1 + AiBiCi-1 + AiBiCi-1 + AiBiCi-1
Ci = AiBi + AiCi-1 + BiCi-1
Both require a two level AND-OR circuitry, therefore the time required to
achieve the sum and the carry is equal to the propagation delay of two
gates, or 2 tpd.
An other possibility is to generate the sum using XOR gates.
12
13
Cout = A B + C(A + B)
___
S = (A + B +C )Cout + A B C
In this case the time delay of the sum will be larger, because three
inverting operation is performed, but this is not relevant in a parallel
(ripple-carry) adder, because the time necessary for a multi-bit
addition is determined by the propagation time of the carry.
The equivalent logic diagram and the transistor level CMOS circuit
diagram is shown below.
Cout = A B + C(A + B)
__
S = (A + B +C )Cout + A B C
16
Ci
B
A
B
B
Ci
A
Ci
VDD
Ci
A
Ci
VDD
A
Co
Cout = A B + C(A + B)
___
S = (A + B +C )Cout + A B C
Ci
28 transistors
18
19
20
10
22
11
BOOLEAN OPERATORS
AND
Result TRUE if and only
if both input operands are true
C=AB
OR
Result TRUE if any input operands
are true
C=A+B
1
23
AND gate
OR gate
C=AB
C=A+B
24
12
BOOLEAN OPERATORS
NOT
Result TRUE if single input value is
FALSE
C=A
Implementation
A
_
A
25
B = (A + B) ( A B )
A B = (A B ) + ( B A )
A xor B = either A and not B or B and not A
26
13
27
28
14
BOOLEAN POSTULATES
1.
2.
3.
4.
5.
29
MANIPULATE EXPRESSIONS
BOOLEAN MINIMIZATION
Need a way to manipulate expressions.
Rules of adding, multiplying plus associative, distributive laws etc. The
rules are very similar to basic algebra.
One can transform one Boolean expression into an equivalent expression by
applying the postulates the theorems of Boolean algebra. This is important if
one wants to convert a given expression to a canonical form (a standardized
form) or if one wants to minimize the number of literals (asserted or negated
variables) or terms in an expression. Minimizing terms and expressions can
be important because electrical circuits often consist of individual
components that implement each term or literal for a given expression.
Minimizing the expression allows the designer to use fewer electrical
components and, therefore, can reduce the cost of the system.
30
15
BOOLEAN THEOREMS
commutative law
A B = BA
A+ B= B +A
associative law
A (B C) = (A B) C = A B C
A + (B + C) = (A + B)+ C = A + B + C
distributive law
A (B + C) = A B + A C
A + (B C) = (A + B) (A + C)
The theorems above appear in pairs. Each pair form a dual.
31
DE MORGANS THEOREM
De Morgans theorem occupies an important place in the logic (Boolean)
algebra
A+ B=A B
A B =A+ B
In logic, De Morgans laws (or theorem) are rules in formal logic relating
pairs of dual logic operators in a systematic manner expressed in terms of
negation. De Morgans theorem may be applied to the negation of a
disjunction or to the negation of a conjunction in all part of a formula.
32
16
DE MORGANS THEOREM
Negation of a disjunction
A+ B=A B
Since two things are false, its also false that either of them is true.
Negation of conjunction
A B =A+ B
Since it is false that two things together are true, at last one of them
should be false.
33
A+ B=A B
A B =A+ B
17
DE MORGANS THEOREM
De Morgans formulation of his theorem influenced the algebraization of
logic undertaken by Boole, which cemented De Morgans claim to the find,
although a similar observation was made by Aristotle and was known to
Greek and Medieval logicians, e.g. to William Ockham (1325), the great
medieval scholastic philosopher.
In electrical engineering context the negation operator can be written as
an overline (bar) above the terms to be negated.
In the originate the mnemonic
break the line, change the operation
35
36
18
GENERALIZED DE MORGANS
THEOREMS
The De Morgans theorem is an important tool in the analysis and
synthesis of digital and logic circuits. Its generalization to several
variables is stated below
_____
_ _ _
A B C ... = A + B + C + ...
________
__ _
A + B + C + ... = A B C ...
37
SHANNONS GENERALIZATION OF
DE MORGANS THEOREMS
The De Morgan-Shannons theorem refers to the logic or Boolean
functions constructed using logic multiplications and additions
_____________
_ _ _
f(A, B, C, ..., +, ) = f(A, B, C, ..., , +)
The negation of the function can be performed by negating each
variable and replacing all logic summations (ORs) with logic
multiplications (ANDs) and replacing all logic multiplications (ANDs)
with logic summations (ORs).
38
19
39
KEY APPLICATION OF
DE MORGAN THEOREM
AND operation using OR and NOT
A B = (A + B)
OR operation using AND and NOT
A + B = (A B)
40
20
Any logic circuit can be implemented using only NAND or only NOR
operations.
In the transistor-transistor-logic (TTL) logic circuit system which is based
on silicon bipolar technology the NAND gate is the basic element.
In the logic circuit system based on silicon complementary metal-oxidesemiconductor (CMOS) technology the NOR gate is (mostly) the basic
element.
41
LOGIC GATES
Elementary building blocks of logic circuits.
They implement a basic logic operations.
Complex logic networks can be implemented by appropriate
interconnection of logic gates.
However nowadays: use more complex building blocks and
functional elements (complexity: few tens to few hundred gates), or
some kind of programmable logic devices (complexity up to ten
thousand gates or even more). E. g. the complexity of a 1 digit BCDto-seven segment display decoder is about 30 gates, of a 4-bit ALU
is less than 100 gates. Both are available in MSI in one package.
21
IMPLEMENTATION OF
COMBINATIONAL CIRCUITS
Any two-level AND-OR circuit (sum-of-products, SOP) can be
implemented using a two-level NAND-NAND circuit.
Any two-level OR-AND circuit (product-of-sums, POS) can be
implemented using a two-level NOR-NOR circuit.
All these are based on De Morgans theorem.
43
44
22
45
46
23
Two-level AND-OR
implementation:
CMOS (SSI) implementation:
4062 logic dual majority gate
47
48
24
Sii Ci
Ai Bi Ci-1 D
0
0
0
0
0
0
1
1
0
1
0
1
0
1
1
0
0
0
0
1
1
1
1
1
0
0
1
1
0
1
0
1
1
0
0
1
0
1
1
1
1
2
3
4
5
6
7
SDi i = (1,2,4,7)
Ci = (3,5,6,7)
Si = m 13 + m 2 3 + m 43 + m 73 =
= 3(1,2,4,7)
_ _
E. g.
m23
= A B C, etc.
49
50
25
51
EXAMPLE:
THE TWO CANONICAL FORMS OF XOR
The (trivial) extended SOP form (disjunctive canonical form) of the XOR
function (F(A,B) = A B is
_
_
F = A B + A B = 2 (1,2)
The extended POS form (conjunctive canonical form) of the same function is
_
_
F = (A + B) (A + B) = 2 (0,3)
52
26
53
AN APPENDIX FOLLOWS:
2-INPUT BOOLEAN FUNCTIONS
54
27
BOOLEAN FUNCTIONS
The one- and two-variable operations of Boolean algebra can be
considered as functions of one and two variables, respectively.
In the case of generalized functions the number of variables is extended
only.
n-variable Boolean or logic function
Z = f(X1, X2, .........Xn)
The particular truth value of Z is defined by the f function.
55
CLASSIFICATION OF BOOLEAN
FUNCTIONS OF TWO VARIABLES
Name of the function
f(A,B)
Logical constants
0, 1
A, A, B, B
A B+A B, A B+A B
INHIBITION
A B, B A
IMPLICATION
A B, B A
56
28
f0
f1
f2
f3
f4
f5
f6
f7
f8
f9
f14 f15
0 0
01
10
11
VAGY
VAGY-NEM
S-NEM
AND
OR NOR
NAND
One variable
Egyargumentumos
One variable
Egyargumentumos
Logikai konstansok
Boolean
constants
57
58
29
59
IC IMPLMENTATION: 74HC/HCT181
Total 16 arithmetic operations (add, subtract, plus, shift, plus 12 others)
Total 16 logic operations (XOR, AND, NAND, NOR, OR, plus 11 others)
Capable of active-high and active-low operation
60
30