chapter 8 introduction to sequential logic. 2 sequential circuit a digital circuit whose output...

98
Chapter 8 Introduction to Sequential Logic

Upload: coby-caulk

Post on 15-Dec-2015

225 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

Chapter 8

Introduction to Sequential Logic

Page 2: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

2

Sequential Circuit• A digital circuit whose output depends

not only on the present combination of input, but also on the history of the circuit.

Page 3: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

3

Sequential Circuit Elements• Two basic types:

– Latch– Flip-flop

• The difference is the condition under which the stored bit changes.

Page 4: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

4

Sequential Circuit Inputs• The LATCH is a sequential circuit with

two inputs (SET and RESET).• SET – an input that makes the device

store a logic 1.• RESET – an input that makes the

device store a logic 0.

Page 5: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

5

Sequential Circuit Outputs• Two complementary outputs • Outputs are always in opposite logic

states.

). , ( QQ

Page 6: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

6

Sequential Circuit Outputs

Page 7: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

7

Sequential Circuit States

1 0, :RESET

0 , 1 : SET

QQ

QQ

Page 8: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

8

Active HIGH or LOW Inputs• Latches can have either active HIGH or

active LOW inputs.• The output of the LATCH, regardless of

the input active level, is still defined as:

1 0, :RESET

0 , 1 :SET

QQ

QQ

Page 9: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

9

Active HIGH or LOW Inputs

Page 10: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

10

NAND Latch Function Table

RESET1001

1

1

0

1

1

No Change1

SET00

Forbidden10

Function1 t1t QQRS

tt QQ

Page 11: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

11

Function Table Notation• Qt indicates the present state of the Q

input.• Qt +1 indicates the value of Q after the

specified input is applied.

Page 12: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

12

NAND Latch Operation• Two possible stable states:

– SET– RESET

• Feedback keeps the latch in a stable condition.

Page 13: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

13

S R Qt + 1 Function

0 0 Qt No Change

0 1 0 1 RESET

1 0 1 0 SET

1 1 0 0 Forbidden

NOR Latch Function Table

1tQ

tQ

Page 14: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

14

NOR Latch Function Table

Page 15: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

15

Block Diagram File NAND Latch• Gate components are called BOR2:

– Bubbled-OR, 2-inputs

• Inputs are labeled nS and nR.• Outputs are labeled Q and nQ.

– In Quartus, the n prefix takes the place of the logic inversion bar.

Page 16: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

16

Block Diagram File NAND Latch

Page 17: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

17

Practical Synthesis of theNAND Latch

• Quartus II does not synthesize the LATCH exactly as shown in Figure 8.15 on the previous slide.

• Quartus II analyzes the Boolean equation of the original LATCH and reformats the circuit to fit the target device.

Page 18: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

18

Quartus II NAND Latch Equations

RQQ

SRQQ

nn

nn

Page 19: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

19

Quartus II NAND Latch Equations

Page 20: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

20

Switch Bounce• The condition where the closure of a

switch contact results in a mechanical bounce before the final contact is made.

• In logic circuits, switch bounce causes several pulses when a switch is closed.– Can cause circuit to behave unpredictably.

Page 21: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

21

Switch Bounce

Page 22: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

22

Switch Debounce Circuit• Uses a NAND latch with switch contacts

connected to +5 volts.• Bounce is ignored since that condition

results in inputs of:

– A no-change condition

1 1, RS

Page 23: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

23

Switch Debounce Circuit

Page 24: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

24

Gated SR Latch• The time when a latch is allowed to

change state is regulated.• Change of state is regulated by a

control signal called ENABLE.• Circuit is a NAND latch controlled by

steering gates.

Page 25: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

25

Gated SR Latch

Page 26: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

26

Latch ENABLE Input• Used in two principal ways:

– As an ON/OFF signal– As a synchronizing signal

Page 27: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

27

EN S R Qt+1 Function

1 0 0 Qt No change

1 0 1 0 1 Reset

1 1 0 1 0 Set

1 1 1 1 1 Forbidden

0 X X Qt Inhibited

Gated SR Latch Function Table

1tQ

tQ

tQ

Page 28: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

28

Gated D or Transparent Latch• A latch whose output follows its data

input when its ENABLE input is active.• When ENABLE is inactive, the latch

stores the data that was present when ENABLE was last active.

Page 29: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

29

Gated D or Transparent Latch

Page 30: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

30

EN D Qt+1 Function Comment

0 X Qt No change Store

1 0 0 1 RESET Transparent

1 1 1 0 SET

Gated D Latch Function Table

1tQ

tQ

Page 31: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

31

D Latches in Quartus II• Can be implemented as a primitive in a

Block Diagram file (.bdf).• Can be implemented with a behavioral

or structural description in a VHDL file.

Page 32: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

32

D Latches in Quartus II

Page 33: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

33

D Latches in Quartus II

Page 34: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

34

VHDL Process Statement• PROCESS statement is concurrent.• Statements inside the PROCESS are

sequential.

Page 35: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

35

VHDL – D Latch – 1-- d_latch_vhdl.vhd

-- D latch with active-HIGH level-sensitive enable

ENTITY d_latch_vhdl IS

PORT(

d, ena : IN BIT;

q : OUT BIT);

END d_latch_vhdl;

Page 36: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

36

VHDL – D Latch – 2ARCHITECTURE a OF d_latch_vhdl IS

BEGIN

PROCESS ( d, ena)

BEGIN

IF ( ena = ‘1’) THEN

q <= d;

END IF;

END PROCESS;

END a;

Page 37: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

37

Instantiating a Latch Primitive• Primitive is contained in the Altera

library, in a package called maxplus2.• Component declaration in maxplus2

package.• Unnecessary to declare it in the file

used.

Page 38: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

38

VHDL – Latch Primitive – 1

-- latch_primitive.vhd

-- D latch with active-HIGH level-sensitive enable

LIBRARY ieee;

USE ieee.std_logic_1164.ALL;

LIBRARY altera;

USE altera.maxplus2.ALL;

Page 39: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

39

VHDL – Latch Primitive – 2

ENTITY latch_primitive IS

PORT(

d_in, enable : IN STD_LOGIC;

q_out : OUT STD_LOGIC);

END latch_primitive;

Page 40: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

40

VHDL – Latch Primitive – 3ARCHITECTURE a OF latch_primitive IS

BEGIN

-- Instantiate a latch from a QUARTUS II primitive

latch_primitive: latch

PORT MAP (d => d_in,

ena => enable,

q => q_out);

END a;

Page 41: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

41

Multibit Latches in VHDL• VHDL can be used to implement latches

with multiple D inputs and Q outputs and a common ENABLE line.– Use behavioral description with

STD_LOGIC_VECTOR types.– Use primitives – predefined components.– Use component from Library of Parameterized

Modules (LPM).

Page 42: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

42

VHDL – Latch LPM Component – 1 -- latch4_behavioral.vhd

-- D latch with active-HIGH level-sensitive enable

-- uses a latch component from the

-- Library of Parameterized Modules (LPM)

LIBRARY ieee;

USE ieee.std_logic_1164.ALL; --required for STD_LOGIC types

LIBRARY lpm;

USE lpm.lpm_components.ALL; -- Required for LPM components

Page 43: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

43

VHDL – Latch LPM Component – 2

ENTITY latch4_lpm IS

PORT(d_in : IN STD_LOGIC_VECTOR(3 downto 0);

enable : IN STD_LOGIC;

q_out : OUT STD_LOGIC_VECTOR(3 downto 0));

END latch4_lpm;

Page 44: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

44

VHDL – Latch LPM Component – 3 ARCHITECTURE a OF latch4_lpm IS

BEGIN

-- instantiate latch from an LPM component

latch4 : lpm_latch

GENERIC MAP (LPM_WIDTH => 4)

PORT MAP ( data => d_in,

gate => enable,

q => q_out);

END a;

Page 45: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

45

VHDL – Latch LPM Component – 4

Page 46: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

46

Flip-Flop Definition• A gated latch with a clock input.• The sequential circuit output changes

when its CLOCK input detects an edge.• Edge-sensitive instead of level-

sensitive.

Page 47: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

47

CLOCK Definitions• Positive edge:

– The transition from logic ‘0’ to logic ‘1’

• Negative edge:– The transition from logic ‘1’ to logic ‘0’

• Symbol is a triangle on the CLK (clock) input of a flip-flop.

Page 48: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

48

CLOCK Definitions

Page 49: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

49

CLOCK Definitions

Page 50: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

50

CLK D Qt+1 Function

↑ 0 0 1 RESET

↑ 1 1 0 SET

0 X Qt Inhibited

1 X Qt Inhibited

↓ X Qt Inhibited

Positive Edge-Triggered D Flip-Flop Function Table

1tQ

tQ

tQ

tQ

Page 51: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

51

Positive-Edge Triggered D Flip-Flop Function Table

Page 52: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

52

Edge Detector• A circuit that converts that active-edge

of a CLOCK input into a brief active-level pulse.

• Created using gate propagation delays.• Can be positive or negative edge.

Page 53: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

53

Edge Detector

Page 54: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

54

Latch/Flip-Flop Behavior• The LATCH transfers data from the data

inputs to Q on either a HIGH or LOW voltage level at the ENABLE input.

• The FLIP-FLOP transfers data from the data inputs to Q on either the POSITIVE (rising), or NEGATIVE (falling) edge of the clock.

Page 55: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

55

Latch/Flip-Flop Behavior

Page 56: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

56

Latch/Flip-Flop Behavior

Page 57: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

57

JK Flip-Flop• Two inputs with no illegal input states.• With J and K both HIGH, the flip-flop

toggles between opposite logic states with each applied clock pulse.

Page 58: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

58

JK Flip-Flop

Page 59: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

59

CLK J K Qt+1 Function

↓ 0 0 Qt No change

↓ 0 1 0 1 RESET

↓ 1 0 1 0 SET

↓ 1 1 Qt Toggle

0 X X Qt Inhibited

1 X X Qt Inhibited

↑ X X Qt Inhibited

Negative Edge-Triggered JK Flip-Flop Function Table

1tQ

tQtQ

tQ

tQ

tQ

Page 60: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

60

Negative Edge-Triggered JK Flip-Flop Function Table

Page 61: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

61

Toggle Applications• Used to divide an input frequency in

half.• By cascading toggling flip-flops, a

counter is created.

Page 62: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

62

Toggle Applications

Page 63: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

63

Toggle Applications

Page 64: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

64

Synchronous Versus Asynchronous Circuits

• Synchronous circuits have sequential elements whose outputs change at the same time.

• Asynchronous circuits have sequential elements whose outputs change at different times.

Page 65: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

65

Synchronous Versus Asynchronous Circuits

Page 66: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

66

Synchronous Versus Asynchronous Circuits

Page 67: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

67

Disadvantages of Asynchronous Circuits

• Difficult to analyze operations.• Intermediate states that are not part of

the desired design may be generated.

Page 68: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

68

Synchronous and Asynchronous Inputs

• Synchronous inputs of a flip-flop only affect the output on the active clock edge.

• Asynchronous inputs of a flip-flop change the output immediately.

• Asynchronous inputs override synchronous inputs.

Page 69: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

69

Flip-Flop Asynchronous Inputs• Preset:

– An asynchronous set function, usually designated as

• Clear:– An asynchronous reset function, usually

designated as

• Both Preset and Clear usually have LOW input active levels.

PRE

CLR

Page 70: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

70

Flip-Flop Asynchronous Inputs

Page 71: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

71

CLK J K Qt+1 Function

0 1 X X X 1 0 PRESET

1 0 X X X 0 1 Clear

0 0 X X X 1 1 Forbidden

1 1 Flip-Flop Operates Synchronously

JK Flip-Flop Asynchronous Inputs Function Table

PRE 1tQCLR

Page 72: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

72

JK Flip-Flop Asynchronous Inputs Function Table

Page 73: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

73

Unused Preset and Clear Inputs• Disable by connecting to a logic HIGH

(for active-LOW inputs).• In Quartus II the asynchronous inputs of

all flip-flop primitives are set to a default level of HIGH.

Page 74: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

74

Master Reset• An asynchronous input used to set a

sequential circuit to a known initial state.• Usually a RESET tied to the inputs

of all flip-flops.• When activated, the output of the

sequential circuit goes LOW.

CLR

Page 75: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

75

Master Reset

Page 76: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

76

Master Reset

Page 77: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

77

T (Toggle) Flip-Flop• Output toggles on each applied clock

pulse when a synchronous input is active.

• Synchronous input is designated as ‘T’.

Page 78: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

78

T (Toggle) Flip-Flop

Page 79: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

79

CLK T Qt+1 Function

↑ 0 No change

↑ 1 Toggle

0 X Qt Inhibited

1 X Qt Inhibited

↓ X Qt Inhibited

T Flip-Flop Function Table

tQ

tQ

Page 80: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

80

T Flip-Flop Function Table

Page 81: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

81

Flip-Flops in PLDs• Flip-flops are usually found in PLDs as

registered outputs.• A registered output of a PLD is defined

as an output having a flip-flop (usually D-type) that stores the output state.

Page 82: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

82

Generic Array Logic (GAL)• GAL:

– A PLD whose outputs can be configured as combinational or registered

• Programming matrix is designed with electrically erasable logic cells.

Page 83: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

83

Generic Array Logic – Macrocell• I/O circuit that can be configured as a

registered output, a combinational output, or a dedicated input as required.

• Outputs can also be specified as active-HIGH or active-LOW.

Page 84: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

84

Generic Array Logic – Macrocell

Page 85: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

85

Generic Array Logic – Macrocell

Page 86: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

86

Generic Array Logic – Macrocell

Page 87: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

87

MAX 7000S CPLD – 1• Max 7000 CPLD family of devices is

manufactured by Altera.• EPM7128SLC84-7 is one of two

devices installed on the UP-1 and UP-2 Boards.

• The device is in-circuit programmable.

Page 88: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

88

MAX 7000S CPLD – 2• Constructed of a series of Logic Array

Blocks (LABs) interconnected by a Programmable Interconnect Array (PIA).

• Each LAB has 16 macrocells with similar I/O and programming capability to a low-density PLD.

• Refer to Figure 8.87 of the text.

Page 89: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

89

EPM7128SLC84-7

EPM7 Max 7000 FAMILY

128 Number of macrocells

S In-system programmable

84 84-pin PLCC package

7 Speed grade

Page 90: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

90

Function Pins

VCC 8

Ground 8

JTAG port 4

GCLK1 1

OE1 1

GCLRn 1

GCLK2/OE2 1

User I/Os 60

Total pins 84

EPM7128SLC84-7 Pin Summary

Page 91: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

91

FLEX 10K CPLD – 1• Volatile:

– Does not retain stored information after the power has been removed

• PLD based on look-up table architecture (LUT).

• A number of storage elements are used to synthesize logic functions by storing each function as a truth table.

Page 92: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

92

FLEX 10K CPLD – 2

Page 93: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

93

FLEX 10K CPLD – 3

Page 94: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

94

FLEX 10K Logic Element (LE)• Performs a function similar to that of a

macrocell in SOP-type PLDs.• A 16-bit storage element that has

circuitry to select various control functions.

Page 95: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

95

LE Control Functions• Clock and reset.• Flip-flop register outputs.• Cascade and carry.• Interconnections to local and global

busses.

Page 96: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

96

LE Control Functions

Page 97: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

97

EPF10K70RC240-4• On the UP-2 board.• 468 LABs (3744 Logic Elements).• 9 EABs (18,432 bits).

Page 98: Chapter 8 Introduction to Sequential Logic. 2 Sequential Circuit A digital circuit whose output depends not only on the present combination of input,

98

EPF10K70RC240-4