How circuits acquire memory: Sequential & Clocked Circuits. COS 116, Spring 2011 Sanjeev Arora.

Slides:



Advertisements
Similar presentations
Lecture 13: Sequential Circuits
Advertisements

A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
Our First Real System.
Logic: From Greeks to philosophers to circuits. COS 116: 3/11/2008 Sanjeev Arora.
CS61C L21 State Elements : Circuits that Remember (1) Spring 2007 © UCB 161 Exabytes In 2006  In 2006 we created, captured, and replicated 161 exabytes.
Finite State Machines (FSMs) and RAMs and inner workings of CPUs 3/27/2008 COS 116 Instructor: Sanjeev Arora.
CS61C L21 State Elements : Circuits that Remember (1) Garcia, Fall 2006 © UCB One Laptop per Child  The OLPC project has been making news recently with.
Memory; Sequential & Clocked Circuits; Finite State Machines COS 116: 3/25/2008 Sanjeev Arora.
Memory. The logic and arithmetic circuits we’ve seen so far have no memory. They just transform input to output. Can we make circuits that remember? Memory.
CS61C L15 Synchronous Digital Systems (1) Beamer, Summer 2007 © UCB Scott Beamer, Instructor inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture.
Fall 2007 L16: Memory Elements LECTURE 16: Clocks Sequential circuit design The basic memory element: a latch Flip Flops.
16/07/2015CSE1303 Part B lecture notes 1 Hardware Implementation Lecture B17 Lecture notes section B17.
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
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.
More Basics of CPU Design Lecture for CPSC 5155 Edward Bosworth, Ph.D. Computer Science Department Columbus State University.
Counting with Sequential Logic Experiment 8. Experiment 7 Questions 1. Determine the propagation delay (in number of gates) from each input to each output.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
1 CSE370, Lecture 16 Lecture 19 u Logistics n HW5 is due today (full credit today, 20% off Monday 10:29am, Solutions up Monday 10:30am) n HW6 is due Wednesday.
Logic: From Greeks to philosophers to circuits. COS 116, Spring 2012 Adam Finkelstein.
CS3350B Computer Architecture Winter 2015 Lecture 5.2: State Circuits: Circuits that Remember Marc Moreno Maza [Adapted.
EECS 370 Discussion 1 xkcd.com. EECS 370 Discussion Topics Today: – Floating Point – Finite State Machines – Combinational Logic – Sequential Logic 2.
COE 202: Digital Logic Design Sequential Circuits Part 1
1 COMP541 State Machines Montek Singh Feb 8, 2012.
Memory; Sequential & Clocked Circuits; Finite State Machines
Finite State Machines (FSMs) and RAMs and inner workings of CPUs COS 116, Spring 2010 Guest: Szymon Rusinkiewicz.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
1 CSE370, Lecture 17 Lecture 17 u Logistics n Lab 7 this week n HW6 is due Friday n Office Hours íMine: Friday 10:00-11:00 as usual íSara: Thursday 2:30-3:20.
Computer Architecture Lecture 4 Sequential Circuits Ralph Grishman September 2015 NYU.
Finite State Machines (FSMs) and RAMs and CPUs COS 116, Spring 2011 Sanjeev Arora.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits II.
ITEC 352 Lecture 9 Flip Flops. Flip flops Review Questions? HW #2 posted, due next Friday at 10PM Floating point numbers.
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.
Computing via boolean logic. COS 116: 3/8/2011 Sanjeev Arora.
Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
1 COMP541 Finite State Machines - 1 Montek Singh Sep 22, 2014.
CS61C L24 State Elements : Circuits that Remember (1) Garcia, Fall 2014 © UCB Senior Lecturer SOE Dan Garcia inst.eecs.berkeley.edu/~cs61c.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
REGISTER TRANSFER LANGUAGE (RTL) INTRODUCTION TO REGISTER Registers1.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
CS 110 Computer Architecture Lecture 9: Finite State Machines, Functional Units Instructor: Sören Schwertfeger School of.
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
COMBINATIONAL AND SEQUENTIAL CIRCUITS Guided By: Prof. P. B. Swadas Prepared By: BIRLA VISHVAKARMA MAHAVDYALAYA.
Chapter 3 Boolean Algebra and Digital Logic T103: Computer architecture, logic and information processing.
Introduction to Computer Science Robert Sedgewick and Kevin Wayne Copyright © Recap: Combinational Circuits Please.
1 COMP541 Sequential Logic – 2: Finite State Machines Montek Singh Feb 29, 2016.
Appendix C Basics of Logic Design. Appendix C — Logic Basic — 2 Logic Design Basics §4.2 Logic Design Conventions Objective: To understand how to build.
Clock in Digital Systems
COMP541 Sequential Logic – 2: Finite State Machines
Assistant Prof. Fareena Saqib Florida Institute of Technology
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture #21 State Elements: Circuits that Remember Hello to James Muerle in the.
Jeremy R. Johnson Mon. Apr. 3, 2000
Lecture 15 Logistics Last lecture Today HW4 is due today
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Electronic Homework Submission and Grading
Joseph Ravichandran, Srijan Chakraborty, Kanad Sarkar
Systems Architecture I
Lecture 19 Logistics Last lecture Today
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Digital Circuits and Logic
ESE 150 – Digital Audio Basics
Lecture 4 Sequential units. Registers
Presentation transcript:

How circuits acquire memory: Sequential & Clocked Circuits. COS 116, Spring 2011 Sanjeev Arora

Midterm Midterm exam scores Formula for overall grade: 50% exam + 25% HW + labs, 25% participation

Recap: Combinational Circuits  Crossed wires that are not connected are sometimes drawn like this. No loops allowed (direct or indirect) Wires: transmit voltage (and hence value)

Timing Diagram 5V 0V Time X 5V 0V Time output NOT gate delay

Recap: Combinational circuit for binary addition? Want to design a circuit to add any two N- bit integers (say N =64) Is the truth table method useful? Ideas?

Modular design Have small number of basic components. Put them together to achieve desired functionality Basic principle of modern industrial design; recurring theme in next few lectures.

1-bit adder (Carry from previous adder) Hand in on Mar 22: Truth table, circuit for 1-bit adder. akak bkbk ckck 1-ADD c k+1 sksk Carry bit for next adder.

Modular Design for boolean circuits An N-bit adder using N 1-bit adders (will do Mar 22)

A Full Adder (from handout)

Memory Rest of this lecture: How boolean circuits can have “memory”.

What do you understand by ‘memory”? How can you tell that a 1-year old child has it? Behaviorist’s answer: His/her actions depend upon past events.

Why combinational circuits have no “memory” Wires: transmit voltage (and hence value) Boolean gates connected by wires Important: no loops allowed Output is determined by current inputs; no “memory” of past values of the inputs. Today: Circuits with loops; aka “Sequential Circuits”

Matt likes Sue but he doesn’t like changing his mind Represent with a circuit: Matt will go to the party if Sue goes or if he already wanted to go S M Is this well-defined?

Sequential Circuits Circuits with AND, OR and NOT gates. Cycles are allowed (ie outputs can feed back into inputs) Can exhibit “memory”. Sometimes may have “undefined” values How to write the “truth table”? Suggestions?

Enter Rita Matt will go to the party if Sue goes OR if the following holds: if Rita does not go and he already wanted to go. ? M S R M R, S: “control” inputs What combination of R, S changes M?

R-S Latch S R M

A more convenient form of memory Fact: “Data Flip-Flop” or “D flip flop”; can be implemented using two R-S flip flops. No “undefined” outputs ever!

“Register” with 4 bits of memory

What controls the “Write” signal?

The “symphony” inside a computer Clock Combinational circuit Memory Clocked Sequential Circuit (aka Synchronous Circuits)

Timing diagram (analog of truth table for sequential circuits) RSM(t)M(t+1) Fill in timing diagram for RS latch and hand in on a piece of paper.

Clocked Sequential Circuits

Synchronous Sequential Circuit (aka Clocked Sequential Circuit) CLOCK INPUTS Combinational Circuit Memory (flip-flops)

Shorthand Combinational Circuit Memory (flip-flops) CLK This stands for “lots of wires” (aka “bus”)

Clock Speeds Heinrich Hertz Intel MHz (Mega = Million) 1981Original IBM PC4.77 MHz 1993Intel Pentium66 MHz 2005Pentium 43.4 GHz (Giga = Billion)

What limits clock speed? Combinational Circuit Memory (flip-flops) CLK Delays in combinational logic (remember the adder). Clock cycle = time needed for circuit value to settle. During 1 clock cycle of Pentium 4, light travels: 4 inches

Finite State Machines Read handout (Brian Hayes article) for next time.

Example: State diagram for automatic door Closed Open Detected Person No Person Detected Detected Person No Person Detected Finite # of “states”; Transition rules between states

Next lectures… FSMs Computer organization: CPUs and RAM Lessons from computer architecture.