EEE378 - Digital Electronic II (Vol I) Week 1
EEE378 - Digital Electronic II (Vol I) Week 1
EEE378 - Digital Electronic II (Vol I) Week 1
Digital Electronic II
Week 1: Introduction
Digital Electronic II
1-2
Digital Electronic II
Syllabus
Week Topic
1 Introduction : hierarchical design, CAD software.
2 Logic simplification : entered-variable Karnaugh map, introduction
to hazard & glitches
3 Logic design using MSI components : multiplexor, decoder,
demultiplexor, tristate, parity.
4 Logic design using PLD : ROM, PLA, PAL, GAL, introduction to
FPGA & CPLD.
5 Arithmetic circuits I : half-adder, full adder, ripple-carry adder,
subtractor, CLA adder.
6 Arithmetic circuits II : ALU, combinational multiplier, design Trade-
offs
7 Sequential circuits : synchronous & asynchronous circuits,
introduction to state diagrams, latches & flip-flops, characteristic
equations, metastability
1-3
Digital Electronic II
Syllabus (cont’d)
Week Topic
8 Registers & Counters : registers file, shift registers, counters, state
diagrams, synthesis of synchronous counters
9 Finite State Machines (FSM) : State diagrams for FSM, Moore &
Mealy models, design of sequence detectors.
10 More FSM : multimode counters, state encoding.
11 Multi-Input Multi-Output FSM : Controller & Data Path concept,
design of vending machine, design of traffic light controller
12 FSM Implementation : implementation of using of MSI & PLD,
introduction to FSM optimization
13 Algorithmic State Machines (ASM) : ASM concepts, rearchitect
previous designs with ASM
14 Case Studies : FIFO, LIFO, combinational lock with keypad input,
sequential divider, or other circuits of equivalent complexity
1-4
Digital Electronic II
1-5
Digital Electronic II
Option I Option II
Tests x 2 15% 10%
Assignments & Quizzes – Dr Mohamad Adzhar Md Zawawi 5% 10%
1-6
Digital Electronic II
Mini Project
1-7
Digital Electronic II
Recommended Book(s)
1-8
Digital Electronic II
1-9
Digital Electronic II
1-10
Digital Electronic II
Assumptions
1-11
Digital Electronic II
Objectives
1-12
Digital Electronic II
Hierarchical Design
System Level
System Specification
Design Flow
Definition:Hierarchy, or
“divide and conquer” Functional Architecture
Behavioural Design
Dividing a module into sub- Representation
modules and then repeating
Function Verification
this operation on the sub-
modules until the complexity
Logic Design
of the smaller parts becomes Logic (Gate
Level)
manageable.
Representation
Logic Verification
Implementation (Gate/
Transistor/ Layout Level)
1-13
Digital Electronic II
Top-down vs Bottom-up
Top Down Design:
Complex functions replaced by more primitive functions
Bottom Up Implementation:
Primitives composed to build more and more complex assemblies
Rules of Composition and Correctness by Construction:
Electrical Rules: how many components can be cascaded?
Timing Rules: how does the system change in conjunction with periodic
triggering events?
Top-down design flow provides an excellent design process control.
In reality, there is no truly unidirectional approach.
Both top-down and bottom-up approaches have to be combined. In system
level design, in order to fit the system into the allowable constraint (area,
speed, power consumption) some functions may have to be removed and
the design process must be repeated (may requires significant
modification).
1-14
Digital Electronic II
Level of Implementation
1-15
Digital Electronic II
Hierarchical Design
Computer-Aided Design
Synthesis tools
create a portion of the design from other portions
map more abstract representation to more physical representation
map a representation into a more optimized form of that representation
Gate
Libraries
1-17
Digital Electronic II
Computer-Aided Design
Simulation
program which dynamically executes an abstract design description
obtain verification of functional correctness and some timing information before
the design is physically constructed
easier to probe and debug a simulation than an implemented design
simulation cannot guarantee that a design will work
only as good as the test cases attempted
does not check electrical errors
abstracts away some of the realities of a real system
Logic Simulation
design described in terms of logic gates
values are 0, 1 (plus others to be introduced)
good for truth table verification
Timing Simulation
waveform inputs and outputs
model of gate delays
are the waveform shapes what were expected?
identification of performance bottlenecks
1-18
Digital Electronic II
Computer-Aided Design
Rapid Implementation Technologies
the function and interconnect of a component can be "personalized“
alternative to discrete logic gates and wires
reduces wiring complexity and parts count
facilitates more rapid design changes and enhancements
1-19
Digital Electronic II
1-20
Digital Electronic II
Development Process
Design Specification
Design Entry
Design Modification
Design Compilation
Functional Verification
Timing Verification
Device Programming
In-System Verification
Sytem Production
1-21
Digital Electronic II
Partition
B
No
Correct?
Yes D
Physical mapping
Timing simulation
No
Correct?
Yes
Implementation
1-22
Digital Electronic II
Regularity
means that the hierarchical decomposition of a large system must be
simple and similar as much as possible. It must exists at all levels of
abstraction:
Eg: At the logic level, identical gate structures can be used, etc. If the
designer has a small library of well-defined and well-characterized
basic building blocks, a number of different functions can be
constructed by using this principle.
1-23
Digital Electronic II
Modularity
Hierarchical functional blocks must be well-defined – functionality and
interfaces.
Each block can be designed independently (relatively from each other).
All of the blocks can be combined with ease to form the large system.
Enables the parallelization of the design process.
1-24
Digital Electronic II
Locality
The well-characterized definition of interfaces for each module in the
system stays at the local level.
Thus, the internals of each module become unimportant to the exterior
modules.
Connections are mostly between neighbouring modules, avoiding long-
distance connections as much as possible to avoid interconnect delay.
Time-critical operations should be performed locally.
1-25
Where Are We Now?
x y f
AND f = x.y
x 0 0 0
y f 0 1 0
1 0 0
1 1 1
OR f=x+y x y f
0 0 0
x
y f 0 1 1
1 0 1
1 1 1
INVERTER f = x’ x f
x f
0 1
1 0
BUFFER f=x x f
x f
0 0
1 1
1-27
Digital Electronic II
y
NAND f = (x.y)’ x f
x 0 0 1
y f 0 1 1
1 0 1
1 1 0
NOR f = (x + y)’ x y f
x 0 0 1
y f 0 1 0
1 0 0
1 1 0
y
EX-OR f = x’y + xy’ x f
x 0 0 0
y f 0 1 1
1 0 1
1 1 0
EX-NOR f = x’y’ + xy x y f
x 0 0 1
y f 0 1 0
1 0 0
1 1 1
1-28
Digital Electronic II
Boolean Expression
Boolean expressions are a much better form for representing digital
circuits because it is much easier to manipulate and simplify.
A Boolean expression is an expression formed with:
binary variables
the binary operators OR and AND
the unary operator NOT
parentheses
an equal sign
For example,
F = x'y + z F is 1 when z = 1 OR when x = 0 AND y = 1.
The precedence of operations is as follows:
parentheses,
NOT,
AND
OR.
1-29
Digital Electronic II
Boolean Algebra
1-30
Digital Electronic II
1-31
Digital Electronic II
Duality
1-32
Digital Electronic II
Variable Theorems
Idempotency Absorption
A+A = A A+AB = A
A·A = A A(A’+B) = AB
AB+AB’ = A
Null elements for + and ·
(A+B)(A+B’) = A
operators
AB+AB’C = AB+AC
A+1 = 1
(A+B)(A+B’+C) = (A+B)(A+C)
A·0 = 0
Involution DeMorgan’s
(A+B)’= A’·B’
(A’)’ = A
(A·B)’= A’+B’
Consensus
AB+A’C+BC=AB+A’C
1-33
Digital Electronic II
Some Definitions
Literal - a variable or complement of the variable in terms
Product term - single literal or product (·) of two or more literals,
e.g.: ABC
Sum term - single literal or sum (+) of two or more literals,
e.g.: A+B+C
minterm – normal product term of n literals that is 1 for exactly one set of input
values
– 2n unique n-variable minterms
– 4-variable minterm – A’B’C’D’, A’B’C’D …. ABDC (16 possible terms)
• maxterm – normal sum term of n literals , expression that is 0 for exactly one set
of input values
– 2n unique n-variable maxterms
– 4-variable maxterm – A+B+C+D, ….. A’+B’+C’+D’ (16 possible terms)
1-34
Digital Electronic II
1-35
Digital Electronic II
1-37
Digital Electronic II
Example
In SOP
Row xyz Minterm Maxterm F
x’y’z+ x’yz’+ x’yz+ xyz
Σm(1,2,3,7) 0 000 x’y’z’ x+y+z 0
In POS 1 001 x’y’z x+y+z’ 1
(x+y+z) (x’+y+z) (x’+y+z’) (x’+y’+z)
ΠM(0,4,5,6)
2 010 x’yz’ x+y’+z 1
1-38
Digital Electronic II
Don’t Cares
1-39
Digital Electronic II
DIY Example
Given the following SOP expression, minimize it:
f(x,y,z) = x’y’z’ + x’y’z + xy’z’ + xy’z + xyz’
1-40
Digital Electronic II
1-41