25
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present inputs. In sequential circuit, output depends upon both present and previous inputs/outputs. because of this sequential ckt hae memory to store the previous inputs. Hence sequential ckt always contains a memory element or a feedback from output to input or boyh.

Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

Embed Size (px)

Citation preview

Page 1: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

Sequential circuit Digital electronics is classified into combinational logic and

sequential logic. In combinational circuit outpus depends only on present inputs. In sequential circuit, output depends upon both present and

previous inputs/outputs. because of this sequential ckt hae memory to store the previous

inputs. Hence sequential ckt always contains a memory element or a

feedback from output to input or boyh.

Page 2: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

Basic element of sequential circuitLATCHRS Latch : IT STORE 1-BIT.

Page 3: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present
Page 4: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

The waveform below shows the operation of NOR gates based RS Latch.

Page 5: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

Clocked S - R Latch

Page 6: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

Clocked S - R Latch (continued)

Page 7: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present
Page 8: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

S-R flip flop

Page 9: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

T-flip flop

Page 10: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

J-K Flip flop

Page 11: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present
Page 12: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

Flip-Flop ProblemThe change in the flip-flop output is

delayed by the pulse width which makes the circuit slower or

S and/or R are permitted to change while C = 1Suppose Q = 0 and S goes to 1 and then back

to 0 with R remaining at 0 The master latch sets to 1 A 1 is transferred to the slave

Suppose Q = 0 and S goes to 1 and back to 0 and R goes to 1 and back to 0 The master latch sets and then resets A 0 is transferred to the slave

This behavior is called 1s catching

Chapter 5 - Part 1

12

Page 13: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

Flip-Flop Solution Use edge-triggering instead of master-

slaveAn edge-triggered flip-flop ignores the

pulse while it is at a constant level and triggers only during a transition of the clock signal

Edge-triggered flip-flops can be built directly at the electronic circuit level, or

A master-slave D flip-flop which also exhibits edge-triggered behavior can be used.

Chapter 5 - Part 1

13

Page 14: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

Edge-Triggered D Flip-FlopThe edge-triggered

D flip-flop is thesame as the master-slave D flip-flop

It can be formed by:

Replacing the first clocked S-R latch with a clocked D latch or Adding a D input and inverter to a master-slave S-R flip-flop

The delay of the S-R master-slave flip-flop can be avoided since the 1s-catching behavior is not present with D replacing S and R inputs

The change of the D flip-flop output is associated with the negative edge at the end of the pulse

It is called a negative-edge triggered flip-flop

Chapter 5 - Part 1

14

C

S

R

Q

QC

Q

QC

D QD

Q

Page 15: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

Positive-Edge Triggered D Flip-FlopFormed by

adding inverterto clock input

Q changes to the value on D applied at the positive clock edge within timing constraints to be specified Our choice as the standard flip-flop for most sequential circuits

C

S

R

Q

QC

Q

QC

D QD

Q

Page 16: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

Standard Symbols for Storage Elements

Master-Slave:Postponed outputindicators

Edge-Triggered:Dynamicindicator

Chapter 5 - Part 1

16

D with 0 Control

Triggered D

(a) Latches

S

R

SR SR

S

R

D

C

D with 1 Control

D

C

(b) Master-Slave Flip-Flops

D

C

Triggered DTriggered SR

S

R

C

D

C

Triggered SR

S

R

C

(c) Edge-Triggered Flip-Flops

Triggered D

D

C

Triggered D

D

C

Page 17: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

Registers

Page 18: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

4-bit Register

Page 19: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

Shift Register

Page 20: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

Shift Register

Page 21: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

Ripple Counter

Page 22: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present
Page 23: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present

Synchronous CounterAll flip-flops have a common clock & are

synchronizedFlip-flop in lowest-order position is

complemented with every pulse.Lowest flip-flop has J=K=1Chain of AND gates generates the required

logic for the J & K inputs in each stageThe counter can be extended to any number

of stages, with each stage having an additional flip-flop and an AND gate that gives an output of 1 if all previous flip-flop outputs are 1s

Page 24: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present
Page 25: Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present