Top Banner
C.S. Choy 1 SEQUENTIAL LOGIC • A circuit’s output depends on its previous state (condition) in addition to its current inputs • The state of the circuit is kept in memory devices • The state dependency is accomplished by feedback path
40

C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

Dec 22, 2015

Download

Documents

Elijah Cameron
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 1

SEQUENTIAL LOGIC

• A circuit’s output depends on its previous state (condition) in addition to its current inputs

• The state of the circuit is kept in memory devices

• The state dependency is accomplished by feedback path

Page 2: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 2

LATCH

• Active Low

Page 3: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 3

LATCH• Active High

Page 4: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 4

LATCH APPLICATION• Switch Debounce

Almost all mechanical switches have contact bounce problem

Page 5: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 5

GATED-LATCHAlso known as level-triggered

• S-C Type

• D-Type

Page 6: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 6

EDGED-TRIGGERED FLIP-FLOP• D-Type

Page 7: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 7

• Positive-Edge Detector

• Negative-Edge Detector

Page 8: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 8

D-TYPE FLIP-FLOP VARIATIONS• Negative-Edge Triggered

• With Asynchronous Controls

Page 9: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 9

TOGGLE FLIP-FLOPThe flip-flop changes states on every active clock transition

From the waveform, one can observe that when a toggle flip-flop is continuously driven by a clock signal of frequency fin, the output (Q) produces a repetitive waveform of frequency fou

t=fin/2

Divide-By-2 Circuit

Page 10: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 10

J-K FLIP-FLOP

Page 11: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 11

J-K FLIP-FLOP WITH MASTER-SLAVE CONFIGURATION

Page 12: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 12

COMMON SEQUENTIAL CIRCUITS• Counters

A digital counter is a circuit used to generate binary numbers in a specific count sequence. That sequence is mainly governed by input clock pulses, and it is repetitive as long as these clock pulses are applied. Counters serve two main functions in digital systems – counting and frequency division

ASYNCHRONOUSSYNCHRONOUS

Page 13: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 13

ASYNCHRONOUS COUNTER(RIPPLE COUNTER)Basic building block is a toggle flip-flop

Since each flip-flop receives its clock pulse from another flip-flop, there will be delay through these flip-flops. This addition delay is the longest for the MSB flip-flop

Page 14: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 14

ALTERNATIVE MOD-8 UP-COUNTER

Page 15: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 15

MOD-16 UP-COUNTER

Page 16: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 16

COUNTERS OF OTHER MODULUS• Mod-5

Page 17: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 17

MISCOUNTS IN ASYNCHRONOUS COUNTER

The additive propagation delays produce short duration of miscounts

Page 18: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 18

MAXIMUM CLOCK FREQUENCY ALLOWED IN ASYNCHRONOUS COUNTERS

n – number of stages

ff – propagation delay of flip-flop

ffn

1fmax

Page 19: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 19

SYNCHRONOUS COUNTERSAll flip-flops are clocked simultaneously

• Mod-16 Synchronous Up-Counter

ff

1fmax

Page 20: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 20

MOD-10 SYNCHRONOUS UP-COUNTER (BCD OR DECADE)

QA – toggle every time

QB – toggle at A high and D low

QC – toggle at A and B high

QD – change high at A, B and C high but change low afterwards (A high)

Page 21: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 21

MOD-8 DOWN COUNTER

Page 22: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 22

MOD-8 SYNCHRONOUS UP/DOWN COUNTER

Page 23: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 23

PRESETABLE COUNTERS

Page 24: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 24

SYNCHRONOUS COUNTER DESIGN

• Mod-6 Up-Counter Using D-flip-flops

– Design table

Page 25: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 25

MOD-6 UP-COUNTER– K-maps

– Final design

Page 26: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 26

REGISTERSA group of latches or flip-flops used to store, transfer, or shift data

• Serial Shift Register

Data is clocked into the register bit by bit

It is important to note that level-triggered type of latches will not work properly

Page 27: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 27

AN UNIVERSAL REGISTER

S1 S0 Mode of operation

1 1 Parallel load

1 0 Shift left

0 1 Shift right

0 0 Hold

Page 28: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 28

RING COUNTER

The counter is a shift register that has its output connected back to its own input

Page 29: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 29

JONHSON COUNTER

Each bit is toggled in turn• Mod-6

000100110111011001000

With its unique bit pattern, any sequence can be detected with a 2-input gate

Page 30: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 30

MULTIPLY/DIVIDE REGISTER• A left shift operation multiplies a binary number by a factor of 2

• A right shift operation divides a binary number by a factor of 2

Page 31: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 31

PSEUDO-RANDOM-SEQUENCE GENERATOR

D Q

Q

D Q

Q

D Q

Q

D Q

QA B C D

CLK

QA QB QC QD

0 0 0 0

1 0 0 0

0 1 0 0

0 0 1 0

1 0 0 1

1 1 0 0

0 1 1 0

1 0 1 1

0 1 0 1

1 0 1 0

1 1 0 1

1 1 1 0

1 1 1 1

0 1 1 1

0 0 1 1

0 0 0 1

1 0 0 0

INVALID CONDITION

Page 32: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 32

Page 33: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 33

Page 34: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 34

Page 35: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 35

Page 36: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 36

Page 37: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 37

Page 38: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 38

Page 39: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 39

Page 40: C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

C.S. Choy 40