Docsity

Synronous Logic Kenning-Computer Logic Design-Lecture Slides, Slides of Digital Logic Design and Programming

Toggle sidebar
bg1
E&CE 223 Digital Circuits and Systems Page 1
Sequential Circuits
Have considered only combinational circuits in which circuit outputs are determined
entirely by current circuit inputs.
We can include storage elements into a circuit that act like memory and store a
system state.
inputs outputs
combinatorial
circuit
memory
elements state
Outputs are then a function of both the current circuit inputs and the system
state.
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b

Partial preview of the text

Download Synronous Logic Kenning-Computer Logic Design-Lecture Slides and more Slides Digital Logic Design and Programming in PDF only on Docsity!

E&CE 223 Digital Circuits and Systems^

Sequential Circuits †^ Have considered only combinational circuits in which circuit outputs are determinedentirely by current circuit inputs. †^ We can include^ storage elements

into a circuit that act like^ memory

and store a

system state.^ inputs^

outputs

combinatorialcircuitmemoryelements

state

†^ Outputs are then a function of both the current circuit inputs and the systemstate.

docsity.com

E&CE 223 Digital Circuits and Systems^

Types of Sequential Circuits †^ Two main types of sequential circuits (classification depends on how timinghappens):^ „^ Synchronous Sequential Circuits

  • circuit behavior is determined from theknowledge of signal values at discrete instances in time. „^ Asynchronous Sequential Circuits
    • circuit behavior is determined by signalsat any instant in time and the order in which input signals change.

docsity.com

E&CE 223 Digital Circuits and Systems^

Clocks †^ Clocks are periodic. †^ They can control when things happen because their transition from

0-> 1^ and from 1 -> 0^ occur at discrete instances in time. † The^ 0 -> 1^ transition is often called the

rising edge^ of the clock. †^ The^ 1 -> 0^ transition is often called the

falling edge^ of the clock.

clock^

rising edge (0->1transition)

falling edge (1->0transition)docsity.com

E&CE 223 Digital Circuits and Systems^

Latches †^ Latches are^ level sensitive^ storage elements;^ „^ They operate based on whether signals are

at logic levels 0 or 1 ,^ not^ on^ logic transitions^ from^ 0 -> 1 or 1 -> 0. † Latches are not really too useful for synchronous sequential circuits (they are forasynchronous circuits), but form the basis from which flip-flops are built.

docsity.com

E&CE 223 Digital Circuits and Systems^

Page 7

SR Latch (NOR Implementation) Explained †^ In general (one exception, see below), the

outputs are complements^ of each other (this is why they are labeled^ Q^ and

: Q ): „ When S=1, R=0 the output is Q=1,^ :Q=0^ and the circuit in the

set state. „^ When^ S=0, R=1^ the output is^ Q=0,

:Q=1^ and the circuit in the^ reset state

†^ So, S=1 (active high) implies set (Q=1) and R=1 (active high) implies reset (Q=0). †^ When^ S=0, R=0^ the output^ holds

at its previous value ( storage ). †^ When^ S=1, R=1^ the output is^ Q=

:Q=0^ which is not desirable. „ We want to avoid this combination of inputs.

docsity.com

E&CE 223 Digital Circuits and Systems^

S’R’ Latch (NAND Implementation) Illustrated †^ Consider the operation of the following circuit:

S (set)^ Q !QR (reset)

docsity.com

E&CE 223 Digital Circuits and Systems^

Latch With Control Input (i.e., Gated Latch) †^ We can add an additional control input that acts as an

enable signal. †^ Consider adding some extra NAND gates in front of an S’R’ Latch. †^ This gives us a^ SR Latch with control input

. Q !Q

S C R

docsity.com

E&CE 223 Digital Circuits and Systems^

Page 11

Latch With Control Input Explained

S^ Q C !QR

†^ When the control input^ C=0 ,^ „^ The inputs to the latch are

both 1 which puts the SR latch into hold state

„^ The latch outputs will not change regardless of S and R values

. docsity.com

E&CE 223 Digital Circuits and Systems^

D Latch †^ We must avoid the undesirable situation in which we cannot determine what theoutput of the latch will be…^ „^ i.e., we never want^ S=1, R=

when^ C=1 (bad!) †^ The solution is to construct a latch where S and R can never have the samevalue.

docsity.com

E&CE 223 Digital Circuits and Systems^

D Latch Illustrated

Q !Q

D C † We still have a^ hold state^ when the control input

C=0.

†^ The output Q^ follows^ input D when the control input

C=1. docsity.com

E&CE 223 Digital Circuits and Systems^

Schematic Symbol for S’R’ Latch (With and Without Control Input)^ S^ Q^ R

S^ Q C R

†^ Note: as illustrated, this means the inputs are

active low ; i.e., we^ set^ when^ S=0^ (and R=1) and we^ reset^ with^ R=0^ (and S=1).

docsity.com

E&CE 223 Digital Circuits and Systems^

Schematic Symbol for D Latch (With Control Input)

D^ Q C

†^ Note: For a D Latch, the control input is

required , since it is via the control input that we have the^ hold state.

docsity.com

E&CE 223 Digital Circuits and Systems^

Problem With Latches †^ Latches do not allow for precise control because they are

level sensitive. „^ Consider a D-Latch with the clock signal connected to the control input. „^ Output of the latch can change anytime while the clock is at its active level. † This creates an^ interval in time^ over which the state, or output, of the memoryelement can change rather that an

instant in time^ at which the state, or output, of the memory element can change. † It would be^ better^ to only allow the output to change when the clock edge makes atransition from^^0!^1 (rising edge triggering) or

^1!^0 (falling edge triggering).^ This gives even more precise control! † Flip-flops give more precise control by being edge-triggered.

docsity.com

E&CE 223 Digital Circuits and Systems^

Triggering Illustrated †^ Response to positive level (a latch) – large window of time for output to change. †^ Positive Edge Triggering. The^ input

to the flip-flop^ just before^ the clock changes from^^0!^1 causes the^ output^ to change

just after^ the clock changes from

^0!^1.

†^ Negative Edge Triggering. The

input^ to the flip-flop^ just before^

the clock changes from^^1!^0 causes the^ output^ to change

just after^ the clock changes from

^1!^0. docsity.com