Formal Foundation of Digital Design

Similar documents
Chapter 2 Introduction to Logic Circuits

(CSC-3501) Lecture 6 (31 Jan 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

CHAPTER 3 BASIC & COMBINATIONAL LOGIC CIRCUIT

Subject: Analog and Digital Electronics Code:15CS32

Odd-Prime Number Detector The table of minterms is represented. Table 13.1

Digital Systems Principles and Applications TWELFTH EDITION. 3-3 OR Operation With OR Gates. 3-4 AND Operations with AND gates

Digital. Design. R. Ananda Natarajan B C D

University of Technology

Combinational Logic Design CH002

EXPERIMENT 5 Basic Digital Logic Circuits

2 Logic Gates THE INVERTER. A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs.

UNIT-2: BOOLEAN EXPRESSIONS AND COMBINATIONAL LOGIC CIRCUITS

Combinational logic. ! Regular logic: multiplexers, decoders, LUTs and FPGAs. ! Switches, basic logic and truth tables, logic functions

EECS 150 Homework 4 Solutions Fall 2008

6.1 In this section, you will design (but NOT build) a circuit with 4 inputs,

Analysis procedure. To obtain the output Boolean functions from a logic diagram, proceed as follows:

BOOLEAN ALGEBRA AND LOGIC FAMILIES

UC Berkeley CS61C : Machine Structures

Logic diagram: a graphical representation of a circuit

UC Berkeley CS61C : Machine Structures

Lecture 2: Digital Logic Basis

EMT1250 LABORATORY EXPERIMENT. EXPERIMENT # 4: Combinational Logic Circuits. Name: Date:

Lecture 15 Analysis of Combinational Circuits

In this lecture: Lecture 3: Basic Logic Gates & Boolean Expressions

a b y UC Berkeley CS61C : Machine Structures Hello Helo,world!

UC Berkeley CS61C : Machine Structures

Chapter 3 Describing Logic Circuits Dr. Xu

Asst. Prof. Thavatchai Tayjasanant, PhD. Power System Research Lab 12 th Floor, Building 4 Tel: (02)

Chapter 3 Digital Logic Structures

Digital Logic Circuits

Logic Design I (17.341) Fall Lecture Outline

and not if x >= 0 and x < 10: print("x is a single digit") &

Module 4: Design and Analysis of Combinational Circuits 1. Module-4. Design and Analysis of Combinational Circuits

Function Table of an Odd-Parity Generator Circuit

Gates and Circuits 1

DEPARTMENT OF ELETRONICS AND COMMUNICATION ENGINEERING COURSE NOTES FACULTY NAME/DESIGNATION: SUGAPRIYAA.THA / LECTURER

Name: Class: Date: 1. As more electronic systems have been designed using digital technology, devices have become smaller and less powerful.

Course Overview. Course Overview

ECE380 Digital Logic

This Figure here illustrates the operation for a 2-input OR gate for all four possible input combinations.

SYNTHESIS OF COMBINATIONAL CIRCUITS

Encoders. Lecture 23 5

Lab Report: Digital Logic

Unit 3. Logic Design

COMPUTER ORGANIZATION & ARCHITECTURE DIGITAL LOGIC CSCD211- DEPARTMENT OF COMPUTER SCIENCE, UNIVERSITY OF GHANA

Digital Fundamentals

Chapter 4 Combinational Logic Circuits

DIGITAL LOGIC COMPUTER SCIENCE

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) SUMMER-16 EXAMINATION Model Answer

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

Objective Questions. (a) Light (b) Temperature (c) Sound (d) all of these

Combinational Logic. Combinational Logic Design Process, Three State Buffers, Decoders, Multiplexers, Encoders, Demultiplexers, Other Considerations

Chapter 1: Digital logic

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 1 Logistics

Gates and and Circuits

Chapter 4 Combinational Logic Circuits

DELD UNIT 3. Question Option A Option B Option C Option D Correct Option A B C

LOGIC GATES AND LOGIC CIRCUITS A logic gate is an elementary building block of a Digital Circuit. Most logic gates have two inputs and one output.

B.C.A 2017 DIGITAL ELECTRONICS BCA104T MODULE SPECIFICATION SHEET. Course Outline

Logic Symbols with Truth Tables INVERTER A B NAND A B C NOR C A B A B C XNOR A B C A B Digital Logic 1

DIGITAL ELECTRONICS. Methods & diagrams : 1 Graph plotting : - Tables & analysis : - Questions & discussion : 6 Performance : 3

Lecture 7: Digital Logic

ECE380 Digital Logic

CMSC 2833 Lecture 26. Step Expression Justification

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #1 Oct 18, 2006

Digital Electronics Course Objectives

ECE 410: VLSI Design Course Lecture Notes (Uyemura textbook)

De Morgan s second theorem: The complement of a product is equal to the sum of the complements.

Combinational Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Positive and Negative Logic

Combinational Logic Circuits. Combinational Logic

Exercise 2: OR/NOR Logic Functions

Logic Circuit Design

Hashemite University Mechatronics Engineering Department Logic and Electronics Laboratory Manual

Unit level 4 Credit value 15. Introduction. Learning Outcomes

LSN 3 Logic Gates. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

Introduction to CMOS VLSI Design (E158) Lecture 5: Logic

Digital Electronic Concepts

Topic Notes: Digital Logic

Digital Electronics 8. Multiplexer & Demultiplexer

EXPERIMENT 12: DIGITAL LOGIC CIRCUITS

CS302 - Digital Logic Design Glossary By

DIGITAL LOGIC CIRCUITS

EECS-140/141 Introduction to Digital Logic Design Lecture 4:Simplification in Logic Synthesis

Chapter 3. H/w s/w interface. hardware software Vijaykumar ECE495K Lecture Notes: Chapter 3 1

E2.11/ISE2.22 Digital Electronics II

Exercise 1: AND/NAND Logic Functions

Lecture Summary Module 1 Switching Algebra and CMOS Logic Gates

International Journal of Scientific & Engineering Research, Volume 5, Issue 5, May-2014 ISSN

QUIZ. What do these bits represent?

M.Sc. (Computer Science) Master of Computer Application MS-03 / MCA-203 Course Curriculum for Digital Electronics

Electronics. Digital Electronics

1.) If a 3 input NOR gate has eight input possibilities, how many of those possibilities result in a HIGH output? (a.) 1 (b.) 2 (c.) 3 (d.) 7 (e.

Combinational Circuits: Multiplexers, Decoders, Programmable Logic Devices

Exercises: Fundamentals of Computer Engineering 1 PAGE: 1

Place answers on the supplied BUBBLE SHEET only nothing written here will be graded.

ECE 172 Digital Systems. Chapter 2 Digital Hardware. Herbert G. Mayer, PSU Status 6/30/2018

Lecture Summary Module 1 Switching Algebra and CMOS Logic Gates

Digital Logic and Design (Course Code: EE222) Lecture 14: Combinational Contd.. Decoders/Encoders

DIGITAL ELECTRONICS QUESTION BANK

Transcription:

Chapter 2: Switching Algebra and Logic Circuits 78 22 Digital Logic Design @ Department of Computer Engineering KKU. Formal Foundation of Digital Design In 854 George Boole published An investigation into the Laws of Thoughts Algebraic sstem with two values and Used to formall determine the truth or falsehood of propositions In 938 Claude Shannon showed in his MS thesis how Boolean algebra can be used for analsis of circuits Algebraic sstem with two values and At that time circuits were built from relas Hence the term switching algebra Two states hence a bit 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 2 Boolean Functions In arithmetic there are certain, familiar functions, such as: 2 3 = 6 In logic another set of functions is defined. Unlike arithmetic functions these have binar inputs and binar outputs. 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 3

Boolean Algebra Aioms Set of two values: {,} or {false,true} or {low,high} There are 2 binar and one unar operations defined for elements in Boolean algebra 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 4 AND Operation: TRUE if both inputs are TRUE Smbol: AND = = = ^ often referred to as a product term Logic gate: 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 5 OR Operation: TRUE if either or both inputs is TRUE Smbol: OR = + = v often referred to as a sum term Logic gate: 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 6 + + 2

NOT Operation: TRUE iff the input is FALSE Smbol: NOT = ~ = = often referred to as an inverter or a complement Logic gate: 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 7 Basic Properties of Switching Algebra Operations can be combined using parentheses With parentheses, order of operations is from the innermost to the outermost parentheses Order: ) negation, 2) multiplication, 3) addition -variable theorems 2- and 3-variable theorems 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 8 -variable theorems T: + = = identities T2: + = = null elements T3: + = = idempotenc T4: ( ) = involution T5: + = = complements dualit Proofs are done b perfect induction Consider all possible combinations on the lhs and rhs, and check whether the are equal 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 9 3

Perfect Induction LHS RHS (T3) + = LHS RHS (T3) = +? + =? =? + =? = 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 2- and 3-variable theorems commutativit T6: + = + = associativit T7: (+)+z = +(+z) ( ) z = ( z) distributivit T8: + z = (+z) (+) (+z) = +( z) covering T9: + = (+) = combining T: + = (+) (+ ) = consensus T: +( ) = + ( +) = T2: + z+ z = + z (+) ( +z) (+z) = (+) ( +z) Swap &, AND & OR, theorems sta true 78 22 Digital Logic Design @ Department of Computer Engineering KKU. Proofs (T8) (+) (+z) = +( z), distributivit Proof: use perfect induction z LHS (+) (+z) RHS + z 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 2 4

NAND Operation: TRUE if either or both inputs is FALSE Smbol: NAND = ( ) = = ^ Logic gate: 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 3 () b NOR Operation: TRUE if both inputs are FALSE Smbol: OR = = (+) = + = v Logic gate: + (+) 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 4 Algebraic epressions, Equations and Circuits z = + Given inputs and, the output is z = + z 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 5 5

Algebraic epressions, Equations and Circuits (cont.) Consensus theorem T2 LHS: + z+ z = + z :RHS X Y z X Y z z 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 6 DeMorgan Laws (+) = = ( ) = + = pushing the bubble 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 7 From AND and ORs to NORs 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 8 6

From ANDs and OR to NANDs 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 9 XOR (Eclusive-OR) Operation: TRUE iff either inputs is TRUE Smbol: XOR = Often referred to as an unequivalent gate Logic gate: ( ) 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 2 Simplifing Logic Functions Logic Minimisation: reduce compleit of the gate level implementation reduce number of literals (gate inputs) reduce number of gates reduce number of levels of gates 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 2 7

Simplifing Logic Functions (cont.) reduce number of gates fewer inputs implies faster gates in some technologies fan-ins (number of gate inputs) are limited in some technologies fewer levels of gates implies reduced signal propagation delas minimum dela configuration tpicall requires more gates number of gates (or gate packages) influences manufacturing costs 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 22 Alternative Logic Implementations A B C = ABC + A C + B C 2 = (AB C ) + ((AB) C) 3 = AB C 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 23 A B C Alternative Logic Implementations (cont.) TTL Package Counts: Two-Level Realisation (first set of INVs doesn't count) 3 packages ( 6-INVs, 3-input AND, 3-input OR) 2 Multi-Level Realisation Adv: Reduced Gate Fan-ins 3 packages ( 6-INVs, 2-input ANDs, 2-input OR) 3 Comple Gate: XOR Adv: Fewest Gates 2 packages ( 2-input AND, 2-input XOR) 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 24 8

Derivation of Epression Given:- desired truth table Problem:- to derive the boolean epression Simplest wa is to form the product terms An logic epression can alwas be epressed in one of the two standard forms:. Sum-of-Product (SOP) form Each term in the standard SOP form is known as minterm. 2. Product-of-Sum (POS) form Each term in the standard POS form is known as materm. 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 25 Derivation of Epression (cont.) Sum-of-Product form (SOP) Procedure :-. Form product terms column 2. Complement the variables in each product if the corresponding input is 3. Form SOP epression from rows where output is 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 26 Derivation of Epression (cont.) X Y Product terms X Y X Y XY =X Y + XY + XY XY However, consider this circuit! X Y Y = X+Y 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 27 9

Derivation of Epression (cont.) Product-of-Sum form (POS) Procedure :-. Form sum terms column 2. Complement the variables in each sum if the corresponding input is 3. Form POS epression from rows where output is 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 28 Derivation of Epression (cont.) X Y Sum terms X+Y X+Y X +Y = (X+Y )(X +Y) X +Y = XX +XY+X Y +YY = XY+X Y 78 22 Digital Logic Design @ Department of Computer Engineering KKU. 29