CS M51A/EE M16 Winter’05 Section 1 Logic Design of Digital Systems Lecture 12 February 28 W’05 Yutao He yutao@cs.ucla.edu 4532B Boelter Hall http://courseweb.seas.ucla.edu/classView.php?term=05W&srs=187154200.

Slides:



Advertisements
Similar presentations
State-machine structure (Mealy)
Advertisements

Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
Circuits require memory to store intermediate data
Sequential Circuits and Finite State Machines Prof. Sin-Min Lee
So far, all of the logic circuits we have studied were basically based on the analysis and design of combinational digital circuits. The other major aspect.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Digital Computer Design Fundamental
Chap 4. Sequential Circuits
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
Review of Digital Logic Design Concepts OR: What I Need to Know from Digital Logic Design (EEL3705)

Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1.
COMBINATIONAL AND SEQUENTIAL CIRCUITS Guided By: Prof. P. B. Swadas Prepared By: BIRLA VISHVAKARMA MAHAVDYALAYA.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Digital Design: Sequential Logic Principles
Digital Design - Sequential Logic Design

2018/5/2 EE 4271 VLSI Design, Fall 2016 Sequential Circuits.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
Sequential Networks and Finite State Machines
LATCHED, FLIP-FLOPS,AND TIMERS
Chapter #6: Sequential Logic Design
Lecture 8 Dr. Nermi Hamza.
Learning Outcome By the end of this chapter, students are expected to refresh their knowledge on sequential logic related to HDL.
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
2018/8/29 EE 4271 VLSI Design, Fall 2013 Sequential Circuits.
Synchronous Sequential Circuits
Basic Delay in Gates Definitions
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Asynchronous Inputs of a Flip-Flop
Assistant Prof. Fareena Saqib Florida Institute of Technology
CSE 140 MT 2 Review By Daniel Knapp.
ECE Digital logic Lecture 16: Synchronous Sequential Logic
332:437 Lecture 12 Finite State Machine Design
Digital Logic Design Sequential Circuits (Chapter 6)
Sequential logic circuits
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.
CS M51A/EE M16 Winter’05 Section 1 Logic Design of Digital Systems Lecture 13 March 2 W’05 Yutao He 4532B Boelter Hall
Sequential Networks and Finite State Machines
LECTURE 15 – DIGITAL ELECTRONICS
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
Synchronous Sequential Circuits
Instructor: Alexander Stoytchev
Dr. Clincy Professor of CS
CSE 370 – Winter Sequential Logic - 1
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Instructor: Alexander Stoytchev
CSE 370 – Winter Sequential Logic-2 - 1
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
CS M51A/EE M16 Winter’05 Section 1 Logic Design of Digital Systems Lecture 16 March 14 W’05 Yutao He 4532B Boelter Hall
Instructor: Alexander Stoytchev
Synchronous sequential
Synchronous Sequential
ECE 352 Digital System Fundamentals
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Lecture 14: State Tables, Diagrams, Latches, and Flip Flop
Chapter 5 Sequential Circuits.
CS M51A/EE M16 Winter’05 Section 1 Logic Design of Digital Systems Lecture 11 February 23 W’05 Yutao He 4532B Boelter Hall
EGR 2131 Unit 12 Synchronous Sequential Circuits
CSE 370 – Winter Sequential Logic-2 - 1
2019/9/26 EE 4271 VLSI Design, Fall 2012 Sequential Circuits.
Presentation transcript:

CS M51A/EE M16 Winter’05 Section 1 Logic Design of Digital Systems Lecture 12 February 28 W’05 Yutao He yutao@cs.ucla.edu 4532B Boelter Hall http://courseweb.seas.ucla.edu/classView.php?term=05W&srs=187154200

Outline Midterm Reflection Review - Spec of Sequential Systems Chapter 8 Implementation of Sequential networks

Midterm Reflection Responses: Scaling Formula: Grading Policy: “Fair, reasonable but a bit long” “Didn’t spend too time on arithmetic due to overwhelming load” “BILL Gates really gave me hard time” Scaling Formula: Score =  Pi /0.95 + P9 Grading Policy: Consistent: Stick to the problem description Fair: wrong can’t take the same credit as right Reasonable: typo deserves more credit than conceptual error Lenient: Brave and sensible trying is given at least one point 8 i = 0

Highest: 101.87 Lowest: 26.32 Mean: 73.93 Median: 77.84 Midterm Statistics Highest: 101.87 Lowest: 26.32 Mean: 73.93 Median: 77.84 7 1

Midterm Coverage Anatomy Number Systems and Conversions - Negative Base 10 Base 2 Base 8 Base 16 - Positive Specification Truth Table K-Map S. E. - Function Equivalence Minimization - Boolean algebra - K-Map Based - Quine-McCluskey Algorithm Implementation - Gate networks (Universal Set) + two-level + multiple-level - PLAs AND-OR OR-AND NOR-NOR NAND-NAND Analysis - Functional Analysis -> Debugging - Delays: H-> L and L->H - Fan-out/Fan-in Prob. #1 Prob. #7 Prob. #2,8 Prob. #3, 4 Prob. #5, 9 Prob. #6

Midterm Coverage Anatomy (Cont.) Arithmetic o Signed Integer T.C. Form Positive True Negative Complement Conversion Addition Addition (Carry) Subtraction Complementation + Addition Multiplication Division Shift Left Right Out of Range Overflow . Range Extension . Detection Operation Prob. #6,7

Midterm: Final Words If you ask for reviewing your Midterm Write up your arguments and attach it with your Midterm Hand it over to me or Ken by March 7 (Monday) It’s not final yet If you did well, don’t slack off If you did poorly, don’t give up Only the final score counts. Please let me know your problem and we’ll work it out altogether

Recap - Spec of Sequential Systems Basic concepts Synchronous sequential systems Clocks States Finite state machines Mealy and Moore machines Basic specification methods Time behavior (I/O sequence) State transition table State diagram Basic problems State decision (word problem) The most difficult and challenging part Common sense and practice are important

Case Study 3: Controller A FSM that produces control signals as the states are traversed. Control signals determine actions performed by other parts of the system. Two types Autonomous State transitions follow a fixed sequence of states, independent of any inputs except the clock. Non-autonomous The transition is decided by external inputs

Vending Machine Controller

Vending Machine Controller (Cont’d)

Sequential Networks - Overview Canonical sequential networks Basic building blocks for sequential systems Latches Flip-flops D flip-flops SR flip-flops JK flip-flops T flip-flops Design of flip-flop networks Analysis of flip-flop networks

Canonical Sequential Networks

Mealy and Moore Machines Mealy Machine Moore Machine

Binary Canonical Form

Simplest Seq. Circuits with Feedback Two NOT gates form a static memory cell Will hold value as long as it has power applied "0" "1" "stored value" How to get a new value into the memory cell? Selectively break feedback path Load new value into cell "remember" "load" "data" "stored value"

Memory with Cross-Coupled Gates Cross-coupled NOR gates Similar to NOT gate pair, with capability to force output to 0 (reset=1) or 1 (set=1) R S Q Q' R S Q

Level-Sensitive (triggered) Gated Latch Latch: a sequential device that changes its outputs at any time, independent of a clock signal Level-Sensitive (triggered)

Gated Latch with Cross-Coupled Gates

Limitations of Gated Latch s(t+1) = s(t) x(t) Correct Timing Behavior Incorrect Timing Behavior Race Condition

A Solution: Edge-Trigged Cell Leading(rising)-edge-trigged (Positive-edge-trigged) Trailing (falling)-edge-trigged (Negative-edge-trigged)

Master-Slave Implementation Consists of two stages of gated latches Master and Slave Input is loaded into the master during the clock pulse Input is transferred to the slave after the clock pulse

Flip-Flop A sequential device that samples its inputs & changes its outputs only at times decided by a clock signal. Four basic types D flip-flop SR flip-flop T flip-flop JK flip-flop Four types of flip-flops differ in number of inputs excitation equation characteristic equation Each state bit is implemented with a flip-flop

Characteristic Equation D (Delay) Flip-Flop Block Diagram State Diagram Characteristic Equation Excitation Equation

SR(Set/Reset) Flip-Flop Block Diagram State Diagram Characteristic Equation Excitation Equation

Characteristic Equation T (Toggle) Flip-Flop Block Diagram State Diagram Characteristic Equation Excitation Equation

Characteristic Equation JK Flip-Flop Block Diagram State Diagram Characteristic Equation Excitation Equation

Design of Sequential Systems Decide: Inputs,Output, States, Function Step 1: Obtain: Formal Specification Step 2: Write: Output Table State Table Draw: State Diagram Step 3: Minimize: States Step 4: Encode: State Assignment Step 5: Implement:

Step 4: State Assignment Goal: Represent each state with a bit vector Basic question to ask: How many bits are required to represent states? Encoding schemes: Binary codes Other codes: Gray codes, etc. How to choose m out of n codes for encoding states?

Step 5: Implementation Construct a sequential network with specified memory elements and combinational logic Two types Canonical implementation Implementation with flip-flops For Canonical implementation Just use state registers (D flip-flops) to store states For other types of flip-flops Use the excitation tables

Example 8.1

Four 6-input switching functions Example 8.1(Cont’d) Four 6-input switching functions

Ex. 8.8 - Modulo-5 Counter Use T flip-flops to design a modulo-5 counter

Ex. 8.8 - Modulo-5 Counter (Cont’d) State Assignment 5, 6, and 7 are don’t cares! State Transition Table

Ex. 8.8 - Modulo-5 Counter (Cont’d) Q CLK x y2 y1 y0 To Be Designed Truth Tables for T0,T1,T2

Ex. 8.8 - Modulo-5 Counter (Cont’d) K-Maps Switching Expressions

Ex. 8.8 - Modulo-5 Counter (Cont’d)

Summary Midterm Recap Basic building blocks of sequential systems Gated latches flip-flops Design and implementation of sequential systems Canonical forms

Next Lecture Wrap-up Chapter 8 Design with one-hot approach Analysis of sequential networks Timing characteristics Timing analysis Functional analysis