CNS 188a Overview. Implementing Boolean functions with relay circuits, circuits of AON (AND, OR, NOT) gates and LT (Linear Threshold) gates

Similar documents
IST 4 Information and Logic

SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY,DHENKANAL LECTURE NOTES ON DIGITAL ELECTRONICS CIRCUIT(SUBJECT CODE:PCEC4202)

IST 4 Information and Logic. Claude Shannon April 30,

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Combinational Circuits Digital Logic (Materials taken primarily from:

Propositional Calculus: Boolean Algebra and Simplification. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

Introduction to Computer Architecture

LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

BOOLEAN ALGEBRA. Logic circuit: 1. From logic circuit to Boolean expression. Derive the Boolean expression for the following circuits.

1. Mark the correct statement(s)

6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )

Introduction to Boolean Algebra

Introduction to Boolean Algebra

2.6 BOOLEAN FUNCTIONS

Experiment 3: Logic Simplification

ENGIN 112 Intro to Electrical and Computer Engineering

QUESTION BANK FOR TEST

UNIT 2 BOOLEAN ALGEBRA

Lecture (04) Boolean Algebra and Logic Gates

Lecture (04) Boolean Algebra and Logic Gates By: Dr. Ahmed ElShafee

6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )

Boolean relationships on Venn Diagrams

ABC basics (compilation from different articles)

EEE130 Digital Electronics I Lecture #4_1

Combinational Logic & Circuits

Combinational Devices and Boolean Algebra

CHAPTER-2 STRUCTURE OF BOOLEAN FUNCTION USING GATES, K-Map and Quine-McCluskey

Circuit analysis summary

DeMorgan's Theorem. George Self. 1 Introduction

Chapter 2 Boolean algebra and Logic Gates

Summary. Boolean Addition

COMP Logic for Computer Scientists. Lecture 17

Review. EECS Components and Design Techniques for Digital Systems. Lec 05 Boolean Logic 9/4-04. Seq. Circuit Behavior. Outline.

Chapter 2. Boolean Algebra and Logic Gates

Points Addressed in this Lecture. Standard form of Boolean Expressions. Lecture 4: Logic Simplication & Karnaugh Map

Neural Networks: What can a network represent. Deep Learning, Fall 2018

The Further Mathematics Support Programme

Neural Networks: What can a network represent. Deep Learning, Spring 2018

Boolean Representations and Combinatorial Equivalence

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Recitation Session 6

Computer Science. Unit-4: Introduction to Boolean Algebra

6. Combinational Circuits. Building Blocks. Digital Circuits. Wires. Q. What is a digital system? A. Digital: signals are 0 or 1.

Ch. 5 : Boolean Algebra &

Behavior models and verification Lecture 6

Boolean Functions (10.1) Representing Boolean Functions (10.2) Logic Gates (10.3)

Variable, Complement, and Literal are terms used in Boolean Algebra.

Boolean Algebra & Digital Logic

Boolean algebra. June 17, Howard Huang 1

Combinational Circuits

IT 201 Digital System Design Module II Notes

Motivation. CS389L: Automated Logical Reasoning. Lecture 5: Binary Decision Diagrams. Historical Context. Binary Decision Trees

Logic Synthesis & Optimization Lectures 4, 5 Boolean Algebra - Basics

Section 17. Closed Sets and Limit Points

Designing Computer Systems Boolean Algebra

Austin Herring Recitation 002 ECE 200 Project December 4, 2013

The Encoding Complexity of Network Coding

1. Boolean algebra. [6] 2. Constructing a circuit. [4] 3. Number representation [4] 4. Adders [4] 5. ALU [2] 6. Software [4]

Unit-IV Boolean Algebra

Combinational Circuits

6: Combinational Circuits

Logic Gates and Boolean Algebra ENT263

Boolean Algebra and Logic Gates

L3: Representations of functions

Solving Boolean Equations with BDDs and Clause Forms. Gert Smolka

DKT 122/3 DIGITAL SYSTEM 1

Gate Level Minimization Map Method

Specifying logic functions

CS470: Computer Architecture. AMD Quad Core

2008 The McGraw-Hill Companies, Inc. All rights reserved.

(Refer Slide Time 6:48)

ENGIN 112. Intro to Electrical and Computer Engineering

1/28/2013. Synthesis. The Y-diagram Revisited. Structural Behavioral. More abstract designs Physical. CAD for VLSI 2

DLD VIDYA SAGAR P. potharajuvidyasagar.wordpress.com. Vignana Bharathi Institute of Technology UNIT 3 DLD P VIDYA SAGAR

(Refer Slide Time 3:31)

Propositional Calculus. Math Foundations of Computer Science

Chapter 2. Boolean Expressions:

2. BOOLEAN ALGEBRA 2.1 INTRODUCTION

Injntu.com Injntu.com Injntu.com R16

Boolean Algebra. P1. The OR operation is closed for all x, y B x + y B

Propositional Calculus. Math Foundations of Computer Science

Menu. Algebraic Simplification - Boolean Algebra EEL3701 EEL3701. MSOP, MPOS, Simplification

NP-Completeness. Algorithms

This podcast will demonstrate a logical approach as to how a computer adds through logical gates.

Following the advice of breaking the longest (uppermost) bar first, I'll begin by breaking the bar covering the entire expression as a first step:

EECS150 Homework 2 Solutions Fall ) CLD2 problem 2.2. Page 1 of 15

Lecture 10: Combinational Circuits

Chapter 3. Boolean Algebra and Digital Logic

GC03 Boolean Algebra

CSCI2467: Systems Programming Concepts

Announcements. Chapter 2 - Part 1 1

CS 33. Data Representation, Part 1. CS33 Intro to Computer Systems VII 1 Copyright 2017 Thomas W. Doeppner. All rights reserved.

Propositional Calculus. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

Combinational Logic Circuits

Madhya Pradesh Bhoj (Open) University, Bhopal

R10. II B. Tech I Semester, Supplementary Examinations, May

CSE 20 DISCRETE MATH. Winter

BOOLEAN ALGEBRA. 1. State & Verify Laws by using :

Combinational Logic Circuits

Transcription:

CNS 88a Overview Boolean algebra as an axiomatic system Boolean functions and their representations using Boolean formulas and spectral methods Implementing Boolean functions with relay circuits, circuits of AON (AND, OR, NOT) gates and LT (Linear Threshold) gates Analyzing the complexity (size and depth) of circuits Relations(as opposed to functions) and their implementation in circuits Feedback and convergence in LT circuits

Basic Axioms and Properties

Current State Representation Theorem (Stone 936): Every finite Boolean algebra is isomorphic to a Boolean algebra of subsets of some finite set S. - Theorem: An identity is true for any finite Boolean algebra if and only if it is true for a two-valued (-) Boolean algebra. DNF Representation Theorem: DNF is a representation: two Boolean functions are equal if and only if their DNFs is identical.?

DNF Theorem DNF Theorem: Every Boolean function can be expressed in DNF.

DNF Theorem DNF Theorem: Every Boolean function can be expressed in DNF. Proof: By the algorithm Apply DeMorgan Theorem (T4) until each negation is applied to a single variable Apply distributive axiom (A4) to get a sum of terms Augment a missing variable a to a term using (A2) multiplying by Use self absorption (L) to eliminate duplicate terms

DNF from Look Up Tables Idea: construct a DNF by adding the normal terms that correspond to f=. ab XOR(a,b)

DNF from Look Up Tables Use only the blue entries

Boole (Shannon) Decomposition Proof: DNF representation

Boole (Shannon) Decomposition Proof: DNF representation DNF part that corresponds to

Boole (Shannon) Decomposition Proof: DNF representation DNF part DNF part Q

Why is the Decomposition Important? Idea: can help in compressing representations of Boolean functions (Decision Trees, Binary Decision Diagrams (BDD)) Key in design, optimization and verification of circuits. ab XOR(a,b) = =

Why is the Decomposition Important? Decomposition results in a Binary Decision Tree = =

Gottfried Leibniz 646-76 "The further back you look, the further forward you can see" Winston Churchill George Boole 85-864 Edward Huntington 874-952 Marshal Stone 93-989 Logic and binary system Calculus Shannon 96-2 Connected logic with algebra 847 Boolean axiomatic system, 94 Boolean representation theorem, 936 Boolean algebra to electrical circuits 938

Gottfried Leibniz 646-76 Leibniz Binary System

Gottfried Leibniz 646-76 Leibniz Binary System Binary addition algorithm

Gottfried Leibniz 646-76 Leibniz Binary System Wen Wang (who flourished in about 5 BC) is traditionally thought to have been author of the present hexagrams 63

Connection Between Boolean Calculus and Physical Circuits Shannon 938 The basic framework: A graph with edges and vertices Source and destination vertices (S and D) Boolean variables control the flow in the edges The function is if S and D are connected The function is if S and D are disconnected S D

Connection Between Boolean Calculus and Physical Circuits Shannon 938 S D Q: How to design an AND gate? S a b D

Connection Between Boolean Calculus and Physical Circuits Shannon 938 S D Q: How to design an OR gate? a S D b

Every - Boolean Function Can be Implemented Using A Depth Two Circuit How? Implement the DNF representation: OR of many ANDs Boolean functions Relay circuits

Connection Between Boolean Calculus and Physical Circuits Shannon 938 Q: relay circuits to Boolean calculus? Relay circuits a b S c D Boolean functions d e f = ab + de + ace + dcb

Connection Between Boolean Calculus and Physical Circuits Shannon 938 Boolean functions Relay circuits

Every - Boolean Function Can be Implemented Using A Depth Two Circuit How? Implement the DNF representation: OR of many ANDs Depth: longest path from input to output counting the number of gates Size: total number of gates in the circuit

XOR of Two Variables Depth = 2 Size = 3

XOR of two Variables with Relays? We need to use 6 relays Two relays per gate

XOR of two Variables with Relays? Q: Can we compute XOR with less than 6 relays? S D

XOR of More Variables abc XOR(a,b,c) How many gates for XOR with AON? AON = ANDORNOT

XOR of Three Variables with AON Depth = 2 Size = 5 a b c a b c a b c > > > is the complement > a b c >

XOR of Four Variables with AON Depth = 2 Size = 9?? 4 ANDs for X = > > Can we do better? No Yes > 4 ANDs for X = 3 > Size 9 optimal for depth 2 How?

Size 8 XOR AON Circuit of Four Variables > > > > > a b c a b c a b c a b c > > > > > a b c a b c a b c a b c XOR(x,y,z) b c a XOR(x,y) d Size 5 Size 3 XOR(a,b,c,d) optimal size!

Neuron Neural Gate Linear Threshold (LT) gate

Can We Compute an AND Function with an LT Gate? -2-2 - -

Can We Compute an OR Function with an LT Gate? - -

Can We Compute a NOT with an LT Gate? -2 Can we compute NOT without sgn?

More Variables for AND? Hence is an AND

More Variables for OR? Hence is an OR

AON vs LT Circuits Theorem (LT/AON): LT circuits are at least as powerful as AON circuits: (i) Size of an AON circuit for a Boolean function f is greater/equal size of an optimal LT circuit for the function f (ii) Depth of an AON circuit for a Boolean function f is greater/equal depth of an optimal LT circuit for the function f

AON vs LT Circuits Theorem (LT/AON): LT circuits are at least as powerful as AON circuits: Proof: (i) Size of an AON circuit for a Boolean function f is greater/equal size of an optimal LT circuit for the function f (ii) Depth of an AON circuit for a Boolean function f is greater/equal depth of an optimal LT circuit for the function f By the previous reductions: AND, OR and NOT can be implemented by a single LT gate

LT gates are MORE Powerful XOR of three variables with AON Depth = 2 Size = 5 XOR of four variables with AON a b c a b c a b c a b c > > > > > Depth = 2 Size = 9 Size is optimal for depth 2 XOR of four variables with AON, size 8 is optimal for any depth

LT gates are MORE Powerful Size 5 is optimal for AON depth 2 - Size 4 LT depth 2 - - -2 - -3

LT gates are MORE Powerful LT-l = LT layered, inputs go to first layer only - A 2 3 A B C A+B+C -2+A+B+C - 2-2 - - B -2 - -3 C Can take the sgn or add

LT gates are EVEN MORE Powerful -2 A LT-nl = LT non-layered, inputs go to any layer A --2A+ X - sgn( ) -2-2 3 - Can take the sgn or add

XOR Function: Size of LT vs AON in Depth 2 AON LT-l LT-nl 5 4 2 * * * * = it is optimal Exponential gap in size

XOR with a Single LT Gate AON LT-l LT-nl 5 4 2 Is it possible to compute with a single LT element? Is this result general? more variables?

XOR with a Single LT Gate Answer : NO Proof: Is it possible to compute with a single LT element? By contradiction assume it is possible and reach a contradiction contradiction Q

Symmetric Functions AND, OR and XOR are symmetric Boolean functions Permuting the inputs does not change the output SYM Definition: A Boolean function f is symmetric if for an arbitrary permutation

Questions on Symmetric Functions AND, OR and XOR are symmetric Boolean functions Q: How many symmetric Boolean functions of n variables? Q2: What are the symmetric functions that can be realized by a single LT gate?

Marshal Stone 93-989 History on LT Claude Shannon 96-2 Boolean representation theorem, 936 Warren McCulloch 899-969 Walter Pitts 923-969 Boolean algebra to electrical circuits 938 Computing with LT (neural) gates: connection between circuits and neural networks, 943

History on LT Warren McCulloch 899-969 Walter Pitts 923-969 Neurophysiologist, MD Logician, Autodidact Computing with LT (neural) gates: connection between circuits and neural networks, 943 Warren McCulloch arrived in early 942 to the University of Chicago, invited Pitts, who was still homeless, to live with his family. In the evenings McCulloch and Pitts collaborated. Pitts was familiar with the work of Gottfried Leibniz on computing and they considered the question of whether the nervous system could be considered a kind of universal computing device as described by Leibniz. This led to their 943 seminal neural networks paper: A Logical Calculus of Ideas Immanent in Nervous Activity.