Memory; Sequential & Clocked Circuits; Finite State Machines

Slides:



Advertisements
Similar presentations
Give qualifications of instructors: DAP
Advertisements

CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
CSCE 211: Digital Logic Design. Chapter 6: Analysis of Sequential Systems.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
Sequential Circuits A Basic sequential circuit is nothing but a combinational circuit with some feedback paths between its output and input terminals.
Our First Real System.
Logic Circuits Another look at Floating Point Numbers Common Combinational Logic Circuits Timing Sequential Circuits Note: Multiplication & Division in.
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.
Sequential Circuits and Finite State Machines Prof. Sin-Min Lee
1 Chapter 4 Combinational and Sequential Circuit.
Memory; Sequential & Clocked Circuits; Finite State Machines COS 116: 3/25/2008 Sanjeev Arora.
1 Foundations of Software Design Lecture 2: How Computers Work Marti Hearst Fall 2002.
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.
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.
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
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Building Functions.
From Greek philosophers to circuits: An introduction to boolean logic. COS 116, Spring 2011 Sanjeev Arora.
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.
How circuits acquire memory: Sequential & Clocked Circuits. COS 116, Spring 2011 Sanjeev Arora.
EECS 370 Discussion 1 xkcd.com. EECS 370 Discussion Topics Today: – Floating Point – Finite State Machines – Combinational Logic – Sequential Logic 2.
CPSC 171 Introduction to Computer Science Boolean Logic, Gates, & Circuits.
Rabie A. Ramadan Lecture 3
Using building blocks to make bigger circuits
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.
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.
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.
Lecture 21: Registers and Counters (1)
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.
Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
WORKING PRINCIPLE OF DIGITAL LOGIC
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.
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.
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
Lecture 3 Boolean Algebra and Digital Logic Lecture Duration: 2 Hours
Inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture #21 State Elements: Circuits that Remember Hello to James Muerle in the.
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
Boolean Algebra and Digital Logic
Logic Gates.
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Electronic Homework Submission and Grading
Guest Lecture by David Johnston
Combinational Circuits
XOR Function Logic Symbol  Description  Truth Table 
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Digital Circuits and Logic
Presentation transcript:

Memory; Sequential & Clocked Circuits; Finite State Machines COS 116, Spring 2012 Adam Finkelstein Did an extensive demo that clarified what determines clock speed.

Recap: Boolean Logic Boolean Expression E = S AND D S Boolean Circuit 1 E S D Truth table: Value of E for every possible D, S. TRUE=1; FALSE= 0. Truth table has rows if the number of variables is k

Boole’s reworking of Clarke’s “proof” of existence of God (see handout – after midterm) General idea: Try to prove that Boolean expressions E1, E2, …, Ek cannot simultaneously be true Method: Show E1· E2 · … · Ek = 0 Discussion for after Break: What exactly does Clarke’s “proof” prove? How convincing is such a proof to you? Also: Do Google search for “Proof of God’s Existence.”

Circuit for binary addition? 25 11001 + 29 11101 54 110110 Want to design a circuit to add any two N-bit integers. Q: Is the truth table method useful for N=64?

Modular design for N-bit adder Suffices to use N 1-bit adders! cN-1 cN-2 … c1 c0 aN-1 aN-2 … a1 a0 + bN-1 bN-2 … b1 b0 sN sN-1 sN-2 … s1 s0 Carry bits

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 Do yourself: Write truth table, circuit. ak bk ck ck+1 (Carry from previous adder) 1-ADD Carry bit for next adder. sk Do yourself: Write truth table, circuit.

A Full Adder (see logic reading)

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

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

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

Combinational circuit Boolean gates connected by wires Important: no cycles allowed Wires: transmit voltage (and hence value) 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-behaved?!?

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

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 R, S: “control” inputs What combination of R, S changes M? M S R

R-S Flip-Flop S M R

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

Register with 4 bits of memory

What controls the “Write” signal?

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

Clocked Sequential Circuits

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

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

Clock Speeds 1974 Intel 8080 2 MHz (Mega = Million) 1981 Original IBM PC 4.77 MHz 1993 Intel Pentium 66 MHz 2005 Pentium 4 3.4 GHz (Giga = Billion) Heinrich Hertz 1857-94

What limits clock speed? Memory (flip-flops) Combinational Circuit CLK Delays in combinational logic (remember the adder) During 1 clock cycle of Pentium 4, light travels: 4 inches

Next lecture…. Finite State Machines

Example: State diagram for automatic door at grocery store Closed Open Detected Person No Person Detected