Elements of Computing Systems, Nisan & Schocken, MIT Press, www.idc.ac.il/tecs, Chapter 3: Sequential Logic slide 1www.idc.ac.il/tecs Sequential Logic.

Slides:



Advertisements
Similar presentations
Chapter 4: Machine Language
Advertisements

Elements of Computing Systems, Nisan & Schocken, MIT Press, 2005, Chapter 1: Boolean Logic slide 1www.idc.ac.il/tecs Chapter 1: Boolean.
1 ITCS 3181 Logic and Computer Systems B. Wilkinson Slides9.ppt Modification date: March 30, 2015 Processor Design.
Slide 1CPU Emulator Tutorial This program is part of the software suite that accompanies the book The Digital Core, by Noam Nisan and Shimon Schocken 2003,
1 Fundamentals of Computer Science Sequential Circuits.
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
CPT 310 Logic and Computer Design Instructor: David LublinerPhone Engineering Technology Dept.Cell
Elements of Computing Systems, Nisan & Schocken, MIT Press, 2005, Chapter 5: Computer Architecture slide 1www.idc.ac.il/tecs Chapter.
Chapter 9 Memory Basics Henry Hexmoor1. 2 Memory Definitions  Memory ─ A collection of storage cells together with the necessary circuits to transfer.
ENGIN112 L30: Random Access Memory November 14, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 30 Random Access Memory (RAM)
Chapter 3 Continued Logic Gates Logic Chips Combinational Logic Sequential Logic Flip Flops Registers Memory Timing State Machines.
Overview Logic Combinational Logic Sequential Logic Storage Devices SR Flip-Flops D Flip Flops JK Flip Flops Registers Addressing Computer Memory.
Overview Recall Combinational Logic Sequential Logic Storage Devices
Lecture 4: Computer Memory
State Machines Timing Computer Bus Computer Performance Instruction Set Architectures RISC / CISC Machines.
CS 151 Digital Systems Design Lecture 30 Random Access Memory (RAM)
Chapter 6 Memory and Programmable Logic Devices
Elements of Computing Systems, Nisan & Schocken, MIT Press, 2005, Chapter 3: Sequential Logic slide 1www.idc.ac.il/tecs Chapter 3:
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Elements of Computing Systems, Nisan & Schocken, MIT Press, 2005, Introduction: Hello, World Below slide 1www.idc.ac.il/tecs Introduction:
Elements of Computing Systems, Nisan & Schocken, MIT Press, 2005, Chapter 10: Compiler I: Syntax Analysis slide 1www.idc.ac.il/tecs.
Elements of Computing Systems, Nisan & Schocken, MIT Press, 2005, Chapter 9: High Level Language slide 1www.idc.ac.il/tecs Chapter.
Elements of Computing Systems, Nisan & Schocken, MIT Press, 2005, Chapter 2: Boolean Logic slide 1www.idc.ac.il/tecs Chapter 2: Boolean.
Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 10: Compiler I: Syntax Analysis slide 1www.idc.ac.il/tecs Compiler.
ITEC 352 Lecture 24 Memory. Review Questions? Reminder: HW due on Wed. Night Intel 8080 CPU.
COE 202: Digital Logic Design Sequential Circuits Part 1
Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 4: Machine Language slide 1www.idc.ac.il/tecs Machine Language.
Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 6: Assembler slide 1www.idc.ac.il/tecs Assembler Elements of Computing.
Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 5: Computer Architecture slide 1www.idc.ac.il/tecs Computer Architecture.
Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 5: Computer Architecture slide 1www.nand2tetris.org Building a.
1 Lecture 32 Datapath Analysis. 2 Overview °Datapaths must deal with input and output data values Implement with tri-state buffers °Necessary to control.
Elements of Computing Systems, Nisan & Schocken, MIT Press, 2005, Chapter 11: Compiler II: Code Generation slide 1www.idc.ac.il/tecs.
Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 1: Boolean Logic slide 1www.nand2tetris.org Building a Modern.
Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 1: Boolean Logic slide 1www.idc.ac.il/tecs Boolean Logic Elements.
Lecture 9. MIPS Processor Design – Instruction Fetch Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System Education &
Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 2: Boolean Arithmetic slide 1www.nand2tetris.org Building a Modern.
Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 11: Compiler II: Code Generation slide 1www.nand2tetris.org Building.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 1www.nand2tetris.org Building a Modern.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits II.
Chapter 3 Digital Logic Structures. 3-2 Combinational vs. Sequential Combinational Circuit always gives the same output for a given set of inputs  ex:
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Latches & Flip-Flops.
CHAPTER-2 Fundamentals of Digital Logic. Digital Logic Digital electronic circuits are used to build computer hardware as well as other products (digital.
SEQUENTIAL LOGIC By Tom Fitch. Types of Circuits Combinational: Gates Combinational: Gates Sequential: Flip-Flops Sequential: Flip-Flops.
Building a Modern Computer From First Principles
Feb. 26, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 12: State Elements, Registers, and Memory * Jeremy R. Johnson Mon. Feb.
Sequential logic circuits
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 6: Assembler slide 1www.nand2tetris.org Building a Modern Computer.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
July 2, 2001Systems Architecture I1 Systems Architecture II (CS 282) Lab 3: State Elements, Registers, and Memory * Jeremy R. Johnson Monday July 2, 2001.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Latches, Flip Flops, and Memory ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin – Madison.
TOPIC : Introduction to Sequential Circuits UNIT 1: Modeling and Simulation Module 4 : Modeling Sequential Circuits.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Computer Science 210 Computer Organization
Computer Architecture & Operations I
Supplement on Verilog FF circuit examples
Computer Architecture & Operations I
Computer Science 210 Computer Organization
Virtual Machine Emulator Tutorial
Compiler I: Sytnax Analysis
Lecture 13: Sequential Circuits, FSM
Computer Science 210 Computer Organization
Lecture 13: Sequential Circuits, FSM
CSE 370 – Winter Sequential Logic - 1
CPU Emulator Tutorial This program is part of the software suite
Sequential Logic.
Lecture 14: State Tables, Diagrams, Latches, and Flip Flop
Presentation transcript:

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 1www.idc.ac.il/tecs Sequential Logic Elements of Computing Systems, Nisan & Schocken, MIT Press Usage and Copyright Notice: Copyright 2005 © Noam Nisan and Shimon Schocken This presentation contains lecture materials that accompany the textbook “The Elements of Computing Systems” by Noam Nisan & Shimon Schocken, MIT Press, We provide both PPT and PDF versions. The book web site, features 13 such presentations, one for each book chapter. Each presentation is designed to support about 3 hours of classroom or self-study instruction. You are welcome to use or edit this presentation as you see fit for instructional and non- commercial purposes. If you use our materials, we will appreciate it if you will include in them a reference to the book’s web site. If you have any questions or comments, you can reach us at

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 2www.idc.ac.il/tecs Sequential VS combinational logic Combinational devices: operate on data only; provide calculation services (e.g. Nand … ALU) Sequential devices: operate on data and a clock signal; as such, contain state and can ve made to provide storage and synchronization services Sequential devices are sometimes called “clocked devices” The low-level behavior of clocked / sequential gates is tricky The good news: All sequential chips can be based on one low-level sequential gate, called “data flip flop”, or DFF The complex clock-dependency details can be encapsulated at the low- level DFF level All the higher-level sequential chips can be built on top of the DFF using combinational logic only.

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 3www.idc.ac.il/tecs Lecture plan Clock A hierarchy of memory chips: Flip-flop gates Binary cells Registers RAM Counters Perspective.

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 4www.idc.ac.il/tecs The Clock In our jargon, a clock cycle = tick-phase (low), followed by a tock-phase (high) In real hardware, the clock is implemented by an oscillator In our hardware simulator, clock cycles can be simulated either Manually, by the user, or “Automatically,” by a test script. HW simulator demo

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 5www.idc.ac.il/tecs Flip-flop A fundamental state-keeping device For now, let us not worry about the DFF implementation Memory devices are made from numerous flip-flops, all regulated by the same master clock signal Notational convention: HW simulator demo DFFoutin out(t) = in(t-1)

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 6www.idc.ac.il/tecs 1-bit register (we call it “Bit”) Objective: build a storage unit that can: (a)Change its state to a given input (b)Maintain its state over time (until changed)

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 7www.idc.ac.il/tecs Bit (cont.) InterfaceImplementation HW simulator demo Load bit Read logic Write logic

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 8www.idc.ac.il/tecs Multi-bit registers Register’s width: a trivial parameter Read logic Write logic HW simulator demo

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 9www.idc.ac.il/tecs Aside: Hardware Simulation Relevant topics from the HW simulator tutorial: Clocked chips: When a clocked chip is loaded into the simulator, the clock icon is turned on, and the user can use it to control the clock Built-in chips: feature a standard HDL interface yet a Java implementation Provide behavioral simulation services May have GUI effects. HW simulator demo

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 10www.idc.ac.il/tecs Random Access Memory (RAM) Read logic Write logic. HW simulator demo

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 11www.idc.ac.il/tecs RAM interface

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 12www.idc.ac.il/tecs RAM anatomy Recursive ascent

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 13www.idc.ac.il/tecs Counter Typical function: program counter Implementation: register chip + some combinational logic. If reset(t-1) then out(t)=0 else if load(t-1) then out(t)=in(t-1) else if inc(t-1) then out(t)=out(t-1)+1 else out(t)=out(t-1) Needed: a storage device that can: (a) set its state to some base value (b) increment the state in every clock cycle (c) maintain its state (stop incrementing) over clock cycles (d) reset its state

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 14www.idc.ac.il/tecs Recap: Sequential VS combinational logic

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 15www.idc.ac.il/tecs Time matters Implications: Challenge: propagation delays Solution: clock synchronization Cycle length and processing speed. During a tick-tock cycle, the internal states of all the clocked chips are allowed to change, but their outputs are “latched” At the beginning of the next cycle, the outputs of all the clocked chips in the architecture commit to the new values.

Elements of Computing Systems, Nisan & Schocken, MIT Press, Chapter 3: Sequential Logic slide 16www.idc.ac.il/tecs Perspective All the memory units described in this lecture are standard Typical memory hierarchy SRAM (“static”), typically used for the cache DRAM (“dynamic”), typically used for main memory Disk (Elaborate caching / paging algorithms) A Flip-flop can be built from Nand gates But... real memory units are highly optimized, using a great variety of storage technologies. Access time Cost