KU College of Engineering Elec 204: Digital Systems Design 1 Review D: n bit binary number D = (d n-1 ∙ ∙ ∙ d 1 d 0 ) 2 If D is an unsigned binary number.

Slides:



Advertisements
Similar presentations
Sistemas Digitais I LESI - 2º ano Lesson 3 - Boolean Algebra U NIVERSIDADE DO M INHO E SCOLA DE E NGENHARIA Prof. João Miguel Fernandes
Advertisements

Lecture 5 EGRE 254 1/28/09. 2 Boolean algebra a.k.a. “switching algebra” –deals with Boolean values -- 0, 1 Positive-logic convention –analog voltages.
ECE 2110: Introduction to Digital Systems Combinational Logic Design Principles.
Morgan Kaufmann Publishers
EE365 Boolean algebra Combinational-circuit analysis.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
EECC341 - Shaaban #1 Lec # 5 Winter Switching Algebra: Principle of Duality Any theorem or identity in switching algebra remains true if.
COMBINATIONAL LOGIC CIRCUITS C.L. x1 x2 xn Z Z = F (x1, x2, ……., Xn) F is a Binary Logic (BOOLEAN ) Function Knowing F Allows Straight Forward Direct Implementation.
EE365 Adv. Digital Circuit Design Clarkson University Lecture #2 Boolean Laws and Methods.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
Modified from John Wakerly Lecture #2 and #3 CMOS gates at the transistor level Boolean algebra Combinational-circuit analysis.
Lecture 3. Boolean Algebra, Logic Gates
Combinational Digital Circuits. Measurement Our world is an analog world. Measurements that we make of the physical objects around us are never in discrete.
Chapter 2: Boolean Algebra and Logic Functions
Boolean Algebra Boolean algebra Boolean algebra, like any other deductive mathematical system, may be defined with –a set of elements, –a set of operators,
Chapter 2 Combinational Systems And / Or / Not. TRIAD PRINCIPLE: Combinational is about And / Or / Not combinations As well as equivalent functions. It.
9/15/09 - L6 Standard FormsCopyright Joanne DeGroat, ECE, OSU1 Standard Forms.
1 Logic Gates Digital Computer Logic Kashif Bashir WWW:
IKI a-Boolean Algebra Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes at UIUC,
Boolean Algebra and Digital Circuits
Switching functions The postulates and sets of Boolean logic are presented in generic terms without the elements of K being specified In EE we need to.
ECE 331 – Digital System Design
Combinational Logic 1.
ECE 2110: Introduction to Digital Systems PoS minimization Don’t care conditions.
1 ENGR 254 Lecture DeMorgan Symbol Equivalence.
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
LOGIC GATES & BOOLEAN ALGEBRA
June 11, 2002© Howard Huang1 Boolean algebra Last time we talked about Boolean functions, Boolean expressions, and truth tables. Today we’ll learn.
Chap 2. Combinational Logic Circuits
Discrete Mathematics CS 2610 September Equal Boolean Functions Two Boolean functions F and G of degree n are equal iff for all (x 1,..x n )  B.
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
CHAPTER 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
Lecture 3 Combinational Circuits
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
Standard & Canonical Forms COE 202 Digital Logic Design Dr. Aiman El-Maleh College of Computer Sciences and Engineering King Fahd University of Petroleum.
ECE 2110: Introduction to Digital Systems
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. De Morgan’s Theorem De Morgan’s Theorem.
Lecture 3 Boolean algebra Topics Error Correcting Codes Boolean algebra Combinational circuits Algebraic analysis, Truth tables, Logic Diagrams Sums-of-Products.
Boolean or, Switching Algebra. Switching Algebra The two-valued Boolean algebra is also called “Switching algebra” by engineers and computer scientists.
CHAPTER 2 Boolean algebra and Logic gates
Chapter 2: Boolean Algebra and Logic Functions
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
ECE 2110: Introduction to Digital Systems
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
CS 105 Digital Logic Design
ECE 3110: Introduction to Digital Systems
Complement of a Function
Overview Part 1 – Gate Circuits and Boolean Equations
Boolean algebra Last time we talked about Boolean functions, Boolean expressions, and truth tables. Today we’ll learn how to how use Boolean algebra to.
September 7 Notes Boolean Algebra.
ECE 331 – Digital System Design
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Modified from John Wakerly Lecture #2 and #3
Lecture 3 Boolean algebra
Chapter 2 Boolean Algebra and Logic Gate
Functions Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways: We can represent.
January 19 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
Digital Systems Design
EE121 John Wakerly Lecture #3
From now on: Combinatorial Circuits:
Digital Logic Chapter-2
Digital Logic Chapter-2
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Presentation transcript:

KU College of Engineering Elec 204: Digital Systems Design 1 Review D: n bit binary number D = (d n-1 ∙ ∙ ∙ d 1 d 0 ) 2 If D is an unsigned binary number D = (2 n-1 d n-1 + ∙ ∙ ∙ 2 1 d d 0 ) 10 If D is a sign-magnitude binary number D = + (2 n-2 d n-2 + ∙ ∙ ∙ 2 1 d d 0 ) 10 if d n-1 =0 = – (2 n-2 d n-2 + ∙ ∙ ∙ 2 1 d d 0 ) 10 if d n-1 =1 (–D) = (d ’ n-1 d n-2 ∙ ∙ ∙ d 1 d 0 ) 2 If D is in two`s complement system D = (-2 n-1 d n n-2 d n-2 + ∙ ∙ ∙ 2 1 d d 0 ) 10 (–D) = 2 n – D = (2 n -1) – D + 1 = (d ’ n-1 d ’ n-2 ∙ ∙ ∙ d ’ 1 d ’ 0 ) 2 + 1

KU College of Engineering Elec 204: Digital Systems Design 2 Two’s complement multiplication –Shift and two’s complement addition except for the last step. Remember MSB represent (-2 n-1 ) x – initial partial product, which is zero partial product partial product shifted-and-negated Review

KU College of Engineering Elec 204: Digital Systems Design 3 BCD: Binary-Coded Decimal 0-9 encoded with their 4-bit unsigned binary representation (0000 – 1001). The codewords (1010 – 1111) are not used. 8-bit byte represent values from 0 to 99. BCD Addition: Carry Sum Add BCD sum BCD result Review

KU College of Engineering Elec 204: Digital Systems Design 4 2. Combinational Logic Circuits Boolean Algebra –switching algebra –deals with Boolean values --- 0, 1 Positive-logic convention –analog voltages LOW, HIGH  0, 1 Negative logic --- seldom used Signal values denoted by variables (X, Y, FRED, etc.)

KU College of Engineering Elec 204: Digital Systems Design 5 Boolean operators Complement:X (opposite of X) AND:X  Y OR:X + Y

KU College of Engineering Elec 204: Digital Systems Design 6 Literal: a variable or its complement –X, X, FRED, CS_L Expression: literals combined by AND, OR, parentheses, complementation –X+Y –P  Q  R –A + B  C –((FRED  Z) + CS_L  A  B  C + Q5)  RESET Equation: Variable = expression –P = ((FRED  Z) + CS_L  A  B  C + Q5)  RESET

KU College of Engineering Elec 204: Digital Systems Design 7 Basic Logic Gates

KU College of Engineering Elec 204: Digital Systems Design 8 Theorems

KU College of Engineering Elec 204: Digital Systems Design 9 More Theorems

KU College of Engineering Elec 204: Digital Systems Design 10 Duality Swap 0 & 1, AND & OR –Result: Theorems still true Why? –Each axiom (T1-T5) has a dual (T1-T5  Counterexample: X + X  Y = X (T9) X  X + Y = X (dual) X + (X  Y) = X (T9) X  (X + Y) = X (dual) (X  X) + (X  Y) = X (T8)

KU College of Engineering Elec 204: Digital Systems Design 11 N-variable Theorems

KU College of Engineering Elec 204: Digital Systems Design 12 DeMorgan Symbol Equivalence

KU College of Engineering Elec 204: Digital Systems Design 13 Similar for OR

KU College of Engineering Elec 204: Digital Systems Design 14 Complement of a function F 1 = XYZ’ + X’Y’Z F 1 ’ = (XYZ’ + X’Y’Z)’ = (XYZ’)’  (X’Y’Z)’ = (X’+Y’+Z)  (X+Y+Z’) Complement = take dual +complement each literal Dual of F 1 = (X+Y+Z’)  (X’+Y’+Z) F 1 ’ = (X’+Y’+Z)  (X+Y+Z’)

KU College of Engineering Elec 204: Digital Systems Design 15 Standard Forms: –Product and sum terms Minterm: A product term in which all variables appear exactly once, either complemented or not (2 n minterms) –For a two variable function, minterms are X’Y’, X’Y, XY’, XY m 0, m 1, m 2, m 3 Maxterms: A sum term that contains all variables in complemented or uncomplemented form X+Y, X+Y’, X’+Y, X’+Y’ M 0, M 1, M 2, M 3

KU College of Engineering Elec 204: Digital Systems Design 16

KU College of Engineering Elec 204: Digital Systems Design 17 Alternative representations –F(X,Y,Z) = X’Y’Z’ + X’YZ’ +XY’Z + XYZ = m 0 + m 2 + m 5 + m 7 = –F’(X,Y,Z) = X’Y’Z + X’YZ + XY’Z’ + XYZ’ = m 1 + m 3 + m 4 + m 6 = –F(X,Y,Z) = (m 1 + m 3 + m 4 + m 6 )’ = m 1 ’ m 3 ’ m 4 ’ m 6 ’ = M 1 M 3 M 4 M 6 =

KU College of Engineering Elec 204: Digital Systems Design 18 Maxterms are seldom used, we’ll use minterms rather. Properties of minterms: –There are 2 n minterms. 1-1 with binary numbers 0-(2 n -1) –Every Boolean function can be expressed as sum of minterms. –Absent minterms belong to complement function –A function that include all minterms is equal to logic 1.