Computer Organization and Design Transistors & Logic - II

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

CSIS 3510 Computer Organization and Architecture Topics covered in this lecture: –Review of De’Morgan’s Theorem –Using De’Morgan’s Theorem –Building a.
Chapter 2 Logic Circuits.
Boolean Algebra and Reduction Techniques
Boolean rules for simplification Dr. Ahmed Telba.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
1 COMP541 Combinational Logic - II Montek Singh Aug 27, 2014.
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 and Logic Simplification. Boolean Addition & Multiplication Boolean Addition performed by OR gate Sum Term describes Boolean Addition.
Chapter 2: Boolean Algebra and Logic Functions
طراحی مدارهای منطقی نیمسال دوم دانشگاه آزاد اسلامی واحد پرند.
1 Why study Boolean Algebra? 4 It is highly desirable to find the simplest circuit implementation (logic) with the smallest number of gates or wires. We.
Lecture 17: Digital Design Today’s topic –Intro to Boolean functions Reminders –HW 4 due Wednesday 10/8/2014 (extended) –HW 5 due Wednesday 10/15/2014.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Combinational Logic 1.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
LOGIC GATES AND CIRCUITS Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
LOGIC GATES & BOOLEAN ALGEBRA
Computer Organization and Design Transistors & Logic - II Montek Singh Wed, Oct 16, 2013 Lecture 10.
Computer Organization and Design Transistors & Logic - II Montek Singh Oct {21,28}, 2015 Lecture 10.
1 BOOLEAN ALGEBRA Basic mathematics for the study of logic design is Boolean Algebra Basic laws of Boolean Algebra will be implemented as switching devices.
Boolean Algebra and Reduction Techniques
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
1 COMP541 Combinational Logic - II Montek Singh Jan 18, 2012.
Chapter 3 Digital Logic Structures
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
CEC 220 Digital Circuit Design SOP and POS forms Friday, Sept 11 CEC 220 Digital Circuit Design Slide 1 of 17.
Computer Organization and Design Transistors & Logic - II Montek Singh Mon, Mar 14, 2011 Lecture 9.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
Logic Gates and Boolean Algebra Introduction to Logic II.
Computer Organization and Design Transistors & Logic - II Montek Singh Wed, Oct 17, 2012 Lecture 11.
Digital Logic Circuits, Digital Component and Data Representation Course: BCA-2 nd Sem Subject: Computer Organization And Architecture Unit-1 1.
Chapter 5 Combinational Logic 组合逻辑
Combinational Circuits Part 1
COMP541 Combinational Logic - 3
COSC3330 Computer Architecture Lecture 2. Combinational Logic
Department of Preparatory Year, Umm Al Qura University
Transistors and Logic - II
Chapter 3 Notes – Part II Review Questions
Chapter 2: Boolean Algebra and Logic Functions
COMP541 Combinational Logic - II
Unit 2 Boolean Algebra.
Boolean Algebra & De Morgan's Theorems
CS 105 Digital Logic Design
Gate Circuits and Boolean Equations
CHAPTER 2 Boolean Algebra
Logic Gates.
COMP541 Combinational Logic - 3
Overview Part 1 – Gate Circuits and Boolean Equations
Digital Logic.
Boolean Algebra and Combinational Logic
Boolean Algebra.
Princess Sumaya University
TN 221: DIGITAL ELECTRONICS 1
Boolean Algebra Why study Boolean Algebra?
Boolean Algebra & Logic Circuits
BASIC & COMBINATIONAL LOGIC CIRCUIT
Logic Gates.
Boolean Algebra.
COMP541 Combinational Logic - II
Logic Circuits I Lecture 3.
ECE 352 Digital System Fundamentals
COMP541 Combinational Logic - II
Special Gates Combinational Logic Gates
COMP541 Combinational Logic - 3
Combinational Logic Circuit
Presentation transcript:

Computer Organization and Design Transistors & Logic - II Montek Singh Nov 1, 2017 Lecture 10

Today’s Topics Basic gates Boolean algebra Synthesis using standard gates Truth tables Universal gates: NAND and NOR Gates with more than 2 inputs Sum-of-Products DeMorgan’s Law

Single-Input Logic Gates

Two-Input Logic Gates

More Two-Input Logic Gates

Multiple-Input Logic Gates

Multiple-Input Logic Gates

Basic gates vs. single CMOS gates Not all basic gates can be implemented using a single CMOS gate Some can be inverter, NAND, NOR we have covered their CMOS implementation Others need multiple CMOS gates connected together AND: implemented as NAND + inverter OR: implemented as NOR + inverter buffer: implemented as inverter + inverter XOR / XNOR: will see shortly

Boolean Algebra Algebra of 1s and 0s

Table of Identities

Duals Left and right columns are duals Replace ANDs and ORs, 0s and 1s

Single Variable Identities

Commutativity Operation is independent of order of variables

Associativity Independent of order in which we group So can also be simply written as: X+Y+Z, and XYZ

Distributivity

Substitution Can substitute arbitrarily large algebraic expressions for the variables Distribute an operation over the entire expression Example: X + YZ = (X+Y)(X+Z) Substitute ABC for X ABC + YZ = (ABC + Y)(ABC + Z)

DeMorgan’s Theorem Used a lot NOR  invert, then AND NAND  invert, then OR

Truth Tables for DeMorgan’s

DeMorgan’s Thm.: “Bubble Pushing” imagine the bubble at the output is being pushed towards the inputs it becomes a bubble at every input, and the shape of the gate changes from AND to OR, and vice versa

Algebraic/Boolean Manipulation Apply algebraic and Boolean identities to simplify expression Example:

Simplification Example Apply Apply Apply

Fewer Gates

From Truth Table to Gate-Level Circuit

Start with Functional Spec We need to start somewhere usually it’s the functional specification A B Y If C is 1 then copy B to Y, otherwise copy A to Y C Truth Table First step is to translate a verbal description into a tabular form. Any combinational function can be represented as a “truth table.” A truth table lists the output(s) for each combination of inputs.

We Can Make Most Gates Out of Others Example 1: B > A Output Y is 1 if and only if B is 1 AND A is 0  Y = B AND (NOT(A)) B>A A B y

We Can Make Most Gates Out of Others Example 2: A XOR B Output Y is 1 if and only if … B is 1 AND A is 0 --OR— B is 0 AND A is 1  Y = B AND (NOT(A)) OR A AND (NOT(B)) XOR A B Y A B Y Symbol for XOR

How many gates do we really need?

= = One Will Do! NANDs and NORs are universal one can make any circuit out of just NANDs, or out of just NORs! = =

Gates with more than two inputs Sometimes can be directly created in CMOS e.g., 3-input NOR, 4-input NAND etc. Often constructed using smaller gates: e.g., N-input AND gate using several 2-input AND gates AND(A0, A1, A2 … AN-1) = AND … (AND(AND(A0, A1), A2) … AN-1) Delay in computing final output is linear in # of gates: O(N) can we do it faster? A0 A1 A2 A3 AN-1 DIFFERENT prop delays from each INPUT... ... but we’re taking MAX (worst case).

Gate trees are faster More parallelism: combine two at a time in parallel much like a tournament bracket! A1 A0 A3 A2 AN-3 AN-4 AN-1 AN-2 Delay is now logarithmic: O(log2(N))

Given truth table: Develop Boolean equation Systematic Approach Given truth table: Develop Boolean equation

Design Approach: Sum-of-Products Three steps: Write functional spec as a truth table Write down a Boolean expression for every row with ‘1’ in the output an input that is ‘0’ becomes inverted AND all the inputs in each term Wire up the gates! This approach give us expressions of the type: SUM-OF-PRODUCTS (“SOP”) Boolean “SUM” actually means OR Boolean “PRODUCT” actually means AND Truth Table

Gate-level circuit We can implement SUM-OF-PRODUCTS… …with just three levels of logic: INVERTERS/AND/OR A B C Y

Notations Symbols and Boolean operators:

An Interesting 3-Input Gate: Multiplexer Based on C, select the A or B input to be copied to the output Y. Truth Table A B Y C If C is 1 then copy B to Y, otherwise copy A to Y 2-input Multiplexer (“mux”) A B C 1 Gate symbol

Multiplexer (MUX) Shortcuts A 4-bit wide 2-input Mux A 4-input Mux (implemented as a tree) 1 1S A2 B2 A3 B3 Y0 S A0 B0 A1 B1 Y1 Y2 Y3 1 1S I0 I1 I2 I3 Y S0 S1 A B C D S 1 2 3 Y A0-3 B0-3 S Y0-3

Next Class Arithmetic circuits