27
Sequential Logic

Sequential Logic

  • Upload
    alaula

  • View
    30

  • Download
    0

Embed Size (px)

DESCRIPTION

Sequential Logic. Block diagram of Sequential Circuit. Inputs. Combinational Circuit. Outputs. Next State. Present State. Storage Elements. Definition. A combinational circuit and storage elements are interconnected to form sequential circuit. - PowerPoint PPT Presentation

Citation preview

Page 1: Sequential Logic

Sequential Logic

Page 2: Sequential Logic

Block diagram of Sequential Circuit

Combinational Circuit

Storage Element

s

Inputs Outpu

tsNext State

Present State

Page 3: Sequential Logic

Definition A combinational circuit and storage

elements are interconnected to form sequential circuit.

Storage elements are capable of storing binary information.

It defines the state. Inputs together with the present state of

storage elements determine the output. Determine values used to determine the

next state of storage elements.

Page 4: Sequential Logic

Definition ctd… Outputs in a sequential circuit are a function

not only of inputs. Present state of stored elements.

Next state of storage elements is also a function of inputs and present state of stored elements.

Thus, a sequential circuit is specified by a time sequence of inputs, internal states and outputs

Page 5: Sequential Logic

Two types

Synchronous Synchronous sequential circuits can be

defined from the knowledge of its signals at discrete instants of time.

Asynchronous Asynchronous sequential circuits

depends upon the inputs at any instant of time and the order in continuous time in which the inputs change.

Page 6: Sequential Logic

Synchronous sequential circuits Employs signals that effect storage

elements only at discrete instants of time.

Synchronization is achieved by a timing device called a clock generator.

Clock generator produces a periodic train of clock pulses.

Synchronous sequential circuits use clock pulses as inputs to storage elements are called clocked sequential circuits.

Page 7: Sequential Logic

Storage can be constructed from logic with delay connected in a closed loop.

A property - there must be no inversion.

A buffer is usually implemented using two inverters.

Page 8: Sequential Logic

Clocked sequential diagrams

Combinational Circuit

Flip-Flops

Inputs Outpu

ts

Clock pulses

Page 9: Sequential Logic

Latches

A storage element can maintain a binary state indefinitely, until directed by an input signal to switch states.

Difference between latches and flip-flops No of inputs they possess Manner which the inputs affect the

binary state Most basic storage elements are

latches

Page 10: Sequential Logic

S-R Latch

Page 11: Sequential Logic

S-R Latch Two cross-coupled NOR gates. Derived from

Replacing inverters with NOR gates.

Page 12: Sequential Logic

S-R Latch

Two inputs S - set R – Reset

When Q = 1 and Q’ = 0

Set State Q = 0 and Q’ = 1

Reset State

Outputs Q and Q’ are normally the complements of each other

Page 13: Sequential Logic

Function Table

S R Q Q’1 0 1 00 0 1 00 1 0 1

0 0 0 1

1 1 0 0

Page 14: Sequential Logic

S’R’ Latch

Page 15: Sequential Logic

Two cross-coupled NAND gates.

Page 16: Sequential Logic

Function Table

S R Q Q’0 1 1 01 1 1 01 0 0 1

1 1 0 1

0 0 1 1

Page 17: Sequential Logic

SR latch with control inputs

Page 18: Sequential Logic

Function Table

C S R Next State of Q

0 X X No change1 0 0 No change1 0 1 Q = 0 ; Reset

Time1 1 0 Q = 1 ; Set

State1 1 1 Undefined

Page 19: Sequential Logic

Eliminate undesirable undefined state in SR latch is to ensure that inputs S and R are never equal to 1 at the same time.

Page 20: Sequential Logic

D Latch

Page 21: Sequential Logic

Function Table

C D Next State of Q0 x No change1 0 Q = 0 ; Reset State1 1 Q = 1 ; Set State

Page 22: Sequential Logic

Flip-flops

The simplest form of sequential circuit.

Variety of flip flops, all of which share two properties.

One is …. A bistable device. Exists in one of two states In the absence of input, remains in the

state. Thus, can function as a 1 – bit memory.

Page 23: Sequential Logic

2nd one Has two outputs. Which are always complements of each

other. Generally labeled Q and Q’.

Page 24: Sequential Logic

Flip Flops

Latches are asynchronous, which means that the output changes very soon after the input changes.

Most computers today are synchronous, which means that the outputs of all the sequential circuits change simultaneously to the rhythm of a global clock signal.

A flip-flop is a synchronous version of the latch.

Page 25: Sequential Logic

Master-Slave Flip-Flop

There are several fundamental types of flip-flops.

In addition there are minor variations depending on the number of inputs and how they control the state of the flip-flop.

Very simple type of flip-flop called a D-flip-flop.

Page 26: Sequential Logic

A master-slave D-flip-flop is built from two SR-latches and some gates

Page 27: Sequential Logic

SR Master – Slave Flip-Flop