Difference with latch: output changes on (not after) falling clock edge

Similar documents
Read-only memory (ROM) Digital logic: ALUs Sequential logic circuits. Don't cares. Bus

Combinational vs Sequential

ROM MEMORY AND DECODERS

EECS 270 Final Exam Spring 2012

COMP2611: Computer Organization. Introduction to Digital Logic

1. Convert the decimal number to binary, octal, and hexadecimal.

Sequencing. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall,

Memory elements. Topics. Memory element terminology. Variations in memory elements. Clock terminology. Memory element parameters. clock.

CSE140L: Components and Design Techniques for Digital Systems Lab. FSMs. Tajana Simunic Rosing. Source: Vahid, Katz

Chapter 7 Memory and Programmable Logic

11. Sequential Elements

Hardware Design I Chap. 5 Memory elements


Sequential Circuit Design: Part 1

CSE 140 Exam #3 Tajana Simunic Rosing

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Sequential Circuit Design: Part 1

Computer Architecture and Organization

FSM Cookbook. 1. Introduction. 2. What Functional Information Must be Modeled

Principles of Computer Architecture. Appendix A: Digital Logic

Lecture 11: Synchronous Sequential Logic

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

ECE 263 Digital Systems, Fall 2015

CPS311 Lecture: Sequential Circuits

CS 110 Computer Architecture. Finite State Machines, Functional Units. Instructor: Sören Schwertfeger.

Copyright 2011 by Enoch Hwang, Ph.D. and Global Specialties. All rights reserved. Printed in Taiwan.

Lecture 8: Sequential Logic

Memory, Latches, & Registers

WINTER 14 EXAMINATION

Chapter 2. Digital Circuits

EECS 270 Midterm 2 Exam Closed book portion Fall 2014

CSE 140 Exam #3 Solution Tajana Simunic Rosing

EECS 270 Group Homework 4 Due Friday. June half credit if turned in by June

Chapter 5: Synchronous Sequential Logic

BUSES IN COMPUTER ARCHITECTURE

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

EE 447/547 VLSI Design. Lecture 9: Sequential Circuits. VLSI Design EE 447/547 Sequential circuits 1

More Digital Circuits

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

Logic Design ( Part 3) Sequential Logic (Chapter 3)

Lecture 10: Sequential Circuits

D Latch (Transparent Latch)

STATIC RANDOM-ACCESS MEMORY

Chapter 5 Synchronous Sequential Logic

CHAPTER 4: Logic Circuits

CS8803: Advanced Digital Design for Embedded Hardware

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

CHAPTER 4: Logic Circuits

CS3350B Computer Architecture Winter 2015

Digital Fundamentals: A Systems Approach

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3)

VU Mobile Powered by S NO Group

Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs)

Chapter Contents. Appendix A: Digital Logic. Some Definitions

Digital Integrated Circuits EECS 312

Experiment # 12. Traffic Light Controller

CHAPTER1: Digital Logic Circuits

For Teacher's Use Only Q Total No. Marks. Q No Q No Q No

VLSI Design: 3) Explain the various MOSFET Capacitances & their significance. 4) Draw a CMOS Inverter. Explain its transfer characteristics

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

IT T35 Digital system desigm y - ii /s - iii

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

Clock - key to synchronous systems. Topic 7. Clocking Strategies in VLSI Systems. Latch vs Flip-Flop. Clock for timing synchronization

Clock - key to synchronous systems. Lecture 7. Clocking Strategies in VLSI Systems. Latch vs Flip-Flop. Clock for timing synchronization

Register Transfer Level (RTL) Design Cont.

Testing Sequential Circuits

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

IE1204 Digital Design. F11: Programmable Logic, VHDL for Sequential Circuits. Masoumeh (Azin) Ebrahimi

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

ECEN454 Digital Integrated Circuit Design. Sequential Circuits. Sequencing. Output depends on current inputs

1.b. Realize a 5-input NOR function using 2-input NOR gates only.

Sequential Logic. Introduction to Computer Yung-Yu Chuang

Chapter 3: Sequential Logic

WEEK 10. Sequential Circuits: Analysis and Design. Page 1

A Low Power Delay Buffer Using Gated Driver Tree

CS/ECE 250: Computer Architecture. Basics of Logic Design: ALU, Storage, Tristate. Benjamin Lee

Part 4: Introduction to Sequential Logic. Basic Sequential structure. Positive-edge-triggered D flip-flop. Flip-flops classified by inputs

Digital Electronics Course Outline

Bachelor of Technology (Electronics and Instrumentation Engg.)

55:131 Introduction to VLSI Design Project #1 -- Fall 2009 Counter built from NAND gates, timing Due Date: Friday October 9, 2009.

Introduction to CMOS VLSI Design (E158) Lecture 11: Decoders and Delay Estimation

Figure 1: segment of an unprogrammed and programmed PAL.

Agenda. EE 260: Introduction to Digital Design Counters and Registers. Asynchronous (Ripple) Counters. Asynchronous (Ripple) Counters

Slide Set 6. for ENCM 369 Winter 2018 Section 01. Steve Norman, PhD, PEng

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

Combinational / Sequential Logic

6. Sequential Logic Flip-Flops

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Asynchronous (Ripple) Counters

Logic Design. Flip Flops, Registers and Counters

EECS150 - Digital Design Lecture 15 Finite State Machines. Announcements

Chapter 18. DRAM Circuitry Discussion. Block Diagram Description. DRAM Circuitry 113

Chapter 11 State Machine Design

Lecture 11: Sequential Circuit Design

IE1204 Digital Design F11: Programmable Logic, VHDL for Sequential Circuits

Microprocessor Design

Transcription:

Falling-edge flip-flop Difference with latch: output changes on (not after) falling clock edge 53

Falling-edge flip-flop Clocked operation: Note clock edges. 54

Falling-edge flip-flop Data must be valid before falling edge of clock and must stay valid until output is set (propagation). Setup and hold time. 55

Register files Think MIPS: Registers can be read and written in one instruction (often possible in one clock cycle) One instruction can, at most, read two registers and write one register To address registers we need a number. This points us to chose a decoder and a multiplexer. Need two inputs, one output We also need memory. This points us to Data flip-flops If we read a register, number suffices. If we write a register, we also need data and a decoder 56

Register file simplified 57

Register read ports Register number selects register in decoder AND gate in multiplexer outputs one selected register 58

Register write port Write signal activates write operation Each register implemented with flipflops Remember, flip-flops change on the clock edge This enables simultaneous read and write in one cycle 59

Random Access Memories Two flavours: SRAM: data stored statically (as in flip-flops) DRAM: data stored but needs to be refreshed continuously SRAM is the material used for caches DRAM used for main memory 60

SRAM Array of memory cells Fixed time to any datum Characterized by two values: How many entries, e.g. 4M How many bits per entry, e.g. 8 bits. Entries define the number of address lines Example:4M x 8, 4M=2 22, need 22 address lines, 8-bit input line, 8-bit output line 61

SRAM Example 2M x 16 2-4 ns latency for thin SRAMs 8-20ns for thick SRAMS Setup and hold times for writes Can not implement with MUX! (too expensive) 62

Tri-state buffers Selects one output Enables memory cells (flip-flops) to share an output line Has a highimpendance state to disable cell output 63

Small SRAM example (4 by 2) 64

Large SRAM with feasible decoder 65

DRAM SRAMs expensive (flip-flop per bit of output) 4-6 transistors for the needed logic gates DRAM concept Use single transistor per cell, which is either charged or not charged Charge can be stored in a capacitor, which unfortunately loses charge with time Needs refreshing, hence the term dynamic RAM. Refreshing amounts to reading and writing back the content Charge can be kept for several ms. Memory controller responsible for refreshing Refresh operations need to overlap with normal read-write accesses 66

Two-level DRAM access Row decoder 1-to-2048 2048 x 2048 array Address [21-11] Address[10-0] Column latches Mux Dout 67

Finite state machines Systems with state, which depends on both the inputs and the previous state of the system Two functions: next state and output States correspond to all possible values of internal storage (n bits, 2 n states) Output combines current state and inputs. Moore machines and Mealy machines We discuss synchronous state machines, controlled with a clock 68

State machine 69

Example: traffic light Traffic lights in north-south, east-west intersection NSlite, EWlite signals that assert green light in each direction NScar, EWcar signals from sensors detecting car presence in each direction Rules: Light changes to green if car waiting; otherwise green light is the one of the last car that crossed the intersection Assume 30 seconds cycle in each direction Need two states, NSgreen, EWgreen 70

State and output functions Current state nscar ewcar next state nsgreen 0 0 nsgreen nsgreen 0 1 ewgreen nsgreen 1 0 nsgreen nsgreen 1 1 ewgreen ewgreen 0 0 ewgreen ewgreen 0 1 ewgreen ewgreen 1 0 nsgreen ewgreen 1 1 nsgreen Output function nslite ewlite nsgreen 1 0 ewgreen 0 1 71

Graphical representation of FSM 72

FSM implementation 73

FSM Implementation State assignment, let nsgreen=0, ewgreen=1 NextState=CurrentState EWcar CurrentState NScar NSlite=CurrentState EWlite=CurrentState 74