0% found this document useful (0 votes)
26 views42 pages

LECTURE 1-2 - Synchronous Design-3

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views42 pages

LECTURE 1-2 - Synchronous Design-3

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 42

ELX304 : ELECTRONIC

SYSTEM DESIGN
BEng(Hons) Electrical & Electronic Engineering

By:
Sanira Lasantha
BEng ,MSc(Elec. Eng)
Module details

Title Electronic System Design


Module code ElX304
Credit value 20
Leaning hours 200

• Module content and learning outcomes

BEng(Hons) Electrical & Electronic Engineering 2


PART 1: SYNCHRONOUS SEQUENTIAL DESIGN

LESSON 1 :
SYNCHRONOUS DESIGN CONCEPTS

BEng(Hons) Electrical & Electronic Engineering 3


INTRODUCTION TO SEQUENTIAL DESIGN
• Combinational vs. sequential logic

In Out
Combinational Combinational
In Logic Out Logic
Circuit Circuit

State

Combinational Sequential

Output = f(In) Output = f(In, Previous In)

BEng(Hons) Electrical & Electronic Engineering 4


Synchronous vs. Asynchronous circuits

Synchronous circuits - only responds when a


clock signal is present
Asynchronous circuits - circuit responds to input changes immediately

Q. Which system do you think is faster: synchronous or asynchronous? And which


is the harder to design?

BEng(Hons) Electrical & Electronic Engineering 5


Synchronous logic design

• Based on its basic building block - clocked Flipflop.

• A flip-flop is a device which stores a single bit (binary digit) of data


• A flip-flop or latch is a circuit that has two stable states and can be
used to store state information

BEng(Hons) Electrical & Electronic Engineering 6


FLIPFLOP TYPES
SR LATCH
S R Qn Qn+1
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 X
1 1 1 X

BEng(Hons) Electrical & Electronic Engineering 7


• Characteristic table • Excitation table

S R Qn+1 Qn Qn+1 S R
0 0 Qn 0 0 0 X
0 1 0 0 1 1 0
1 0 1 1 0 0 1
1 1 X 1 1 X 0

BEng(Hons) Electrical & Electronic Engineering 8


• Clocked (synchronous) SR Flip Flop • Clocked (synchronous) SR Flip Flop
with pre-set and clear

S Pr
Q
ck
S
Q Q
R
ck
Q
R

Cr
BEng(Hons) Electrical & Electronic Engineering 9
D TYPE FLIP FLOP

• The output takes the value of the D input or Data input, and Delays it
by one clock count
• The D flip-flop can be interpreted as a primitive memory cell

Pr Pr
S
D Clocked Q D Q
Clocked
ck
SR FF Q ck D FF Q
R
Cr Qn+1=Dn Cr
BEng(Hons) Electrical & Electronic Engineering 10 10
JK FLIP FLOP
Pr Excitation Table
Qn Qn+1 J K
J S 0 0 0 X
Q
0 1 1 X
ck 1 0 X 1
R Q
K 1 1 X 0

Cr

BEng(Hons) Electrical & Electronic Engineering 11 11


T TYPE FLIP FLOP

• A Toggle Type FlipFlop can be derived from a JK by


connecting the JK inputs together
T Qn+1
0 Qn
1 𝑄!

BEng(Hons) Electrical & Electronic Engineering 12


GENERAL SYNCHRONOUS DESIGN
CONSIDERATIONS

The design problem is specified in terms of


its
• Inputs
• outputs and
• sequence of operation.
The number (and type) of Flip flops and
their interconnection with combinational
logic arises from the design process.

BEng(Hons) Electrical & Electronic Engineering 13


SYNCHRONOUS COUNTER DESIGN
EXAMPLE
1. Problem statement – Design a synchronous counter as it will count
continuously from 0 to 5

2. State diagram -
Each state is shown by a circle, and
identified by a letter A to F. The arrows
show the transitions from state to state,
i.e. it is a
defined sequence. The required outputs
are also shown inside the state circle

BEng(Hons) Electrical & Electronic Engineering 14


3. State table

The information contained in the State Diagram is transferred to a


State Table

BEng(Hons) Electrical & Electronic Engineering 15


4. Flipflop choice

Q. How many Flipflops do we need?

Q. What kind of Flipflop should we choose?

Possible to design with any flip flop type. In general the following
considerations apply.

BEng(Hons) Electrical & Electronic Engineering 16


• JK: Almost always leads to the simplest circuit, but is
complicated, so is best utilized for small problems.
• SR: A very simple Flip-flop structurally, but because we must
take care never to let S=R=1, the logic tends to be more
complex.
• D: Used in registers and in conjunction with programmable
logic, because it is suitable for use in arrays.
• T:Often used for simple counters, asynchronous as well as
synchronous

We shall use the T Type in this example

BEng(Hons) Electrical & Electronic Engineering 17


5. State assignment
• Although a number of state assignments will lead to circuits of the
same complexity, they will all be different.
• Selecting a good state assignment is a problem which is addressed in
a later lesson.

Example assignment :
A = 000
B = 001
C = 010
D = 011
E = 100
F = 101

BEng(Hons) Electrical & Electronic Engineering 18


6. Excitation table

Convert the state table to an excitation table

BEng(Hons) Electrical & Electronic Engineering 19


• Knowing the exitation tables of Flipflops is important !

BEng(Hons) Electrical & Electronic Engineering 20


7. Flipflop inputs and Output equations
Minimise the T inputs as functions of the Present State in Kmaps

BEng(Hons) Electrical & Electronic Engineering 21


8. Circuit diagram

BEng(Hons) Electrical & Electronic Engineering 22


9. Simulation/Implementation

BEng(Hons) Electrical & Electronic Engineering 23


Q&A
Question 1

Design synchronous counters to count from 0 to 5 using


(a) D Type,
(b) SR Type and
(c) JK type Flipflops.
In each case follow the design process of the example in the previous section.

Determine what happens if you start in an unwanted state.


Compare the solutions in terms of the numbers of gates required and the number
of inputs to these gates

BEng(Hons) Electrical & Electronic Engineering 24


Answer 1
Applying the Change Table rules for the problem in question we get a
combined Excitation Tables shown below

BEng(Hons) Electrical & Electronic Engineering 25


Answer 1
Applying the Change Table rules for the problem in question we get a
combined Excitation Tables shown below

BEng(Hons) Electrical & Electronic Engineering 26


Answer 1
Applying the Change Table rules for the problem in question we get a
combined Excitation Tables shown below

BEng(Hons) Electrical & Electronic Engineering 27


Answer 1
Applying the Change Table rules for the problem in question we get a
combined Excitation Tables shown below

BEng(Hons) Electrical & Electronic Engineering 28


Using Kmaps to solve for these inputs we get

BEng(Hons) Electrical & Electronic Engineering 29


Question 2
Design a synchronous circuit using JK Flipflops which will give outputs
sequentially as follows:

BEng(Hons) Electrical & Electronic Engineering 30


PART 1: SYNCHRONOUS SEQUENTIAL DESIGN

LESSON 2 :
DESIGN WITH INPUTS

BEng(Hons) Electrical & Electronic Engineering 31


BEng(Hons) Electrical & Electronic Engineering 32
BEng(Hons) Electrical & Electronic Engineering 33
BEng(Hons) Electrical & Electronic Engineering 34
BEng(Hons) Electrical & Electronic Engineering 35
BEng(Hons) Electrical & Electronic Engineering 36
WORKED EXAMPLE 1

Problem statement: pattern generator

The problem is to generate a pattern as shown below. If the input,


X, is a logic ‘0’, then the pattern to be generated is in 6 steps. If
X=1, then a shortened pattern is produced, but the change can
only be initiated starting from the state whose output is 000.

BEng(Hons) Electrical & Electronic Engineering 37


State diagram

It can easily be seen that if the input X=0, then we


cycle round the states ABCDEF and back to A. If
X=1, the cycle is shortened
ABEF and back to A.

Q. If there are N inputs, how many arrows leave a state? If a state has no arrows leading to it, what
conclusion can you draw?

BEng(Hons) Electrical & Electronic Engineering 38


State table

BEng(Hons) Electrical & Electronic Engineering 39


Excitation table

BEng(Hons) Electrical & Electronic Engineering 40


WORKED EXAMPLE 2

Problem statement: Pattern detector


Design a synchronous circuit which will give a logic 1 for one clock
period when the following pattern is detected in a series data stream
….0 1 1 0… The final 0 can be the first 0 in the next pattern. Use JK
Flipflops.

BEng(Hons) Electrical & Electronic Engineering 41


Next : Analysis & optimisation of syncronous designs
• State reduction
• State assignment

BEng(Hons) Electrical & Electronic Engineering 42

You might also like