Professional Documents
Culture Documents
36 DLD Lec 36 Design of Sequential Circuits Example Dated 08 Dec 2022 Lecture Slides
36 DLD Lec 36 Design of Sequential Circuits Example Dated 08 Dec 2022 Lecture Slides
36 DLD Lec 36 Design of Sequential Circuits Example Dated 08 Dec 2022 Lecture Slides
BEE-13AB
By Nasir Mahmood
nasir.mahmood@seecs.edu.pk, nasirm15@gmail.com
Design Statement
• Design a circuit that detects a sequence of three or more
consecutive 1’s in a string of bits coming through an input
line (i.e., the input is a serial bit stream)
A Sequence Detector
Boolean Minimization
Logic Diagram
7
Excitation Table
Excitation Tables
9
Synthesis Using JK Flip Flops
10
Example JK Synthesis
11
JK Synthesis Logic
12
• Design of Sequential Circuits
– Example to understand the sequential design
13
Design'Statement'
In laser based distance measurement, a laser is aimed at the object of interest. The
laser is briefly turned on, and a timer is started. The laser light, traveling at the
speed of light, travels to the object and reflects back. A sensor detects the reflection
of the laser light, causing the timer to stop.
Laser based distance measurement is illustrated in figure below
After the reflection is detected the system should use the amount of time passed
since the laser was pulsed to compute the distance to the object of interest. The
system should then return to waiting for the user to press the button so that a new
measurement can be taken.
14
Design'Statement'Contd..'
Design a processor to control the laser and the timer and to compute distances up to
2000 meters. A block diagram is shown below
L to laser
Laser
B from button based
distance
measurer
D to display S from sensor
( 16 Bits)
The system has a bit input B, which equals 1 when the user presses a button to start
the measurement. Another bit input S comes from the sensor, and is 1 when the
reflected laser is detected. The bit L controls the laser, turning the laser on when L is
1. Finally N‐bit output D indicate the distance in binary, in units of meters. Let us
make D 16 bits. The system uses 300 MHz clock (every cycle corresponds to 1 m)
and active low reset signal.
15
Design'Specifica-ons'
• We'can'describe'the'overall'control'of'the'system'using'a'high;level'state'
machine.'To'facilitate'the'crea-on'of'the'State'machine,'we'enumerate'the'
sequence'of'events'underlying'the'measurement'system:''
''
– The'system'powers'on.''Ini-ally.'the'system's'laser'is'off'and'the'system'outputs'a'
distance'of'0'meters.'
– The'system'should'then'wait'for'the'user'to'ini-ate'measurement'by'pressing'a'buFon'
B.''
– AIer'the'buFon'is'pressed'the'system'should'tum'the'laser'on.'We'll'choose'to'leave'
the'laser'on'for'one'clock'cycle.''
– AIer'the'laser'is'pulsed,'the'system'should'wait'for'the'sensor'S'to'detect'the'laser's'
reflec-on.'Meanwhile'the'system'should'count'how'much'-me'passes'from'the'-me'
the'laser'was'pulsed'un-l'the'reflec-on'is'sensed.''
– AIer'the'reflec-on'is'detected'the'system'should'use'the'amount'of'-me'passed'since'
the'laser'was'pulsed'to'compute'the'distance'to'the'object'of'interest''
– The'system'should'then'return'to'wai-ng'for'the'user'to'press'the'buFon'so'that'a'
new'measurement'can'be'taken.''
16
THE END
17