COMP541 Sequential Circuits - PowerPoint PPT Presentation

About This Presentation
Title:

COMP541 Sequential Circuits

Description:

Title: Lecture 6 Author: Montek Singh Last modified by: Montek Singh Created Date: 3/13/2000 2:52:39 AM Document presentation format: Letter Paper (8.5x11 in) – PowerPoint PPT presentation

Number of Views:48
Avg rating:3.0/5.0
Slides: 31
Provided by: Montek3
Learn more at: http://www.cs.unc.edu
Category:

less

Transcript and Presenter's Notes

Title: COMP541 Sequential Circuits


1
COMP541Sequential Circuits
  • Montek Singh
  • Feb 1, 2007

2
Administrative
  • Advance Notice
  • Test Week of Feb 19-23
  • Covers material through Thursday 2/15
  • Short review session on 2/15 in class

3
Topics
  • Sequential Circuits
  • Latches
  • Flip Flops
  • Verilog for sequential design

4
Sequential Circuits
  • State of system is info stored
  • That, and inputs, determine outputs

5
Types of Sequential Circuits
  • Synchronous
  • State changes synchronized by one or more clocks
  • Asynchronous
  • Changes occur independently

6
Clocking of Synchronous
  • Changes enabled by clock

7
Comparison
  • Synchronous
  • Easier to analyze because can factor out gate
    delays
  • Set clock so changes occur before next clock
    pulse
  • Asynchronous
  • Potentially faster
  • Harder to analyze (more subtle, but more
    powerful!)
  • Most of my research!
  • Will look mostly at synchronous

8
Basic Storage
  • Apply low or high for longer than tpd
  • Feedback will hold value

9
SR (set-reset) Latches
  • Basic storage made from gates
  • S R both 0 in resting state
  • Have to keep both from 1 at same time

10
Operation
11
Latch
  • Similar made from NANDs

12
Add Control Input
  • Gates when state can change
  • Is there latch w/ no illegal state?

13
D-type Latch
  • No illegal state

14
Transparency of latches
  • As long as C (the control ) is high, state can
    change
  • This is called transparency
  • Whats problem with that?

15
Effects of Transparency
  • Output of latch may feed back
  • May cause further state changes
  • Behavior depends on actual gate delays
  • Want to change latch state only once
  • Behavior should depend only on logical values

16
Solution to Transparency Flip-Flops
  • Flip-Flops
  • Ensure output changes only once per clock cycle
  • Two commonly-used types of flip-flops
  • Master-Slave
  • Use a sequence of two latches
  • Edge-Triggered
  • Implementation very different from latches

17
1. Master-Slave Flip-Flop
  • Either Master or Slave is enabled, not both

18
Timing Diagram
  • Trace the behavior
  • Note illegal state
  • Is it transparent?

19
Have We Fixed the Problem?
  • Output no longer transparent
  • Combinational circuit can use last values
  • New inputs appear at latches
  • Not sent to output until clock low
  • But changes at input of FF when clock high do
    trigger next state
  • Is this a problem?
  • As clock faster, more problems
  • Have to guarantee circuit settles while clock low

20
2. Edge-Triggered Flip-Flops
  • New state latched on clock transition
  • Low-to-high or high-to-low
  • ve edge-triggered, -ve edge-triggered
  • Also dual-edge-triggered
  • Changes when clock high are ignored
  • Note Master-Slave sometimes called pulse
    triggered

21
D-Type Edge-Triggered
  • Is this ve or ve edge-triggered?

22
Standard Symbols Latches
  • Circle at input indicates negation

23
Symbols Master-Slave
  • Inverted L indicates postponed output
  • Circle indicates whether enable is positive or
    negative
  • JK like an SR flip-flop, but
  • If JK1, output is toggled
  • Can make a toggle flip-flop (T flip-flop) from a
    JK

24
Symbols Edge-Triggered
  • Arrow indicates edge trigger

25
Direct Inputs
  • Use to force Set/Reset independent of clock
  • Direct set or preset
  • Direct reset or clear
  • Often used for power-up reset

26
Flip-Flop Timing
  • Setup time time that D must be steady before
    clock edge
  • Hold time time that D must continue to be
    steady after clock edge

27
Propagation Delay
  • Propagation delay time after edge until output
    becomes available

28
Clock Pulse Requirements
  • Determine the max clock frequency

29
In Passing Clock Gating and Skew
  • Can gate or freeze clocks
  • to keep any FF from changing states
  • Can help reduce power consumption
  • However, can cause clock skew
  • Clock edges at different times on different FFs
  • Clock skew also caused by wire lengths over chip

30
Next Time
  • State Diagrams
  • Sec. 6-4 and 6-5
  • Pages 258-275
  • Skip last part of 6-5
  • Verilog to describe state machines
Write a Comment
User Comments (0)
About PowerShow.com