Sequential circuits Analysis March 13, 2020 Patrice Belleville / - - PowerPoint PPT Presentation

sequential circuits
SMART_READER_LITE
LIVE PREVIEW

Sequential circuits Analysis March 13, 2020 Patrice Belleville / - - PowerPoint PPT Presentation

Sequential circuits Analysis March 13, 2020 Patrice Belleville / Geoffrey Tien 1 Announcements Midterm 2: Tuesday, March 17, 17:00 18:15 (75 minutes) Last names A to K: WOOD 2 Last names L to S: CIRS 1250 Last names T to Z:


slide-1
SLIDE 1

Sequential circuits

Analysis

March 13, 2020 Patrice Belleville / Geoffrey Tien 1

slide-2
SLIDE 2

Announcements

  • Midterm 2: Tuesday, March 17, 17:00–18:15 (75 minutes)

– Last names A to K: WOOD 2 – Last names L to S: CIRS 1250 – Last names T to Z: ESB 1013

  • Coverage: Modules 5 to 9 (up to the end of Friday’s class) +

Labs 4 to 7

– Predicate logic, sets, inferences with predicate logic, proof techniques, sequential circuits

  • See Piazza for details, course webpage for past quizzes and

midterms

March 13, 2020 Patrice Belleville / Geoffrey Tien 2

slide-3
SLIDE 3

Latches vs flip-flops

  • Latches are level-triggered

– state can change any time the control/enable is at a particular level (high or low)

  • Flip-flops are edge-triggered

– state can change only when the control input changes level (low to high or high to low)

March 13, 2020 Patrice Belleville / Geoffrey Tien 3

Trigger warning!

Time D C 𝑅1 𝑅2 𝑅1 𝑅2

slide-4
SLIDE 4

Level trigger vs. edge trigger

  • More complex sequential systems often involve multiple

"memory" bits that must all operate and change at the same time

– each memory bit may be affected by logic pathways of different lengths and hence different amounts of gate delay

  • Connecting multiple edge-triggered sequential devices to a

common control signal allows different pathways to stabilize in varying amounts of time

– once all sequential inputs are known to have stabilized (fully propagated through combinational components), the control signal activates all connected sequential devices at once, and inputs are processed only at the moment of activation

March 13, 2020 Patrice Belleville / Geoffrey Tien 4

slide-5
SLIDE 5

Sequential circuit analysis

  • Consider the following circuit. What is its behaviour on each

clock cycle?

March 13, 2020 Patrice Belleville / Geoffrey Tien 5

Worksheet

slide-6
SLIDE 6

Sequential circuit analysis

  • Sequential circuits consist of latches/flip-flops and

combinational components

– combination circuits may produce outputs that are connected to the input signals of flip-flops

  • the Boolean functions for these are called flip-flop input equations

March 13, 2020 Patrice Belleville / Geoffrey Tien 6

Input equations

Input equations: 𝑒1 = 𝑦 ∧ ~𝑅1 𝑒0 = 𝑅1 ∨ ~𝑅0

– The variable for the Boolean function's output is usually denoted by the flip-flop input label with a numbered subscript – This function fully specifies the combinational logic which drives the flip-flop's behaviour in the overall sequential system – e.g.

slide-7
SLIDE 7

Sequential circuit analysis

March 13, 2020 Patrice Belleville / Geoffrey Tien 7

Example – input equations

𝑅1 𝑅0 𝑦 𝑧 𝑒1 𝑒0 𝑅1

+

𝑅0

+

1 1 1 1 1 1 1 1 1 1 1 1 functional description: 𝑅1 𝑅0 𝑦 𝑅1

+

𝑅0

+

1 1 1 1 1 1 1 1 1 1 1 1 x Q1 Q0

slide-8
SLIDE 8

Exercise

  • Determine the behaviour of the following sequential system:

March 13, 2020 Patrice Belleville / Geoffrey Tien 8

Sequential circuit analysis

slide-9
SLIDE 9

Sequential circuits

Design

March 13, 2020 Patrice Belleville / Geoffrey Tien 9

slide-10
SLIDE 10

Sequential circuit design

  • All of the same techniques of design and analysis from

combinational circuits also apply to sequential design

– Karnaugh maps, recognizers, etc. – Now, the system state (flip-flop outputs) are included as "inputs"

  • We start with a specification of the states, transitions, inputs,

and sequential devices to be used in the construction

– based on the understood behaviour of the sequential device (e.g. D flip- flop or register), and the required transition, determine the inputs necessary to cause the required transition to occur

March 13, 2020 Patrice Belleville / Geoffrey Tien 10

slide-11
SLIDE 11

Sequential circuit design

  • Example: design a sequential system with two bits of state and

two external inputs, 𝑣𝑞 and 𝑒𝑜, with the following behaviour:

– do nothing when 𝑣𝑞 = 0 and 𝑒𝑜 = 0 – Reset state to 0 when 𝑣𝑞 = 1 and 𝑒𝑜 = 1 – increment the state when 𝑣𝑞 = 1 and 𝑒𝑜 = 0 – decrement the state when 𝑣𝑞 = 0 and 𝑒𝑜 = 1

  • An up/down counter with reset

March 13, 2020 Patrice Belleville / Geoffrey Tien 11

slide-12
SLIDE 12

Sequential circuit design

  • Approach 1: individual bits of state implemented using D flip-

flops

– Construct a truth table

  • current state and external inputs as "input"
  • next state as "output"
  • determine propositional logic statements/functions to produce the

necessary transition from each current state to the next state.

March 13, 2020 Patrice Belleville / Geoffrey Tien 12

Up/down counter with reset

slide-13
SLIDE 13

Sequential circuit design

March 13, 2020 Patrice Belleville / Geoffrey Tien 13

Up/down counter with reset – approach 1

𝑹𝟐 𝑹𝟏 𝒗𝒒 𝒆𝒐 𝑹𝟐

+

𝑹𝟏

+

𝒆𝟐 𝒆𝟏 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

The 𝑒 columns will be the same as the 𝑅+ columns