DIGITAL LOGIC CIRCUITS

Similar documents
DIGITAL LOGIC CIRCUITS

CpE358/CS381. Switching Theory and Logical Design. Class 2

Boolean Algebra and Logic Gates

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

Section 3: Combinational Logic Design. Department of Electrical Engineering, University of Waterloo. Combinational Logic

Sample Test Paper - I

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

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

Lecture 22 Chapters 3 Logic Circuits Part 1

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Chapter 7 Logic Circuits

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

Digital Logic and Design (Course Code: EE222) Lecture 1 5: Digital Electronics Fundamentals. Evolution of Electronic Devices


XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Fundamentals of Digital Design

CS470: Computer Architecture. AMD Quad Core

Lecture 2 Review on Digital Logic (Part 1)

Digital Design. Digital Design

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Lecture A: Logic Design and Gates

CHAPTER1: Digital Logic Circuits Combination Circuits

211: Computer Architecture Summer 2016

LOGIC GATES. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

EC-121 Digital Logic Design

Philadelphia University Student Name: Student Number:

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

ECE 2300 Digital Logic & Computer Organization

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

Chapter 2 Boolean Algebra and Logic Gates

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

04. What is the Mod number of the counter circuit shown below? Assume initially reset.

Digital Logic Appendix A

COMBINATIONAL LOGIC FUNCTIONS

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

7.1. Unit 7. Minterm and Canonical Sums 2- and 3-Variable Boolean Algebra Theorems DeMorgan's Theorem Simplification using Boolean Algebra

Boolean Algebra. Digital Logic Appendix A. Postulates, Identities in Boolean Algebra How can I manipulate expressions?

3 Logic Function Realization with MSI Circuits

Logic. Combinational. inputs. outputs. the result. system can

Show that the dual of the exclusive-or is equal to its compliment. 7

Cs302 Quiz for MID TERM Exam Solved

Chap 2. Combinational Logic Circuits

MC9211 Computer Organization

Boolean Algebra. Digital Logic Appendix A. Boolean Algebra Other operations. Boolean Algebra. Postulates, Identities in Boolean Algebra

ELCT201: DIGITAL LOGIC DESIGN

Propositional Logic. Logical Expressions. Logic Minimization. CNF and DNF. Algebraic Laws for Logical Expressions CSC 173

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN

Systems I: Computer Organization and Architecture

This form sometimes used in logic circuit, example:

Combinational Logic. By : Ali Mustafa

Principles of Computer Architecture. Appendix B: Reduction of Digital Logic. Chapter Contents

WEEK 3.1 MORE ON KARNAUGH MAPS

Philadelphia University Student Name: Student Number:

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Fundamentals of Computer Systems

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

Computer Science Final Examination Friday December 14 th 2001

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Principles of Digital Techniques

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Why digital? Overview. Number Systems. Binary to Decimal conversion

DE58/DC58 LOGIC DESIGN DEC 2014

Combinational Logic. Review of Combinational Logic 1

DIGITAL LOGIC CIRCUITS

Standard Expression Forms

Theory of Logic Circuits. Laboratory manual. Exercise 1

Chapter 2 Boolean Algebra and Logic Gates

CPS311 Lecture: Introduction to Digital Logic

CS/COE0447: Computer Organization and Assembly Language

SUMMER 18 EXAMINATION Subject Name: Principles of Digital Techniques Model Answer Subject Code:

Digital Logic (2) Boolean Algebra

TYPICAL QUESTIONS & ANSWERS

Digital- or Logic Circuits. Outline Logic Circuits. Logic Voltage Levels. Binary Representation

Introduction to Computer Engineering. CS/ECE 252, Fall 2012 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison

EECS Variable Logic Functions

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

Fundamentals of Computer Systems

CS311 Lecture: Introduction to Digital Logic

Review. EECS Components and Design Techniques for Digital Systems. Lec 06 Minimizing Boolean Logic 9/ Review: Canonical Forms

Review for Test 1 : Ch1 5

Chapter 2: Boolean Algebra and Logic Gates

Unit 2 Session - 6 Combinational Logic Circuits

EEE130 Digital Electronics I Lecture #4

Logic Gate Level. Part 2

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

Combinational Logic Design Combinational Functions and Circuits

Fundamentals of Boolean Algebra

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

Combinational Logic. Mantıksal Tasarım BBM231. section instructor: Ufuk Çelikcan

Analog & Digital Electronics Laboratory. Code - CS391. Lab Manual

Learning Objectives 10/7/2010. CE 411 Digital System Design. Fundamental of Logic Design. Review the basic concepts of logic circuits. Dr.

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

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

CMPE12 - Notes chapter 1. Digital Logic. (Textbook Chapter 3)

CPS311 Lecture: Introduction to Combinatorial Logic

Floating Point Representation and Digital Logic. Lecture 11 CS301

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Gates and Flip-Flops

Transcription:

DIGITAL LOGIC CIRCUITS Introduction Logic Gates Boolean Algebra Map Specification Combinational Circuits Flip-Flops Sequential Circuits Memor Components Integrated Circuits

BASIC LOGIC BLOCK - GATE - Logic Gates Binar Digital Input Signal. Gate Binar Digital Output Signal Tpes of Basic Logic Blocks - Combinational Logic Block Logic Blocks whose output logic value depends onl on the input logic values - Sequential Logic Block Logic Blocks whose output logic value depends on the input values and the state (stored information) of the blocks Functions of Gates can be described b - Truth Table - Boolean Function - Karnaugh Map

A B COMBINATIONAL GATES Name Smbol Function Truth Table AND OR A B A B X X X X = A B or X = AB X = A + B I A X X = A Buffer A X X = A NAND NOR XOR Eclusive OR XNOR Eclusive NOR or Equivalence A B A B A B X X X X = (AB) X = (A + B) X = A B or X = A B + AB X = (A B) or X = A B + AB A B X A B X A X A X A B X A B X A B X A B X Logic Gates

BOOLEAN ALGEBRA Boolean Algebra Boolean Algebra * Algebra with Binar(Boolean) Variable and Logic Operations * Boolean Algebra is useful in Analsis and Snthesis of Digital Logic Circuits Truth Table - Input and Output signals can be represented b Boolean Variables, and - Function of the Digital Logic Circuits can be represented b Logic Operations, i.e., Boolean Function(s) - From a Boolean function, a logic diagram can be constructed using AND, OR, and INV (NOT) * The most elementar specification of the function of a Digital Logic Circuit is the Truth Table - Table that describes the Output Values for all the combinations of the Input Values, called MINTERMS - n input variables --> 2 n minterms

LOGIC CIRCUIT DESIGN Boolean Algebra Truth Table z F Boolean Function F = + z Logic Diagram z F

BASIC IDENTITIES OF BOOLEAN ALGEBRA [] + = [3] + = [5] + = [7] + = [9] + = + [] + ( + z) = ( + ) + z [3] ( + z) = +z [5] ( + ) = [7] ( ) = [2] = [4] = [6] = [8] X = [] = [2] (z) = ()z [4] + z = ( + )( + z) [6] () = + [5] and [6] : De Morgan s Theorem Usefulness of this Table - Simplification of the Boolean function - Derivation of equivalent Boolean functions to obtain logic diagrams utilizing different logic gates -- Ordinaril ANDs, ORs, and Inverters -- But a certain different form of Boolean function ma be convenient to obtain circuits with NANDs or NORs --> Applications of DeMorgans Theorem = ( + ) + = () I, AND --> NOR I, OR --> NAND Boolean Algebra

EQUIVALENT CIRCUITS Boolean Algebra Man different logic diagrams are possible for a given Function F = ABC + ABC + A C... () = AB(C + C ) + A C [3]... (2) = AB + A C [7] = AB + A C [4].... (3) () A B C F (2) A B C F (3) A B C F

COMPLEMENT OF FUNCTIONS Boolean Algebra A Boolean function of a digital logic circuit is represented b onl using logical variables and AND, OR, and Invert operators. --> Complement of a Boolean function - Replace all the variables and subepressions in the parentheses appearing in the function epression with their respective complements A,B,...,Z,a,b,...,z A,B,...,Z,a,b,...,z (p + q) (p + q) - Replace all the operators with their respective complementar operators AND OR OR AND - Basicall, etensive applications of the DeMorgan s theorem ( + 2 +... + n ) 2... n ( 2... n )' ' + 2 ' +...+ n '

SIMPLIFICATION Map Simplification Truth Table Unique Boolean Function Man different epressions eist Simplification from Boolean function - Finding an equivalent epression that is least epensive to implement - For a simple function, it is possible to obtain a simple epression for low cost implementation - But, with comple functions, it is a ver difficult task Karnaugh Map(K-map) is a simple procedure for simplifing Boolean epressions. Truth Table Boolean function Karnaugh Map Simplified Boolean Function

KARNAUGH MAP Map Simplification Karnaugh Map for an n-input digital logic circuit (n-variable sum-of-products form of Boolean Function, or Truth Table) is - Rectangle divided into 2 n cells - Each cell is associated with a Minterm - An output(function) value for each input value associated with a mintern is written in the cell representing the minterm --> -cell, -cell Each Minterm is identified b a decimal number whose binar representation is identical to the binar interpretation of the input values of the minterm. F Identification of the cell Karnaugh Map value of F F() = () F 2 3 -cell F(,) = (,2)

KARNAUGH MAP Map Simplification z F z 3 2 4 5 7 6 z z F(,,z) = (,2,4) u v w F w w uv 3 2 v 4 5 7 6 2 3 5 4 u 8 9 w uv F(u,v,w,) = (,3,6,8,9,,4)

Map Simplification MAP SIMPLIFICATION - 2 ADJACENT CELLS - Adjacent cells Rule: + = (+ ) = - binar identifications are different in one bit --> minterms associated with the adjacent cells have one variable complemented each other Cells (,) and (,) are adjacent Minterms for (,) and (,) are --> =, = --> =, = F = + can be reduced to F = From the map 2 adjacent cells and --> merge them to a larger cell F(,) = (2,3) = + =

Map Simplification MAP SIMPLIFICATION - MORE THAN 2 CELLS - u v w + u v w + u v w + u v w = u v w ( +) + u v w(+ ) = u v w + u v w = u v (w +w) = u v w uv w vw u u v v uw w uv w u v v u u v w +u v w +u vw +u vw +uvw +uvw +uv w +uv w = u v w ( +) + u vw ( +) + uvw ( +) + uv w ( +) = u (v +v)w + u(v +v)w = (u +u)w = w uv w w uv w w u v u v V u

MAP SIMPLIFICATION Map Simplification uv w (,), (,2), (,4), (,8) Adjacent Cells of Adjacent Cells of (,), (,3), (,5), (,9)...... Adjacent Cells of 5 (5,7), (5,), (5,3), (5,4) w v u F(u,v,w,) = (,,2,9,3,5) Merge (,) and (,2) --> u v w + u v Merge (,9) --> v w Merge (9,3) --> uw Merge (3,5) --> uv F = u v w + u v + v w + uw + uv But (9,3) is covered b (,9) and (3,5) F = u v w + u v + v w + uv

Map Simplification IMPLEMENTATION OF K-MAPS - Sum-of-Products Form - Logic function represented b a Karnaugh map can be implemented in the form of I-AND-OR A cell or a collection of the adjacent -cells can be realized b an AND gate, with some inversion of the input variables. z z F(,,z) = (,2,6) z z z z z z z F z z I AND OR F

Map Simplification IMPLEMENTATION OF K-MAPS - Product-of-Sums Form - Logic function represented b a Karnaugh map can be implemented in the form of I-OR-AND If we implement a Karnaugh map using -cells, the complement of F, i.e., F, can be obtained. Thus, b complementing F using DeMorgan s theorem F can be obtained F(,,z) = (,2,6) z z F = + z F = ( )z = ( + )z z F I OR AND

IMPLEMENTATION OF K-MAPS - Don t-care Conditions - Map Simplification In some logic circuits, the output responses for some input conditions are don t care whether the are or. In K-maps, don t-care conditions are represented b d s in the corresponding cells. Don t-care conditions are useful in minimizing the logic functions using K-map. - Can be considered either or - Thus increases the chances of merging cells into the larger cells --> Reduce the number of variables in the product terms d d d z z z F

COMBINATIONAL LOGIC CIRCUITS Half Adder c s Full Adder c n- c n s c n- c = c n c n- s = + = s c n = + c n- + c n- = + ( )c n- s = c n- + c n- + c n- +c n- = c n- = ( ) c n- S c n Combinational Logic Circuits c n- c s

COMBINATIONAL LOGIC CIRCUITS Combinational Logic Circuits Other Combinational Circuits Multipleer Encoder Decoder Parit Checker Parit Generator etc

MULTIPLEXER Combinational Logic Circuits 4-to- Multipleer Select Output S S Y I I I 2 I 3 I I I 2 Y I 3 S S

ENCODER/DECODER Combinational Logic Circuits Octal-to-Binar Encoder D D 2 D 3 D 4 D 5 D 6 D 7 A A A 2 2-to-4 Decoder D E A A D D D 2 D 3 d d A A E D D 2 D 3

Sequential Circuits SEQUENTIAL CIRCUITS - Registers A A A 2 A 3 Q D C Q D C Q D C Q D C Clock Shift Registers I I I 2 I 3 Serial Input Clock D C Bidirectional Shift Register with Parallel Load Q D C Q D C Q D C A A A 2 A 3 Q Serial Output Q D C Q D C Q D C Q D C 4 MUX 4 MUX 4 MUX 4 MUX Clock S S SeriaI Input I I I 2 I 3 Serial Input

MEMORY COMPONENTS Memor Components Logical Organization words (bte, or n btes) Random Access Memor N - - Each word has a unique address - Access to a word requires the same time independent of the location of the word - Organization n data input lines k address lines Read 2 k Words (n bits/word) Write n data output lines

READ ONLY MEMORY(ROM) Memor Components Characteristics - Perform read operation onl, write operation is not possible - Information stored in a ROM is made permanent during production, and cannot be changed - Organization k address input lines m n ROM (m=2 k ) Information on the data output line depends onl on the information on the address input lines. --> Combinational Logic Circuit address Canonical minterms n data output lines X =A B + B C X =A B C + A BC X 2 =BC + AB C X 3 =A BC + AB X 4 =AB X =A B C + A B C + AB C X =A B C + A BC X 2 =A BC + AB C + ABC X 3 =A BC + AB C + AB C X 4 =ABC + ABC Output ABC X X X 2 X 3 X 4

TYPES OF ROM Memor Components ROM - Store information (function) during production - Mask is used in the production process - Unalterable - Low cost for large quantit production --> used in the final products PROM (Programmable ROM) - Store info electricall using PROM programmer at the user s site - Unalterable - Higher cost than ROM -> used in the sstem development phase -> Can be used in small quantit sstem EPROM (Erasable PROM) - Store info electricall using PROM programmer at the user s site - Stored info is erasable (alterable) using UV light (electricall in some devices) and rewriteable - Higher cost than PROM but reusable --> used in the sstem development phase. Not used in the sstem production due to erasabilit

INTEGRATED CIRCUITS Memor Components Classification b the Circuit Densit SSI - MSI - LSI - VLSI - several (less than ) independent gates to 2 gates; Perform elementar digital functions; Decoder, adder, register, parit checker, etc 2 to few thousand gates; Digital subsstem Processor, memor, etc Thousands of gates; Digital sstem Microprocessor, memor module Classification b Technolog TTL - ECL - MOS - Transistor-Transistor Logic Bipolar transistors NAND Emitter-coupled Logic Bipolar transistor NOR Metal-Oide Semiconductor Unipolar transistor High densit CMOS - Complementar MOS Low power consumption