Docsity

EE 534 Summer 2004: Lecture Notes on Sequential Logic Circuits and Flip-Flops - Prof. Aura, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
EE 534 summer 2004University of South Alabama
EE534
VLSI Design System
Lecture 13:Chapter 8 &9
Sequential logic circuits design
EE 534 summer 2004University of South Alabama
Sequential Logic circuits
The logic circuits considered thus far are
called combinational logic circuits. Their
output depend only on the present value of
input. This implies that these circuit do not
have
memory.
Another class of the logic circuit that
incorporate memory are called
sequential
logic circuits
; that is, their output depend not
only the present value of the input, but also
on the previous history of inputs.
Shift
registers
and
flip-flops
are typical examples
of such circuits.
EE 534 summer 2004University of South Alabama
Sequential Logic
Combinational circuits’ output is a function of the circuit
inputs and a delay time
Sequential circuits’ output is a function of the circuit
inputs, previous circuit state, and a delay time
EE 534 summer 2004University of South Alabama
Terminology for Sequential Circuits
Sequential logic circuits: circuit output depends
both on the inputs and the present state (which is set
by the preceding inputs)
Multivibrator circuits: (regenerative circuits,
circuits with positive feedback) output of the
circuits is intentionally connected back as input
zbistable element: flip flop (FF), register, latch
(input can see through output during the enabling
clock)
zastable element: oscillator, clock generator
zmonostable element: pulse generator
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download EE 534 Summer 2004: Lecture Notes on Sequential Logic Circuits and Flip-Flops - Prof. Aura and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

EE

VLSI Design System

Lecture 13:Chapter 8 &9 Sequential logic circuits design

EE 534 summer 2004University of South Alabama

Sequential Logic circuits ‰^

The logic circuits considered thus far arecalled

combinational logic circuits

. Their

output depend only on the present value ofinput.

This implies that these circuit do not

have

memory.

‰^

Another class of the logic circuit thatincorporate memory are called

sequential

logic circuits

; that is, their output depend not

only the present value of the input, but alsoon the previous history of inputs.

Shift

registers

and

flip-flops

are typical examples

of such circuits.

Sequential Logic ‰^ Combinational circuits’ output is a function of the circuitinputs and a delay time ‰^ Sequential circuits’ output is a function of the circuitinputs, previous circuit state, and a delay time

EE 534 summer 2004University of South Alabama

Terminology for Sequential Circuits ‰^ Sequential logic circuits

: circuit output depends

both on the inputs and the present state (which is setby the preceding inputs)

‰^

Multivibrator circuits

: (regenerative circuits,

circuits with positive feedback) output of thecircuits is intentionally connected back as input^ z

bistable

element: flip flop (FF), register, latch

(input can see through output during the enablingclock) z astable

element: oscillator, clock generator

z^ monostable

element: pulse generator

Sequential Logic

Combinational

Logic clock

Outputs

(^) StateRegisters

NextState

Inputs CurrentState

EE 534 summer 2004University of South Alabama

Latches vs Flipflops ‰^ Latches

z^ level sensitive circuit that passes inputs to Q when the clock ishigh (or low) - transparent mode z^ input sampled on the falling edge of the clock is held stablewhen clock is low (or high) - hold mode ‰^

Flipflops (edge-triggered)^ z^

edge sensitive circuits that sample the inputs on a clocktransition-^

positive edge-triggered: 0

→ 1

-^ negative edge-triggered: 1

→ 0

z^ built using latches (e.g., master-slave flipflops)^ „Flip-flop: not transparent—reading input and changing output areseparate events.

Memory element parameters ‰^

Setup time: time before clock during which data inputmust be stable. ‰^

Hold time: time after clock event for which data inputmust remain stable.

clockdata

EE 534 summer 2004University of South Alabama

Dynamic latch Stores charge on inverter gate capacitance:

EE 534 summer 2004University of South Alabama

CMOS R-S Fip Flop (cont.) ‰^

When S = logic 0 and R =logic 1, then output Q isforced low, output

goes

high, and the flip-flop isin a reset condition. ‰^

Again, a logic 1 at both Sand

R is considered to be a forbidden or anonallowed condition,since the resultingoutputs are notcomplementary.

Q

EE 534 summer 2004University of South Alabama

SR Flip Flop

disallowed 0 0 1 1

reset 1 0 1 0

set

0 1 0 1

memory Q Q 0 0

Q

Q

R

S

S R^

Q Q

SR-Flip Flop (SR FF) EE 534 summer 2004University of South Alabama

S R

Q S R^

Q

S^

R^

Q^

Q

0101

0011

Q 100

Q 010

S R

Q Q

Q S R^

Q

S^

R^

Q^

Q

1010

1100

Q 101

Q 011

Q Q

quiescent state

characteristic table

setresetforbidden

Later state underterminable ifS/R switch simultaneously!!

NOR based NAND based

EE 534 summer 2004University of South Alabama

Other Latches ‰^

Clocked SR latch^ z^

Adds clock input. Latch output can only beset/reset when clk=1 (or clk=0) ‰^

Other latch types:^ z^

JK latch: Removes “not allowed” state - toggleswhen inputs are both 1 z^ T latch: Toggles when input = 1 z^ D latch: Output = input

Clocked NOR based SR latched

EE 534 summer 2004University of South Alabama

Clocked D Latch

clock

D Latch

Q

D

D

!Q Q

clock clock

transparent modehold mode

TG MUX Based Latch Implementation

Q

D

clk clk !clk

clk !clk

input sampled(transparent mode) feedback(hold mode)

D Latch clk

Q

D

EE 534 summer 2004University of South Alabama Clocked JK- Latch/flip flops

S R

Q Q^

Q

J φ K

Q J K^

Q

Jn^

Kn^

Q^ n+

0 011

01 01

Qn 01 Qn

(b)

(c)

Q

(a)

φ

‰^

addition of clock (synchronous) ‰^

elimination of forbidden inputs ‰^

may race when

J=K=

during

φ =

‰^

latch: any input is reflected at the output aftera nominal delay (latch is open when

φ =

)

All of the SR latched circuits discussed in the last lectures are asynchronousCK

CK

CK 1 1 1 1

Switches its statedue to feedback(toggle)

Problem: during toggling mode the output of the circuit oscillate continuouslyuntil either clock becomes inactive, or one of the input signal goes to zero.

Possible solution!!

=Toggle switch

Master Slave (MS) edge triggered D flip flop Master is a positive level sensitive, while slave is negative level-sensitive

Flip-Flop: Timing Definitions EE 534 summer 2004University of South Alabama

C Κ^ In Out

Data stable

t^ setup Data stable

t^ hold t^ pFF

The data must be present on the S input of the FF a certain time beforewe apply the clock signal.

The time between In going high (low) and clock rising falling) edgeis termed the setup time.

How long does the input D or S haveto remain on the input of the FF afterthe clock pulse applied?

T^ ≥

tsetup

  • t hold^

  • tpFF

Consequences of set-up time violation Input D switches from 10 immediately before theClock transition occurs,which is setup time violation.

EE 534 summer 2004University of South Alabama

MS ET Implementation

Q

D clk

QM

I^2 I 1

I^3

I^5 I^4

I^6

T^2 T^1

T^4 T^3

Master

Slave

clk !clk

MS ET Implementation

Q

D clk

QM

I^2 I 1

I^3

I^5 I^4

I^6

T^2 T^1

T^4 T^3

Master

Slave

clk !clk

master transparent

slave hold

master hold slave transparent

EE 534 summer 2004University of South Alabama

CMOS Dynamic Shift Registers ‰^ The operation of the CMOSshift register is similar tothe NMOS register exceptfor the voltage levels. ‰^ For example, when v

=φI

=V 1

.DD

Then v

=VO^

DD^

and v

=0.O^

when

φ^2

goes high, then v

o

switch to zero, v

=vo^

.DD

‰^

Thus input signal is shiftedto the output during oneclock cycle.

Dynamic transmission gate edge-triggeredregisters

T^1

T^2

I^1

I^2

Q

QM

D

C^1

C^2

clk clk

clk clk

clk clk

master

slave

tsu^

thold

tc-q

EE 534 summer 2004University of South Alabama

Dynamic transmission gate edge-triggered registersrace Conditions

T^1

T^2

I^1

I^2

Q

QM

D

C^1

C^2

!clk clk

clk !clk

clk !clk

0-0 overlap race conditiontoverlap0-

< t

+tT

  • tI T

1-1 overlap race conditiontoverlap1-

< t hold

(1,1) overlap

(0,0) overlap

data must be stable duringthe high-high overlap period

0-0 race fixed by making sure there is enough delaybetween D and C2 so that new data sampled by the masterdoes not propagate to the slave