Logic Design. Digital Logic. Goal: to become literate in most common concepts and terminology of digital electronics

Similar documents
to become literate in most common concepts and terminology of digital electronics

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

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

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

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

CHAPTER1: Digital Logic Circuits Combination Circuits

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

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

Additional Gates COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

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

Fundamentals of Digital Design

Boolean Algebra, Gates and Circuits

In Module 3, we have learned about Exclusive OR (XOR) gate. Boolean Expression AB + A B = Y also A B = Y. Logic Gate. Truth table

Combinational Logic. By : Ali Mustafa

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

Boolean Algebra. Philipp Koehn. 9 September 2016

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

UNIVERSITI TENAGA NASIONAL. College of Information Technology

ELCT201: DIGITAL LOGIC DESIGN

Chapter 2. Boolean Algebra and Logic Gates

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

211: Computer Architecture Summer 2016

MC9211 Computer Organization

Digital Logic (2) Boolean Algebra

CS61c: Representations of Combinational Logic Circuits

Chapter 7 Logic Circuits

Combinational Logic. Review of Combinational Logic 1

Boolean Algebra & Logic Gates. By : Ali Mustafa

Chapter 2: Switching Algebra and Logic Circuits

EEE130 Digital Electronics I Lecture #4

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Experiment 7: Magnitude comparators

ELCT201: DIGITAL LOGIC DESIGN

UNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables

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

Unit 2 Session - 6 Combinational Logic Circuits

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

Chapter 2 Boolean Algebra and Logic Gates

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

Circuits & Boolean algebra.

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

Building a Computer Adder

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

Cs302 Quiz for MID TERM Exam Solved

Logic Design. Chapter 2: Introduction to Logic Circuits

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Unit 2 Boolean Algebra

Unit 8A Computer Organization. Boolean Logic and Gates

CSE 140L Spring 2010 Lab 1 Assignment Due beginning of the class on 14 th April

Combinational Logic. Course Instructor Mohammed Abdul kader

Floating Point Representation and Digital Logic. Lecture 11 CS301

Computer organization

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

Digital Circuit And Logic Design I. Lecture 3

Chap 2. Combinational Logic Circuits

Boolean Algebra and Logic Gates

Logic and Boolean algebra

1 Boolean Algebra Simplification

Switches: basic element of physical implementations

Systems I: Computer Organization and Architecture

Computer Organization: Boolean Logic

EGC221: Digital Logic Lab

Boolean Algebra and Digital Logic

Review: Additional Boolean operations

Chapter 2 Combinational Logic Circuits

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Lecture 22 Chapters 3 Logic Circuits Part 1

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

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

Gate-Level Minimization

CMSC 313 Lecture 17. Focus Groups. Announcement: in-class lab Thu 10/30 Homework 3 Questions Circuits for Addition Midterm Exam returned

Lecture 2 Review on Digital Logic (Part 1)

CPE100: Digital Logic Design I

COS 140: Foundations of Computer Science

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

Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.

Chapter 2 Combinational Logic Circuits

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

Signals and Systems Digital Logic System

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

Sample Test Paper - I

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

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

CHAPTER 12 Boolean Algebra

Chapter 2. Digital Logic Basics

BOOLEAN ALGEBRA INTRODUCTION SUBSETS

Week-I. Combinational Logic & Circuits

Logic Gate Level. Part 2

EEA051 - Digital Logic 數位邏輯 吳俊興高雄大學資訊工程學系. September 2004

Part 1: Digital Logic and Gates. Analog vs. Digital waveforms. The digital advantage. In real life...

CS/COE0447: Computer Organization and Assembly Language

University of Technology

Chapter 2 Boolean Algebra and Logic Gates

Digital Logic Appendix A

Digital Design. Digital Design

Implementation of Boolean Logic by Digital Circuits

Logic Gates and Boolean Algebra

EECS Variable Logic Functions

ENG2410 Digital Design Combinational Logic Circuits

Transcription:

Logic Design 1 Goal: to become literate most common concepts and termology of digital electronics Important concepts: - use abstraction and composition to implement complicated functionality with very simple digital electronics - keep thgs as simple, regular, and small as possible Thgs we will not explore: - physics - chip fabrication - layout - tools for chip specification and design 2005-2012 McQua

Motivation Consider the external view of addition: 2 x y Adder??? x + y What kd of circuitry would go to the "black box" adder to produce the correct results? How would it be designed? What modular components might be used? 2005-2012 McQua

Basic Logic Gates 3 Fundamental buildg blocks of circuits; mirror the standard logical operations: NOT gate AND gate OR gate A Out 0 1 1 0 A B Out 0 0 0 0 1 0 1 0 0 1 1 1 A B Out 0 0 0 0 1 1 1 0 1 1 1 1 Note the outputs of the AND and OR gates are commutative with respect to the puts. Multi-way versions of the AND and OR gates are commonly assumed design. 2005-2012 McQua

Additional Common Logic Gates 4 XOR gate NAND gate NOR gate A B Out 0 0 0 0 1 1 1 0 1 1 1 0 A B Out 0 0 1 0 1 1 1 0 1 1 1 0 A B Out 0 0 1 0 1 0 1 0 0 1 1 0 XNOR gate A B Out 0 0 1 0 1 0 1 0 0 1 1 1 2005-2012 McQua

Combational and Sequential Circuits 5 A combational circuit is one with no "memory". That is, its output depends only upon the current state of its puts, and not at all on the current state of the circuit itself. A sequential circuit is one whose output depends not only upon the current state of its puts, but also on the current state of the circuit itself. For now, we will consider only combational circuits. 2005-2012 McQua

From Function to Combational Circuit 6 Given a simple Boolean function, it is relatively easy to design a circuit composed of the basic logic gates to implement the function: z: x y + x y This circuit implements the exclusive or (XOR) function, often represented as a sgle logic gate: 2005-2012 McQua

Sum-of-Products Form 7 A Boolean expression is said to be sum-of-products form if it is expressed as a sum of terms, each of which is a product of variables and/or their complements: a b+ a b It's relatively easy to see that every Boolean expression can be written this form. Why? The summands the sum-of-products form are called mterms. - each mterm contas each of the variables, or its complement, exactly once - each mterm is unique, and therefore so is the representation (aside from order) 2005-2012 McQua

Sum-of-Products Form 8 Given a truth table for a Boolean function, construction of the sum-of-products representation is trivial: - for each row which the function value is 1, form a product term volvg all the variables, takg the variable if its value is 1 and the complement if the variable's value is 0 - take the sum of all such product terms x y z F 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 x y z x y z x y z x y z F = x y z+ x y z+ x y z+ x y z 2005-2012 McQua

Equivalence 9 F( x, y, z) = x y z+ x y z+ x y z+ x y z Given = x y z+ x y z+ x y z+ x y z+ x y z+ x y z ( x y z x y z) ( x y z x y z) ( x y z x y z) ( x x) y z ( y y) x z ( z z) x y = + + + + + = + + + + + Idempotence, twice = 1 y z+ 1 x z+ 1 x y Boundedness Commutativity, Associativity Commutativity, Distributivity = x y+ x z+ y z Boundedness, Commutativity = Gxyz (,, ) 2005-2012 McQua

Efficiency of Expression 10 While the sum-of-products form is arguably natural, it is not necessarily the simplest way form, either : - number of gates (space) - depth of circuit (time) F( x, y, z) = x y z + x y z + x y z + x y z Gxyz (,, ) = x y+ yz + xz 2005-2012 McQua

1-bit Half Adder 11 Let's make a 1-bit adder (half adder) we can thk of it as a Boolean function with two puts and the followg defg table: A B Sum 0 0 0 0 1 1 1 0 1 1 1 0 Here's the resultg circuit. It's equivalent to the XOR circuit seen earlier. But the fal row of the truth table above, we've ignored the fact that there's a carry-out bit. 2005-2012 McQua

Dealg with the Carry 12 The carry-out value from the 1-bit sum can also be expressed via a truth table. However, the result won't be terribly useful unless we also take to account a carry-. A B C Sum C out 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1 The resultg sum-of-products expressions are: Sum = A B C B C B C B C C = A B C B C B C B C out ( ) = ABC + ABC + AB C + C = ABC + ABC + AB = AC + BC + AB 2005-2012 McQua

1-bit Full Adder 13 The expressions for the sum and carry lead to the followg unified implementation: Sum = A Cout = A B C + B C 2005-2012 McQua

1-bit Full Adder as a Module 14 When buildg more complex circuits, it is useful to consider sub-circuits as dividual, "black-box" modules. For example: Sum = A Cout = A B C + B C 2005-2012 McQua

Chag an 8-bit Adder An 8-bit adder build by chag 1-bit adders: 15 This has one serious shortcomg. The carry bits must ripple from top to bottom, creatg a lag before the result will be obtaed for the fal sum bit and carry. 2005-2012 McQua