Modified from John Wakerly Lecture #2 and #3

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Logic Gates.
Introduction to Logic Circuits
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.
Types of Logic Circuits
CSIS 3510 Computer Organization and Architecture Topics covered in this lecture: –Review of De’Morgan’s Theorem –Using De’Morgan’s Theorem –Building a.
Logical Systems Synthesis.
ECE 2110: Introduction to Digital Systems Combinational Logic Design Principles.
Chapter 2 Logic Circuits.
Boolean rules for simplification Dr. Ahmed Telba.
EE365 Boolean algebra Combinational-circuit analysis.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
EE365 Adv. Digital Circuit Design Clarkson University Lecture #2 Boolean Laws and Methods.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Modified from John Wakerly Lecture #2 and #3 CMOS gates at the transistor level Boolean algebra Combinational-circuit analysis.
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
Boolean Algebra Boolean algebra Boolean algebra, like any other deductive mathematical system, may be defined with –a set of elements, –a set of operators,
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
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.
Combinational Logic 1.
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.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
CHAPTER 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs
Lecture 4 Boolean Algebra. Logical Statements °A proposition that may or may not be true: Today is Monday Today is Sunday It is raining °Compound Statements.
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.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
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.
ECE 2110: Introduction to Digital Systems
DE MORGAN’S THEOREM. De Morgan’s Theorem De Morgan’s Theorem.
CEC 220 Digital Circuit Design SOP and POS forms Friday, Sept 11 CEC 220 Digital Circuit Design Slide 1 of 17.
Boolean or, Switching Algebra. Switching Algebra The two-valued Boolean algebra is also called “Switching algebra” by engineers and computer scientists.
Lecture 4 Topics Boolean Algebra Huntington’s Postulates Truth Tables
Logic Gates and Boolean Algebra
De Morgan’s Theorem,.
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
ECE 2110: Introduction to Digital Systems
Logic Gates and Boolean Algebra
CS 105 Digital Logic Design
ECE 3110: Introduction to Digital Systems
Gate Circuits and Boolean Equations
CHAPTER 2 Boolean Algebra
Introduction to Logic Gates
Logic Gates.
ENGR 212 / CSCI February, 2003 Unless otherwise indicated these slides are taken from John Wakely’s Stanford EE 121, Digital Design Laboratory.
Digital Logic.
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Princess Sumaya University
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
Lecture 2-1 Boolean Algebra
Lecture 6 Topics Combinational Logic Circuits
ECE 331 – Digital System Design
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
CHAPTER 2 Boolean Algebra
Boolean Algebra Why study Boolean Algebra?
Boolean Algebra.
Chapter 2 Boolean Algebra and Logic Gate
CSE 370 – Winter Combinational Logic - 1
Lecture 4 Topics Boolean Algebra Huntington’s Postulates Truth Tables
Logic Gates.
Digital Systems Design
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
Chapter 2 Introduction to Logic Circuits
EE121 John Wakerly Lecture #3
Digital Logic Chapter-2
COMP541 Combinational Logic - 3
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:

Modified from John Wakerly Lecture #2 and #3 CMOS gates at the transistor level Boolean algebra Combinational-circuit analysis

CMOS NAND Gates Use 2n transistors for n-input gate

CMOS NAND -- switch model

CMOS NAND -- more inputs (3)

Inherent inversion. Non-inverting buffer:

2-input AND gate:

CMOS NOR Gates Like NAND -- 2n transistors for n-input gate

NAND vs. NOR For a given silicon area, PMOS transistors are “weaker” than NMOS transistors. NAND NOR Result: NAND gates are preferred in CMOS.

Boolean algebra a.k.a. “switching algebra” Positive-logic convention 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.)

Boolean operators Complement: X¢ (opposite of X) AND: X × Y OR: X + Y Axiomatic definition: A1-A5, A1¢-A5¢ binary operators, described functionally by truth table.

More definitions 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¢

Logic symbols

Theorems Proofs by perfect induction

More Theorems N.B. T8¢, T10, T11

Duality Swap 0 & 1, AND & OR Why? Result: Theorems still true Why? Each axiom (A1-A5) has a dual (A1¢-A5¢) Counterexample: X + X × Y = X (T9) X × X + Y = X (dual) X + Y = X (T3¢) ???????????? X + (X × Y) = X (T9) X × (X + Y) = X (dual) (X × X) + (X × Y) = X (T8) X + (X × Y) = X (T3¢) parentheses, operator precedence!

N-variable Theorems Prove using finite induction Most important: DeMorgan theorems

DeMorgan Symbol Equivalence

Likewise for OR (be sure to check errata!)

DeMorgan Symbols

Even more definitions (Sec. 4.1.6) Product term Sum-of-products expression Sum term Product-of-sums expression Normal term Minterm (n variables) Maxterm (n variables)

Truth table vs. minterms & maxterms

Combinational analysis

Signal expressions Multiply out: F = ((X + Y¢) × Z) + (X¢ × Y × Z¢) = (X × Z) + (Y¢ × Z) + (X¢ × Y × Z¢)

New circuit, same function

“Add out” logic function Circuit:

Shortcut: Symbol substitution

Different circuit, same function

Another example

Short Review of Exor Logic A  A = 0 A  A’ = 1 A  1=A’ A’  1=A A  0=A A  B= B  A A B = B A A(B  C) = AB  AC A+B = A  B  AB A+B = A  B when AB = 0 A  (B  C) = (A  B)  C (A B) C = A (B C) A+B = A  B  AB = A B(1  A) = A  BA’ These rules are sufficient to minimize Exclusive Sum of Product expression for small number of variables We will use these rules in the class for all kinds of reversible, quantum, optical, etc. logic. Try to remember them or put them to your “creepsheet”.

Challenge Problems for ambitious students Problem 1. Express function AB+CD+A’C using only EXORs and AND gates Problem 2. Prove that A+B = A  B  AB Problem 3 . Prove that A+B = A  B when AB = 0 Problem 4. Given are three functions of three inputs: A = NOT(a), B = NOT(b), C = NOT(c). You have only two inverters. You can have an arbitrary large set of two-input AND and OR gates. Realize these three functions with the gates that you have at your disposal. You cannot use other gates. You can use only two inverters. Draw the schematic of the solution