Chapter 1: Boolean Logic

Similar documents
Elements of Computing Systems, Nisan & Schocken, MIT Press. Boolean Logic

Boolean Logic. Building a Modern Computer From First Principles.

Course Overview. Shimon Schocken. Spring Course Overview 1 Elements of Computing Systems

Boolean algebra.

expression simply by forming an OR of the ANDs of all input variables for which the output is

Overview of Today s Lecture:

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Fall Notes - Unit 1

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-378: Computer Hardware Design Winter Notes - Unit 1

Reasoning and programming. Lecture 5: Invariants and Logic. Boolean expressions. Reasoning. Examples

IST 4 Information and Logic

CS12N: The Coming Revolution in Computer Architecture Laboratory 2 Preparation

Introduction to Electrical & Electronic Engineering ENGG1203

Engr354: Digital Logic Circuits

Boolean Algebra. Boolean Algebra

IST 4 Information and Logic

ECE223. R eouven Elbaz Office room: DC3576

IST 4 Information and Logic

Lexical Analysis Finite Automate

Fast Boolean Algebra

Control with binary code. William Sandqvist

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University

CHAPTER 9 MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES

Fachgebiet Rechnersysteme1. 1. Boolean Algebra. 1. Boolean Algebra. Verification Technology. Content. 1.1 Boolean algebra basics (recap)

Designing finite automata II

Resources. Introduction: Binding. Resource Types. Resource Sharing. The type of a resource denotes its ability to perform different operations

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS

ICTP Latin-American Advanced Course on FPGADesign for Scientific Instrumentation. 19 November - 17 December, 2012.

Let's start with an example:

Convert the NFA into DFA

Section 6.1 INTRO to LAPLACE TRANSFORMS

Chapter 3. Vector Spaces

Combinational Logic. Precedence. Quick Quiz 25/9/12. Schematics à Boolean Expression. 3 Representations of Logic Functions. Dr. Hayden So.

Math 154B Elementary Algebra-2 nd Half Spring 2015

Note 12. Introduction to Digital Control Systems

Digital Control of Electric Drives

Lecture 11 Binary Decision Diagrams (BDDs)

CS 314 Principles of Programming Languages

Good Review book ( ) ( ) ( )

11.1 Finite Automata. CS125 Lecture 11 Fall Motivation: TMs without a tape: maybe we can at least fully understand such a simple model?

CHAPTER 3 LOGIC GATES & BOOLEAN ALGEBRA

CS 330 Formal Methods and Models

Coalgebra, Lecture 15: Equations for Deterministic Automata

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018

Unit 4. Combinational Circuits

Finite Field Arithmetic and Implementations. Xinmiao Zhang Case Western Reserve University

Operations Algorithms on Quantum Computer

Finite Automata-cont d

BİL 354 Veritabanı Sistemleri. Relational Algebra (İlişkisel Cebir)

Boolean Algebra. Boolean Algebras

Converting Regular Expressions to Discrete Finite Automata: A Tutorial

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun:

CS 275 Automata and Formal Language Theory

Fault Modeling. EE5375 ADD II Prof. MacDonald

Worked out examples Finite Automata

SIMPLIFICATION OF BOOLEAN ALGEBRA. Presented By: Ms. Poonam Anand

Software Engineering using Formal Methods

a,b a 1 a 2 a 3 a,b 1 a,b a,b 2 3 a,b a,b a 2 a,b CS Determinisitic Finite Automata 1

Concepts of Concurrent Computation Spring 2015 Lecture 9: Petri Nets

Minimal DFA. minimal DFA for L starting from any other

MATH1131 Mathematics 1A Algebra

CS 275 Automata and Formal Language Theory

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014

Golden Section Search Method - Theory

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER LANGUAGES AND COMPUTATION ANSWERS

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers

CS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions

CMSC 330: Organization of Programming Languages

FABER Formal Languages, Automata and Models of Computation

Subset Family of AND/OR/XOR Canonical Forms. Portland State University Fremont, CA Portland State University

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb.

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2

Deterministic Finite Automata

Exploring parametric representation with the TI-84 Plus CE graphing calculator

The area under the graph of f and above the x-axis between a and b is denoted by. f(x) dx. π O

Introduction to Electronic Circuits. DC Circuit Analysis: Transient Response of RC Circuits

Fundamentals of Computer Science

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1

4 VECTORS. 4.0 Introduction. Objectives. Activity 1

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Learning Goals. Relational Query Languages. Formal Relational Query Languages. Formal Query Languages: Relational Algebra and Relational Calculus

Propositional models. Historical models of computation. Application: binary addition. Boolean functions. Implementation using switches.

Scanner. Specifying patterns. Specifying patterns. Operations on languages. A scanner must recognize the units of syntax Some parts are easy:

Thoery of Automata CS402

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages

Table of contents: Lecture N Summary... 3 What does automata mean?... 3 Introduction to languages... 3 Alphabets... 3 Strings...

Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Kleene-*

Exercise 3 Logic Control

Bases for Vector Spaces

Section: Other Models of Turing Machines. Definition: Two automata are equivalent if they accept the same language.

dy ky, dt where proportionality constant k may be positive or negative

Bob Brown Math 251 Calculus 1 Chapter 5, Section 4 1 CCBC Dundalk

CS375: Logic and Theory of Computing

Having read this workbook you should be able to: design a logic circuit from its Boolean equation or truth table.

The Evaluation Theorem

Homework 3 Solutions

378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A.

Some Theory of Computation Exercises Week 1

Supervisory Control (4CM30)

Chapter 2 Finite Automata

CHAPTER 1 PROGRAM OF MATRICES

Transcription:

Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005 www.idc.c.il/tecs Chpter 1: Boolen Logic Usge nd Copyright Notice: Copyright 2005 Nom Nisn nd Shimon Schocken This presenttion contins lecture mterils tht ccompny the textook The Elements of Computing Systems y Nom Nisn & Shimon Schocken, MIT Press, 2005. The ook we site, www.idc.c.il/tecs, fetures 13 such presenttions, one for ech ook chpter. Ech presenttion is designed to support 3 hours of clssroom or self-study instruction. You re welcome to use or edit this presenttion for instructionl nd non-commercil purposes. If you use our mterils, we will pprecite it if you will include in them reference to the ook s we site. And, if you hve ny comments, you cn rech us t tecs.t@gmil.com Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 1

Boolen lger Some elementry Boolen opertors: Not(x) And(x,y) Or(x,y) Nnd(x,y) Boolen functions: x y z f ( x, y, z) = ( x + y) z x Not(x) Not(x) 0 1 1 0 x y Or(x,y) Or(x,y) 0 0 0 0 1 1 1 0 1 1 1 1 x y And(x,y) And(x,y) 0 0 0 0 1 0 1 0 0 1 1 1 x y Nnd(x,x) Nnd(x,x) 0 0 1 0 1 1 1 0 1 1 1 0 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 0 Functionl expression VS truth tle expression Importnt result: Every Boolen function cn e expressed using And, Or, Not. Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 2

All Boolen functions of 2 vriles Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 3

Boolen lger Given: Nnd(,), flse Not() = Nnd(,) true = Not(flse) And(,) = Not(Nnd(,)) George Boole, 1815-1864 ( A Clculus of Logic ) Or(,) = Not(And(Not(),Not())) Xor(,) = Or(And(,Not()),And(Not(),))) Etc. Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 4

Gte logic Gte logic gte rchitecture designed to implement Boolen function Elementry gtes: Composite gtes: Interfce VS implementtion. Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 5

Gte Logic Interfce Xor Clude Shnnon, 1916-2001 0 0 0 0 1 1 1 0 1 1 1 0 Implementtion Not And ( Symolic Anlysis of Rely nd Switching Circuits ) Or Not And Xor(,) = Or(And(,Not()),And(Not(),))) Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 6

Circuit implementtions AND gte 0 0 0 0 1 0 1 0 0 1 1 1 OR gte 0 0 0 0 1 1 1 0 1 1 1 1 power supply power supply c 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 c AND (,,c) c AND AND From computer science perspective, physicl reliztions of logic gtes re irrelevnt. Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 7

Project 1: elementry logic gtes Given: Nnd(,), flse Build: Nnd(,) Nnd(,) 0 0 1 0 1 1 1 0 1 1 1 0 Not() =... true =... And(,) =... Or(,) =... Mux(,,sel) =... Etc. - 12 gtes ltogether. Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 8

Multiplexer sel sel 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 1 Mux sel 0 1 Implementtion: sed on Not, And, Or gtes. Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 9

Exmple: Building n And gte And And.cmp 0 0 0 0 1 0 1 0 0 1 1 1 Contrct: When running your.hdl on our.tst, your. should e the sme s our.cmp. And.hdl And.tst CHIP CHIP And And { IN IN,, ; ; OUT OUT ; ; // // implementtion missing missing } lod lod And.hdl, And.hdl, put-file And., And., compre-to And.cmp, And.cmp, put-list ; ; set set 0,set 0,set 0,evl,put; set set 0,set 0,set 1,evl,put; set set 1,set 1,set 0,evl,put; set set 1, 1, set set 1, 1, evl, evl, put; put; Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 10

Building n And gte Interfce: And(,) = 1 exctly when ==1 And And.hdl CHIP CHIP And And { IN IN,, ; ; OUT OUT ; ; // // implementtion missing missing } Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 11

Building n And gte Implementtion: And(,) = Not(Nnd(,)) And.hdl CHIP CHIP And And { IN IN,, ; ; OUT OUT ; ; // // implementtion missing missing } Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 12

Building n And gte Implementtion: And(,) = Not(Nnd(,)) Nnd x in Not And.hdl CHIP CHIP And And { IN IN,, ; ; OUT OUT ; ; // // implementtion missing missing } Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 13

Building n And gte Implementtion: And(,) = Not(Nnd(,)) NAND x in NOT And.hdl CHIP CHIP And And { IN IN,, ; ; OUT OUT ; ; Nnd( Nnd( =,, =,, = x); x); Not(in Not(in = x, x, = ) ) } Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 14

Hrdwre simultor HDL progrm test script gte digrm And And Or Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 15

Hrdwre simultor HDL progrm Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 16

Hrdwre simultor HDL progrm put file Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 17

Project 1 tips Red Chpter 1 of the ook Explore the ook s we site (www.idc.c.il/tecs) Downlod the ook s softwre suite Go through the hrdwre simultor You re in usiness. Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 18

End note: Progrmmle Logic Device for 3-wy functions c nd legend: ctive fuse lown fuse 8 nd terms connected to the sme 3 inputs. or f(,,c) nd single or term connected to the puts of 8 nd terms _ PLD implementtion of f(,,c)= c + c (the on/off sttes of the fuses determine which gtes prticipte in the computtion) Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 19

Perspective Ech Boolen function hs cnonicl representtion The cnonicl representtion is expressed in terms of And, Not, Or And, Not, Or cn e expressed in terms of Nnd lone Ergo, every Boolen function cn e relized y stndrd PLD consisting of Nnd gtes only Mss production c nd Universl uilding locks, unique topology. or f(,,c) Gtes, neurons, toms, nd Elements of Computing Systems, Nisn & Schocken, MIT Press, 2005, www.idc.c.il/tecs, Chpter 1: Boolen Logic slide 20