Digital Design - Sequential Logic Design

Slides:



Advertisements
Similar presentations
Changes in input values are reflected immediately (subject to the speed of light and electrical delays) on the outputs Each gate has an associated “electrical.
Advertisements

1 Introduction Sequential circuit –Output depends not just on present inputs (as in combinational circuit), but on past sequence of inputs Stores bits,
Sequential Logic ENEL 111. Sequential Logic Circuits So far we have only considered circuits where the output is purely a function of the inputs With.
Digital Design - Sequential Logic Design Chapter 3 - Sequential Logic Design.
1 Fundamentals of Computer Science Sequential Circuits.
CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Digital Logic Design Lecture # 17 University of Tehran.
Circuits require memory to store intermediate data
ECE 424 – Introduction to VLSI Design Emre Yengel Department of Electrical and Communication Engineering Fall 2014.
Sequential Logic Design Process A sequential circuit that controls Boolean outputs and a specific time- ordered behavior is called a controller. StepDescription.
Basic Register Typically, we store multi-bit items
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Digital Computer Design Fundamental
COE 202: Digital Logic Design Sequential Circuits Part 1
Introduction to Sequential Logic Design Finite State-Machine Design.
Computer Organization & Programming Chapter 5 Synchronous Components.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Latches & Flip-Flops.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
CSE 140: Components and Design Techniques for Digital Systems Lecture 7: Sequential Networks CK Cheng Dept. of Computer Science and Engineering University.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
LATCHED, FLIP-FLOPS,AND TIMERS
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Chapter #6: Sequential Logic Design
Computer Organization
Lecture 8 Dr. Nermi Hamza.
Instructor: Alexander Stoytchev
Prof. Hsien-Hsin Sean Lee
Learning Outcome By the end of this chapter, students are expected to refresh their knowledge on sequential logic related to HDL.
Flip Flops.
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
Synchronous Sequential Circuits
Flip-Flop.
6. Sequential circuits (v2)
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
Sequential Logic Jess 2006.
Sequential Logic and Flip Flops
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Introduction to Sequential Logic Design
Sequential Circuits: Flip-Flops
332:437 Lecture 12 Finite State Machine Design
Digital Logic Design Sequential Circuits (Chapter 6)
Sequential Circuits: Latches
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
Sequential Logic and Flip Flops
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
Synchronous Sequential Circuits
Instructor: Alexander Stoytchev
CSE 370 – Winter Sequential Logic - 1
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Introduction to Sequential Circuits
CSE 370 – Winter Sequential Logic-2 - 1
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Sequential Circuits: Latches
Instructor: Alexander Stoytchev
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
FLIP-FLOPS.
Flip-Flops.
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Instructor: Alexander Stoytchev
SEQUENTIAL CIRCUITS __________________________________________________
Sequential Digital Circuits
Lecture 4 Sequential units. Registers
Lecture 3: Timing & Sequential Circuits
Presentation transcript:

Digital Design - Sequential Logic Design Chapter 3 - Sequential Logic Design

Digital Design Sequential Logic Design Figure 3.1 Flight-attendant call-button system. Pressing Call turns on the light, which stays on after Call is released. Pressing Cancel turns off the light.

Digital Design Sequential Logic Design Figure 3.2 First (failed) attempt at using feedback to store a bit. Figure 3.3 Tracing the behavior of our first attempt at bit storage.

Digital Design Sequential Logic Design Figure 3.5 SR latch when S=0 and R=1 Figure 3.4 Basic SR Latch Figure 3.6 SR latch when S=0 and R=0

Digital Design Sequential Logic Design Figure 3.7 SR latch when S=1 and R=0 Figure 3.4 Basic SR Latch Figure 3.8 SR latch when S=0 and R=0

Digital Design Sequential Logic Design Figure 3.9 Flight attendant call-button system using a basic SR latch.

Digital Design Sequential Logic Design Figure 3.10 S=1 and R=1 causes problems -- Q oscillates. Figure 3.11 Q eventually settles to either 0 or 1, due to race condition.

Digital Design Sequential Logic Design Figure 3.12 Conceptually, S and R can’t both be 1 in this sample circuit. But in reality, they can, due to the delay of the inverter and AND gate. Figure 3.13 Gate delays can cause SR=11.

Digital Design Sequential Logic Design Figure 3.14/3.15 Level-sensitive SR latch -- an SR latch with enable input C.

Digital Design Sequential Logic Design Figure 3.16 Symbol for dual-output level-sensitive SR latch.

Digital Design Sequential Logic Design Figure 3.17 An example of a clock signal named Clk. Circuit inputs should only change while Clk=0, such that latch inputs will be stable when Clk=1.

Digital Design Sequential Logic Design Figure 3.20 A problem with latches -- through how many latches will Y propoagate for each pulse of Clk_A? For Clk_B? Figure 3.18 D latch. Figure 3.19 D latch symbol.

Digital Design Sequential Logic Design Figure 3.21 A problem with level-sensitive latches

Digital Design Sequential Logic Design Figure 3.23 A D flip-flop implementing an edge-triggered bit storage block, internally using two latches in a master-slave arrangement.

Digital Design Sequential Logic Design Figure 3.24 Using D flip-flops, we now know through how many flip-flops Y will propagate for Clk_A and for Clk_B -- one flip-flop exactly per pulse, for either clock signal.

Digital Design Sequential Logic Design Figure 3.25 Positive (shown on the left) and negative (right) edge-triggered D flip-flops. The sideways triangle input represents an edge-triggered clock input.

Digital Design Sequential Logic Design Figure 3.26 Latch versus flip-flop timing.

Digital Design Sequential Logic Design Table 3.1 D truth table for call-button system. Figure 3.27 Flight attendant call-button system using a D flip-flop.

Digital Design Sequential Logic Design Level-sensitiveSR latch D flip-flop S (set) SR latch S D S D latch S1 D D latch D latch Q’ Dm Qm Ds Qs’ C C Cm Cs Q Qs Q Q Q master slave R R (reset) R1 R Clk : SR can’t be 11 Feature: Only loads D Feature : S=1 sets Feature Feature : S and R only Q to 1, R=1 if D is stable before and value present at rising have effect when C=1. resets Q to 0. while C=1, and will be clock edge, so values We can design outside : SR=11 11 for only a brief glitch can’t propagate to other Problem circuit so SR=11 even if D changes while flip-flops during same yield undefined never happens when Q. C=1. Problem : C=1 too clock cycle. Tradeoff : C=1. Problem : long propagates new uses more gates avoiding SR=11 can values through too many internally than D latch, be a burden. latches; too short may and requires more not enable a store. external gates than SR-- but gate count is less of an issue today. Figure 3.28 Increasingly-better bit storage blocks, leading to the D flip-flop.

Digital Design Sequential Logic Design Figure 3.29 A basic 4-bit register internal design (left) and block symbol (right).

Digital Design Sequential Logic Design Figure 3.30 Temperature history display system. Figure 3.31 Internal design of the TemperatureHistoryStorage component.

Digital Design Sequential Logic Design Figure 3.32 Example of values in the TemperatureHistoryStorage registers. One particular data item, 18, is shown moving through the registers on each clock cycle.

Digital Design Sequential Logic Design Figure 3.33 Laser Timer System Figure 3.34 First (bad) attempt to implement the laser surgery system.

Digital Design Sequential Logic Design Figure 3.35 A simple state diagram (left) and the timing diagram describing the state diagram’s behavior (right).

Digital Design Sequential Logic Design Figure 3.36 Three-cycles-high system: state diagram (left), timing diagram (right).

Digital Design Sequential Logic Design Figure 3.37 Three-cycles-high system: state diagram (left), timing diagram (right).

Digital Design Sequential Logic Design Finite-state machine, or FSM, consists of several things: A set of states. Our example had four states: {On1, On2, On3, Off}. A set of inputs, and a set of outputs. Our example had one input: {b}, and one output: {x}. An initial state, namely, a state to start in when we power up the system. Our example’s initial state was Off. A description of the next state to go to based on the current state and the values of the inputs. Our example used directed edges with associated input conditions to tell us the next state. Those edges with conditions are known as transitions. A description of what output values to generate in each state. Our example assigns a value to x in every state. Assigning an output in an FSM is known as an action.

Digital Design Sequential Logic Design Figure 3.38 Laser timer state diagram assuming every transition is ANDed with a rising clock.

Digital Design Sequential Logic Design Figure 3.39 Why are the heads of keys getting thicker? Note that the key on the right is thicker than the key on the left. The key on the right has a computer chip inside that sends an identifier to the car’s computer, thus helping to reduce car thefts.. Figure 3.40 Secure car key FSM. Figure 3.41 Secure car key timing diagram.

Digital Design Sequential Logic Design Figure 3.44 Code detector FSM.

Digital Design Sequential Logic Design Figure 3.45 Improved code detector FSM.

Digital Design Sequential Logic Design Figure 3.46 Standard controller architecture for the laser timer.

Digital Design Sequential Logic Design State register Combinational logic S N clk I O F M o u t p s i n Figure 3.47 Standard controller architecture -- general view.

Digital Design Sequential Logic Design Table 3.2 Five-step process for designing a controller.

Digital Design Sequential Logic Design Step 1: Capture the FSM Step 2: Create the architecture State register Combinational logic S N clk I O Outputs FSM Inputs Example: Three-cycles-high laser timer controller.

Digital Design Sequential Logic Design Step 3: Encode the states Step 4: Create the state table Example: Three-cycles-high laser timer controller.

Digital Design Sequential Logic Design Step 5: Implement the combinational logic Example: Three-cycles-high laser timer controller.

Digital Design Sequential Logic Design Figure 3.50 Tracing the behavior of the three-cycles-high laser timer controller.

Digital Design Sequential Logic Design Figure 3.51 Desired timing diagram of the button press synchronizer.

Digital Design Sequential Logic Design Figure 3.52 Button press synchronizer design steps: (a) initial FSM, (b) architecture, (c) FSM with encoded states, (d) state table, (e) final circuit with implemented combinational logic.

Digital Design Sequential Logic Design Step 1: Capture the FSM Step 2: Create the architecture Figure 3.53 Sequence generator FSM. Figure 3.54 Sequence generator controller architecture.

Digital Design Sequential Logic Design Step 3: Encode the states A: 00, B: 01, C: 10, D: 11 Step 4: Create the state table Step 5: Implement the combinational logic Figure 3.55 Sequence generator controller architecture.

Digital Design Sequential Logic Design Step 1: Capture the FSM Step 2: Create the architecture Figure 3.40 Secure car key FSM. Figure 3.56 Secure car key controller architecture.

Digital Design Sequential Logic Design Step 3: Encode the states Step 4: Create the state table

Digital Design Sequential Logic Design Figure 3.58 Setup time violation.

Digital Design Sequential Logic Design Figure 3.59 D flip-flop with asynchronous reset AR (left), and with asychronous set (right). Figure 3.60 Asynchronous reset forces the flip-flop to 0, independent of clk or D.

Digital Design Sequential Logic Design Figure 3.61 Three-cycles-high laser timer controller with a reset input that loads the state register with the initial state 00.

Digital Design Sequential Logic Design Figure 3.62 Pacemaker with leads (left), and pacemaker’s location under the skin (right). Courtesy of Medtronic, Inc. Figure 3.63 A basic pacemaker’s controller FSM.

Digital Design Sequential Logic Design Figure 3.64 An atrioventricular pacemaker’s controller FSM (using the convention that FSM outputs not explicitly set in a state are implicitly set to 0).