Switches: basic element of physical implementations

Similar documents
Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions.

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

EECS Variable Logic Functions

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

Combinational Logic. Review of Combinational Logic 1

Intro To Digital Logic

Lecture A: Logic Design and Gates

Chapter 2: Switching Algebra and Logic Circuits

Possible logic functions of two variables

CS 226: Digital Logic Design

Chapter 2 Combinational logic

Ch 2. Combinational Logic. II - Combinational Logic Contemporary Logic Design 1

Lab 1 starts this week: go to your session

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive

Combinational Logic Design Principles

Digital Circuit And Logic Design I. Lecture 3

Boolean Algebra. The Building Blocks of Digital Logic Design. Section. Section Overview. Binary Operations and Their Representation.

Computer Organization: Boolean Logic

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

Digital Logic (2) Boolean Algebra

Floating Point Representation and Digital Logic. Lecture 11 CS301

EEE130 Digital Electronics I Lecture #4

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

CS61c: Representations of Combinational Logic Circuits

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks

Chapter 2 Combinational Logic Circuits

2 Application of Boolean Algebra Theorems (15 Points - graded for completion only)

CSE140: Components and Design Techniques for Digital Systems. Introduction. Instructor: Mohsen Imani

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

Binary Logic and Gates. Our objective is to learn how to design digital circuits.

UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits

Combinational Logic (mostly review!)

CMSC 313 Lecture 16 Postulates & Theorems of Boolean Algebra Semiconductors CMOS Logic Gates

Chapter 2: Boolean Algebra and Logic Gates

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

CHAPTER 2 BOOLEAN ALGEBRA

BOOLEAN LOGIC. By- Neha Tyagi PGT CS KV 5 Jaipur II Shift, Jaipur Region. Based on CBSE curriculum Class 11. Neha Tyagi, KV 5 Jaipur II Shift

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev

Discrete Mathematics. CS204: Spring, Jong C. Park Computer Science Department KAIST

ELEC Digital Logic Circuits Fall 2014 Boolean Algebra (Chapter 2)

Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions

Ex: Boolean expression for majority function F = A'BC + AB'C + ABC ' + ABC.

Logic Design. Chapter 2: Introduction to Logic Circuits

CS 121 Digital Logic Design. Chapter 2. Teacher Assistant. Hanin Abdulrahman

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

Implementation of Boolean Logic by Digital Circuits

Boolean Algebra & Digital Logic

2. Associative Law: A binary operator * on a set S is said to be associated whenever (A*B)*C = A*(B*C) for all A,B,C S.

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

CMSC 313 Lecture 17 Postulates & Theorems of Boolean Algebra Semiconductors CMOS Logic Gates

CprE 281: Digital Logic

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev. Section 2: Boolean Algebra & Logic Gates

BOOLEAN ALGEBRA. Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra

L2: Combinational Logic Design (Construction and Boolean Algebra)

Every time has a value associated with it, not just some times. A variable can take on any value within a range

Slides for Lecture 10

3 Boolean Algebra 3.1 BOOLEAN ALGEBRA

Slide Set 3. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

WEEK 2.1 BOOLEAN ALGEBRA

BOOLEAN ALGEBRA INTRODUCTION SUBSETS

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

ECE 545 Digital System Design with VHDL Lecture 1A. Digital Logic Refresher Part A Combinational Logic Building Blocks

CHAPTER III BOOLEAN ALGEBRA

Boolean Algebra & Logic Gates. By : Ali Mustafa

Logic Gates and Boolean Algebra

CMPE12 - Notes chapter 1. Digital Logic. (Textbook Chapter 3)

Week-I. Combinational Logic & Circuits

. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE NOTES FOR BOARD EXAMINATION SUBJECT COMPUTER SCIENCE (Code: 083) Boolean Algebra

Unit 8A Computer Organization. Boolean Logic and Gates

Chapter 2 Boolean Algebra and Logic Gates

Binary Logic and Gates

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

CHAPTER III BOOLEAN ALGEBRA

Boolean Algebra and logic gates

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Lecture 2 Review on Digital Logic (Part 1)

Boolean Algebra. Philipp Koehn. 9 September 2016

Unit 2 Boolean Algebra

CS/COE0447: Computer Organization and Assembly Language

CS 61C: Great Ideas in Computer Architecture Synchronous Digital Systems

Logic and Boolean algebra

Administrative Notes. Chapter 2 <9>

CS/COE1541: Introduction to Computer Architecture. Logic Design Review. Sangyeun Cho. Computer Science Department University of Pittsburgh

Lecture 3: Boolean Algebra

Unit 2 Boolean Algebra

Number System conversions

Chapter 2 Boolean Algebra and Logic Gates

ENG2410 Digital Design Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits

THE LOGIC OF COMPOUND STATEMENTS

E40M. Binary Numbers. M. Horowitz, J. Plummer, R. Howe 1

Combinational Logic Fundamentals

KP/Worksheets: Propositional Logic, Boolean Algebra and Computer Hardware Page 1 of 8

Circuits & Boolean algebra.

CSE 311: Foundations of Computing. Lecture 3: Digital Circuits & Equivalence

CHAPTER1: Digital Logic Circuits Combination Circuits

Boolean Algebra and Logic Gates

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

CMPE12 - Notes chapter 2. Digital Logic. (Textbook Chapters and 2.1)"

control in out in out Figure 1. Binary switch: (a) opened or off; (b) closed or on.

Transcription:

Combinational logic Switches Basic logic and truth tables Logic functions Boolean algebra Proofs by re-writing and by perfect induction Winter 200 CSE370 - II - Boolean Algebra Switches: basic element of physical implementations Implementing a simple circuit (arrow shows action if wire changes to ): A Z close switch (if A is or asserted) and turn on light bulb (Z) A Z open switch (if A is 0 or unasserted) and turn off light bulb (Z) Z A Winter 200 CSE370 - II - Boolean Algebra 2

Switches (cont d) Compose switches into more complex ones (Boolean functions): AND A B Z A and B A OR Z A or B B Winter 200 CSE370 - II - Boolean Algebra 3 Switching networks Switch settings determine whether or not a conducting path exists to light the light bulb To build larger computations use the light bulb (output of the network) to set other switches (inputs to another network) Winter 200 CSE370 - II - Boolean Algebra 4

Transistor networks Modern digital systems are designed in CMOS technology MOS stands for Metal-Oxide on Semiconductor C is for complementary because there are both normally-open and normally-closed switches MOS transistors act as voltage-controlled switches similar, though easier to work with than relays. Winter 200 CSE370 - II - Boolean Algebra 5 MOS transistors MOS transistors have three terminals: drain, gate, and source they act as switches in the following way: if the voltage on the gate terminal is (some amount) higher/lower than the source terminal then a conducting path will be established between the drain and source terminals G G S D S D n-channel open when voltage at G is low closes when: voltage(g) > voltage (S) + ε p-channel closed when voltage at G is low opens when: voltage(g) < voltage (S) ε Winter 200 CSE370 - II - Boolean Algebra 6

Most digital logic is CMOS 0V Logic 0.8V Logic 0V.8V.8V 0V 0.3µm.8V.8V Mark Bohr Intel 0V 0V Winter 200 CSE370 - II - Boolean Algebra 7 Multi-input logic gates CMOS logic gates are inverting Easy to implement NAND, NOR, NOT while AND, OR, and Buffer are harder Claude Shannon 938.8V.8V.8V.8V Z Z 0 0 0 0 0 Z Z 0V 0V Winter 200 CSE370 - II - Boolean Algebra 8

Possible logic functions of two variables There are 6 possible functions of 2 input variables: in general, there are 2**(2**n) functions of n inputs F 6 possible functions (F 0 F 5 ) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 and xor or = nor not ( or ) not not nand not ( and ) Winter 200 CSE370 - II - Boolean Algebra 9 Minimal set of functions Can we implement all logic functions from NOT, NOR, and NAND? For example, implementing and is the same as implementing not ( nand ) In fact, we can do it with only NOR or only NAND NOT is just a NAND or a NOR with both inputs tied together nor 0 0 0 nand 0 0 0 and NAND and NOR are "duals", that is, its easy to implement one using the other nand not ( (not ) nor (not ) ) nor not ( (not ) nand (not ) ) Winter 200 CSE370 - II - Boolean Algebra 0

Boolean algebra An algebraic structure consists of a set of elements B binary operations { +, } and a unary operation { } such that the following axioms hold: George Boole 854. the set B contains at least two elements: a, b 2. closure: a + b is in B a b is in B 3. commutativity: a+b= b+a a b = b a 4. associativity: a + (b + c) = (a + b) + c a (b c) = (a b) c 5. identity: a + 0 = a a = a 6. distributivity: a + (b c) = (a + b) (a + c) a (b + c) = (a b) + (a c) 7. complementarity: a + a = a a = 0 Winter 200 CSE370 - II - Boolean Algebra Logic functions and Boolean algebra Any logic function that can be expressed as a truth table can be written as an expression in Boolean algebra using the operators:, +, and, are Boolean algebra variables 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ( ) + ( ) 0 0 0 0 0 0 0 0 0 0 0 0 0 ( ) + ( ) = 0 0 0 Boolean expression that is true when the variables and have the same value and false, otherwise¾¾ Winter 200 CSE370 - II - Boolean Algebra 2

Axioms and theorems of Boolean algebra identity. + 0 = D. = null 2. + = 2D. 0 = 0 idempotency: 3. + = 3D. = involution: 4. ( ) = complementarity: 5. + = 5D. = 0 commutativity: ti it 6. + = + 6D. = associativity: 7. ( + ) + Z = + ( + Z) 7D. ( ) Z = ( Z) distributivity: 8. ( + Z) = ( ) + ( Z) 8D. + ( Z) = ( + ) ( + Z) Winter 200 CSE370 - II - Boolean Algebra 3 Axioms and theorems of Boolean algebra (cont d) uniting: 9. + = 9D. ( + ) ( + ) = absorption: 0. + = 0D. ( + ) =. ( + ) = D. ( ) + = + factoring: 2. ( + ) ( + Z) = 2D. + Z = Z + ( + Z) ( + ) concensus: 3. ( ) + ( Z) + ( Z) = 3D. ( + ) ( + Z) ( + Z) = + Z ( + ) ( +Z) de Morgan s: 4. ( + +...) =... 4D. (...) = + +... generalized de Morgan s: 5. f (, 2,..., n,0,,+, ) = f(, 2,..., n,,0,,+) Winter 200 CSE370 - II - Boolean Algebra 4

Axioms and theorems of Boolean algebra (cont d) Duality a dual of a Boolean expression is derived by replacing by +, + by, 0 by, and by 0, and leaving variables unchanged any theorem that can be proven is thus also proven for its dual! a meta-theorem (a theorem about theorems) duality: 6. + +...... generalized duality: 7. f (, 2,..., n,0,,+, ) f(, 2,..., n,,0,,+) Different than demorgan s Law this is a statement about theorems this is not a way to manipulate (re-write) expressions Winter 200 CSE370 - II - Boolean Algebra 5 Proving theorems (rewriting) Using the laws of Boolean algebra: e.g., prove the theorem: + = distributivity (8) complementarity (5) identity (D) + = ( + ) ( + ) = () () = e.g., prove the theorem: + = identity (D) distributivity (8) identity (2) identity (D) + = + + = ( + ) ( + ) = () () = Winter 200 CSE370 - II - Boolean Algebra 6

Activity Prove consensus theorem using the laws of Boolean algebra: ( ) + ( Z) + ( Z) = + Z ( ) + ( Z) + ( Z) identity ( ) + () ( Z) + ( Z) complementarity ( ) + ( + ) ( Z) + ( Z) distributivity ( ) + ( Z) + ( Z) + ( Z) commutativity ( ) + ( Z) + ( Z) + ( Z) factoring ( ) ( + Z) + ( Z) ( + ) null ( ) () + ( Z) () identity ( ) + ( Z) identity. + 0 = D. = null 2. + = 2D. 0 = 0 complementarity: 5. + = 5D. = 0 commutativity: 6. + = + 6D. = associativity: 7. ( + ) + Z = + ( + Z) 7D. ( ) Z = ( Z) distributivity: 8. ( + Z) = ( ) + ( Z) 8D. + ( Z) = ( + ) ( + Z) factoring: 2. ( + ) ( + Z) = Z + 2D. + Z = ( + Z) ( + ) Winter 200 CSE370 - II - Boolean Algebra 7 Proving theorems (perfect induction) Using perfect induction (complete truth table): e.g., de Morgan s: ( + ) = NOR is equivalent to AND with inputs complemented ( ) = + NAND is equivalent to OR with inputs complemented ( + ) 0 0 0 0 0 0 0 0 ( ) + 0 0 0 0 0 0 0 0 Winter 200 CSE370 - II - Boolean Algebra 8

A simple example: -bit binary adder Cout Cin Inputs: A, B, Carry-in Outputs: Sum, Carry-out A A A A A B B B B B S S S S S A B Cin Cout S 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 A S B Cout Cin S = A B Cin + A B Cin + A B Cin + A B Cin Cout = A B Cin + A B Cin + A B Cin + A B Cin Winter 200 CSE370 - II Boolean Algebra 9