• No results found

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

N/A
N/A
Protected

Academic year: 2021

Share "Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )"

Copied!
28
0
0

Loading.... (view fulltext now)

Full text

(1)

Sequential Logic

(Materials taken from: Principles of Computer Hardware by

(2)

Sequential vs. Combinational

Circuits

• Combinatorial circuits: their outputs are

computed entirely from their present inputs

• Sequential circuits: their outputs are

computed using both the present input and

their previous output

– The idea of a next state

– A clock input triggers the transition from the current state to next state.

(3)
(4)

Sequential Logic Elements

• Sequential logic can perform as many different functions as combinational logic

• Certain functions have been given names. – Latch: a 1-bit memory element

– Register : m latches in a row and is able to store an m-bit word

– Shift register: special-purpose register that moves the bits of the word left or right

– Counter: special-purpose register that when triggered (i.e. clocked) increases its contents by 1

– State machines: moves from one state to another each time it is triggered

(5)

The Flip-Flop

(6)

Analysis by Assuming Initial

Conditions

(7)
(8)
(9)
(10)

Clocked RS Flip-Flop

(11)

D Flip-Flop

(12)

D Flip-Flop Chip

2 active low inputs called preset and clear - Unconditional

- Set high in normal usage - Used on power-up

(13)

Registers

Registers transmit and receive data from buses Flip-flops are clocked to latch the data

(14)

Registers

The most common sequential building block is the register. A register is N bits wide and has a load line for loading in a new value into the register.

Note that DFF simply loads old value when LD = 0. DFF

i l d d l k l

V 0.4 57

Copyright 2005. Thomson/Delmar Learning, All rights reserved.

(15)

Ways of Clocking a Flip-Flop

• A clocked flip-flop captures a digital value and

holds it; three ways of clocking:

1. Whenever the clock is asserted (i.e. a level-triggered flip-flop).

2. Whenever the clock is changing state (i.e. an edge-triggered flip-flop).

3. Capture data on one edge of the clock and

transfer it to output on the following edge (i.e. a master–slave flip-flop)

(16)

Level-Triggered FF

• The type of FF we have discussed so far

• Not appropriate for all applications

(17)

Edge-Triggered FF

• An edge-triggered flip-flop is clocked not by

the level of the clock (i.e. high or low), but by

the transition of the clock signal from zero to

one, or one to zero.

– Positive or rising-edge sensitive – Negative or falling-edge sensitive

– The rising or falling edge of a pulse can have durations less than 1 ns

– Like an level-sensitive clock triggered by a infinitesimally short pulse

(18)

Edge-Triggered FF

(19)

Edge-Triggered FF

• Variation in the arrival time of clock pulses to

FF clock inputs is called clock skew

• Caused by differences in the paths by which

clock pulses reach flip-flops

– Distance

– Temperature – Age

(20)
(21)
(22)

JK Flip-Flop

Edge-triggered flip-flops

When a JK flip-flop is

clocked, it behaves like an RS flip-flop (where J = S, K = R) for all input

(23)

Summary

• Flip-flops have internal state as well as

external inputs---they are memory elements

• The most common forms of flip-flop are: D

flip-flop, RS flip-flop, and JK flip-flop

• Flip-flops have two outputs: Q and Q

• Most flip-flops are clocked and the clock is

used to trigger the flip-flop.

• Flip-flops often have unconditional preset and

clear inputs used the set or clear the output

(24)

Shift Register

• Shift register: bits can be moved one place right every time the register is clocked

• Example, the binary pattern 01110101

becomes 00111010 after the shift register is clocked once

and 00011101 after it is clocked twice

and 00001110 after it is clocked three times, and so on

• After the first shift a 0 has been shifted in from the left-hand end and the 1 at the right-left-hand end has been lost

• Shifting 1 place right has the effect of dividing the number by 2; 1 place left corresponds to multiplying by 2

(25)
(26)

Shift Register

Very useful sequential building block Used to perform either Very useful sequential building block. Used to perform either parallel to serial data conversion or serial to parallel data

conversion.

Copyright 2005. Thomson/Delmar Learning, All rights d

V 0.4 59

(27)
(28)

Counter

Very useful sequential building block. Used to generate memory y q g g y addresses, or keep track of the number of times a datapath

operation is performed.

Copyright 2005. Thomson/Delmar Learning, All rights d

V 0.4 58

References

Related documents

Edward de Bono coined the term “lateral thinking” in 1970 to suggest a way of problem solving that involved challenging the existing paradigms. 186 While the notions

Past research on motorcycle accidents has primarily focused on the issues of the effectiveness of helmet on reducing head injury and injury severity (Cheniner and Even, 1987;

Mackey brings the center a laparoscopic approach to liver and pancreas surgery not available at most area hospitals.. JOSHUA FORMAN, MD

Na akcii sa zúčastnili dva modely – úplne nové Mondeo Hybrid a nový Focus s 1,5-litrovým motorom EcoBoost. Medzi vodičské návyky, ktoré inštruktori vštepo- vali

Well, we suggest that guide that we extend is the soft file of the book Construction And Infrastructure Disputes: A Global Handbook From Globe Law And Business The content and

Since then his research has looked at the role and infl uence of transnational non-state actors in transatlantic relations, and he has published widely on these topics in

Using a spatial working memory task, Azuma and colleagues found lower activation in a parietal region in patients with 22q11 deletion syndrome compared with healthy controls,

Feeder Operation: Work-cycle is initiated by inserting tube end Automatic clamping, automatic flanging/flaring Automatic insertion of O-Lok ® sleeves into dies. Automatic operation