1 CK Cheng CSE Dept. UC San Diego CS 140, Lecture 2 Combinational Logic.

Slides:



Advertisements
Similar presentations
Digital Circuits.
Advertisements

Logical Systems Synthesis.
Chapter 2 Logic Circuits.
ECE 301 – Digital Electronics Minterm and Maxterm Expansions and Incompletely Specified Functions (Lecture #6) The slides included herein were taken from.
CS 140 Lecture 2 Combinational Logic CK Cheng 4/04/02.
1 CS 140 Lecture 3 Combinational Logic Professor CK Cheng CSE Dept. UC San Diego.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
1 CK Cheng CSE Dept. UC San Diego CS 140, Lecture 2 Combinational Logic.
CK Cheng Tuesday 10/2/02 CS 140 Lecture 2. Part I. Combinational Logic I) Specification –a. Language –b. Truth Table –c. Boolean Algebra –d. Incompletely.
Lecture 1: Introduction to Digital Logic Design CK Cheng Thursday 9/26/02.
1 CSE 20: Lecture 8 Boolean Postulates and Theorems CK Cheng 4/26/2011.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
Lecture 1: Introduction to Digital Logic Design CK Cheng Tuesday 4/1/02.
1 CS 140 Lecture 3 Combinational Logic Professor CK Cheng CSE Dept. UC San Diego.
1 CSE 20: Lecture 7 Boolean Algebra CK Cheng 4/21/2011.
1 CK Cheng CSE Dept. UC San Diego CSE 140, Lecture 2 Combinational Logic.
Chapter 2: Boolean Algebra and Logic Functions
Lecture 3: Incompletely Specified Functions and K Maps CSE 140: Components and Design Techniques for Digital Systems Fall 2014 CK Cheng Dept. of Computer.
Boolean Algebra – I. Outline  Introduction  Digital circuits  Boolean Algebra  Two-Valued Boolean Algebra  Boolean Algebra Postulates  Precedence.
1 COMBINATIONAL LOGIC One or more digital signal inputs One or more digital signal outputs Outputs are only functions of current input values (ideal) plus.
طراحی مدارهای منطقی نیمسال دوم دانشگاه آزاد اسلامی واحد پرند.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
CSE 140, Lecture 2 Combinational Logic
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
Boolean Algebra AND gate A B | AB 0 0 | | | | 1 OR gate A B | A + B 0 0 | | | | 1 NOT gate _ A | A or A’ 0 | 1 1 |
Digital Logic Design Week 4 Boolean algebra. Laws and rules De Morgan’s theorem Analysis of logic circuits Standard forms Project 1 preparation.
CSE 20: Lecture 7 Boolean Algebra CK Cheng
Lecture 3. Combinational Logic 1 Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System Education & Research.
Chapter 2 Digital Design and Computer Architecture, 2 nd Edition Chapter 2 David Money Harris and Sarah L. Harris.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
CHAPTER 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  Boolean postulate  Simplifying boolean equations  Truth tables You will learn: 2.
1 CK Cheng CSE Dept. UC San Diego CSE 140, Lecture 2 Combinational Logic.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
CSE 140: Components and Design Techniques for Digital Systems Lecture 3: Incompletely Specified Functions and K Maps CK Cheng Dept. of Computer Science.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
ECE DIGITAL LOGIC LECTURE 6: BOOLEAN ALGEBRA Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 02/01/2016.
ECE 301 – Digital Electronics
Lecture 3: Incompletely Specified Functions and K Maps
COSC3330 Computer Architecture Lecture 2. Combinational Logic
Logic Gates and Boolean Algebra
Chapter 2: Boolean Algebra and Logic Functions
ECE 2110: Introduction to Digital Systems
Logic Gates and Boolean Algebra
CS 105 Digital Logic Design
ECE 3110: Introduction to Digital Systems
CHAPTER 2 Boolean Algebra
Princess Sumaya University
CSE 140, Lecture 2 Combinational Logic
CSE 311 Foundations of Computing I
Boolean Algebra.
Lecture 3: Incompletely Specified Functions and K Maps
Boolean Algebra.
Boolean Algebra & Logic Circuits
CSE 370 – Winter Combinational Logic - 1
January 19 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
Boolean Algebra Introduction CSCI 240
Boolean Algebra.
COMS 361 Computer Organization
CSE 140 Lecture 3 Combinational Logic: Implementation
CSE 20: Lecture 8 Boolean Postulates and Theorems CK Cheng
Chapter 2 Digital Design and Computer Architecture, 2nd Edition
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Lecture 3: Incompletely Specified Functions and K Maps
Lecture 2: Combinational Logic Design
Presentation transcript:

1 CK Cheng CSE Dept. UC San Diego CS 140, Lecture 2 Combinational Logic

2 Outlines Review of Boolean Algebra Specification Synthesis

3 Combinational Logic vs Boolean Algebra Schematic Diagram: 5 primary inputs 4 components 9 signal nets 12 pins ab + cd abab cdcd e cd ab e (ab+cd) Boolean Algebra: 5 literals 4 operators

Copyright © 2007 Elsevier 2- Some Definitions Complement: variable with a bar over it A, B, C Literal: variable or its complement A, A, B, B, C, C Implicant: product of literals ABC, AC, BC Minterm: product that includes all input variables ABC, ABC, ABC Maxterm: sum that includes all input variables (A+B+C), (A+B+C), (A+B+C)

5Copyright © 2007 Elsevier 1- Digital Discipline: Binary Values Typically consider only two discrete values: –1’s and 0’s –1, TRUE, HIGH –0, FALSE, LOW 1 and 0 can be represented by specific voltage levels, rotating gears, fluid levels, etc. Digital circuits usually depend on specific voltage levels to represent 1 and 0 Bit: Binary digit

1- Copyright © 2007 Elsevier1- Born to working class parents Taught himself mathematics and joined the faculty of Queen’s College in Ireland. Wrote An Investigation of the Laws of Thought (1854) Introduced binary variables Introduced the three fundamental logic operations: AND, OR, and NOT. George Boole,

1- Boolean Algebra Set of axioms and theorems to simplify Boolean equations Like regular algebra, but in some cases simpler because variables can have only two values (1 or 0) Axioms and theorems obey the principles of duality: –ANDs and ORs interchanged, 0’s and 1’s interchanged

1- Boolean Axioms

1- T1: Identity Theorem B 1 = B + 0 =

1- T1: Identity Theorem B 1 = B B + 0 = B

1- T2: Null Element Theorem B 0 = B + 1 =

1- T2: Null Element Theorem B 0 = 0 B + 1 = 1

1- T3: Idempotency Theorem B B = B + B =

1- T3: Idempotency Theorem B B = B B + B = B

1- T4: Identity Theorem B =

1- T4: Identity Theorem B = B

1- T5: Complement Theorem B B = B + B =

1- T5: Complement Theorem B B = 0 B + B = 1

1- Boolean Theorems: Summary

20 AND, OR, NOT A B C AND A1A1 A A B C OR A1A1 1 A0A0 0 A0A0 A A C NOT Review of Boolean algebra and switching functions 0 dominates in AND 1 dominates in OR

1- Boolean Theorems of Several Variables

22 1. Identity A * 1 = A A + 1 = 1 A * 0 = 0 A + 0 = A 2. Complement A + A’ = 1 A * A’ = 0 T8. Distributivity Law A(B+C) = AB + AC A+BC = (A+B)(A+C) A BCBC ACAC ABAB A BCBC ACAC ABAB

23 T7. Associativity (A+B) + C = A + (B+C) (AB)C = A(BC) C ABAB A BCBC C ABAB A BCBC T12. DeMorgan’s Law(A+B)’ = A’B’ (AB)’ = A’ + B’ T11. AC + AB + BC’ = AC + BC’

1- Simplifying Boolean Expressions: Example 1 Y = AB + AB

1- Simplifying Boolean Expressions: Example 1 Y = AB + AB = B(A + A)T8 = B(1)T5’ = BT1

1- Simplifying Boolean Expressions: Example 2 Y = A(AB + ABC)

1- Simplifying Boolean Expressions: Example 2 Y = A(AB + ABC) = A(AB(1 + C))T8 = A(AB(1))T2’ = A(AB)T1 = (AA)BT7 = ABT3

1- DeMorgan’s Theorem Y = AB = A + B Y = A + B = A B

1- Bubble Pushing Pushing bubbles backward (from the output) or forward (from the inputs) changes the body of the gate from AND to OR or vice versa. Pushing a bubble from the output back to the inputs puts bubbles on all gate inputs. Pushing bubbles on all gate inputs forward toward the output puts a bubble on the output and changes the gate body.

30 Part I. Combinational Logic I) Specification –a. Language –b. Truth Table –c. Boolean Algebra –d. Incompletely Specified Function

31 Binary Addition Carry Sum Carryout Sums Carry bits

32 Half Adder a b carry sum Truth Table a b Sum Carry

33 Switching Function Sum (a,b) = a’b + ab’ Ex: Sum (0,0) = 0’0 + 0*0’ = = 0 Sum (0,1) = 0’1 + 0*1’ = = 1 Sum (1,1) = 1’1 + 1*1’ = = 0 Carry (a, b) = a*b a b sum a b carry

34 Full Adder Id a b c in carry sum Truth Table a b Sum Carry C in

35 Minterm and Maxterm Id a b c in carryout a+b+c a+b+c’ a+b’+c a’ b c a’+b+c a b’c a b c’ a b c minterm maxterm

36 f 1 (a,b,c) = a’bc + ab’c + abc’ + abc a’bc = 1 iff (a,b,c,) = (0,1,1) ab’c = 1 iff (a,b,c,) = (1,0,1) abc’ = 1 iff (a,b,c,) = (1,1,0) abc = 1 iff (a,b,c,) = (1,1,1) f 1 (a,b,c) = 1 iff (a,b,c) = (0,1,1), (1,0,1), (1,1,0), or (1,1,1) Minterms Ex: f 1 (1,0,1) = 1’ ’ ’ = 1 f 1 (1,0,0) = 1’ ’ ’ = 0

37 f 2 (a,b,c) = (a+b+c)(a+b+c’)(a+b’+c)(a’+b’+c) a + b + c = 0 iff (a,b,c,) = (0,0,0) a + b + c’ = 0 iff (a,b,c,) = (0,0,1) a + b’ + c = 0 iff (a,b,c,) = (0,1,0) a’ + b + c = 0 iff (a,b,c,) = (1,0,0) f 2 (a,b,c) = 0 iff (a,b,c) = (0,0,0), (0,0,1), (0,1,0), (1,0,0) Maxterms Ex: f 2 (1,0,1) = (1+0+1)(1+0+1’)(1+0’+1)(1’+0+1) = 1 f 2 (0,1,0) = (0+1+0)(0+1+0’)(0+1’+0)(0’+1+0) = 0

38 f 1 (a,b,c) = a’bc + ab’c + abc’ + abc f 2 (a,b,c) = (a+b+c)(a+b+c’)(a+b’+c)(a’+b’+c) f 1 (a, b, c) = m 3 + m 5 + m 6 + m 7 =  m(3,5,6,7) f 2 (a, b, c) = M 0 M 1 M 2 M 4 =  M(0, 1, 2, 4) Question: Does f 1 = f 2 ? Yes! Prove using Boolean algebra.

39 Id a b c in carry minterm 4 = ab’c’ Minterm 4 = ab’c’ Only one row has a 1.

40 Id a b c in carry maxterm 4 = a+b+c Maxterm 4 = a’+b+c Only one row has a 0.

41 Id a b f (a, b) )The input does not happen. 2)The input happens, but the output is ignored. Examples: -Decimal number 0… 9 uses 4 bits. (1,1,1,1) does not happen. -Final carry out bit (output is ignored). Don’t care set is important because it allows us to minimize the function Incompletely Specified Function

42 Incompletely Specified Function Id a b c g(a,b,c) g 1 (a,b,c) canonical form w/ minterms g 2 (a,b,c) canonical form w/ maxterms Does g 1 (a,b,c) = g 2 (a,b,c)? No! Because there is a group of Don’t Care set. (g 1 only covers the onset, g 2 only covers the offset).