DIGITAL LOGIC CIRCUITS

Similar documents
DIGITAL LOGIC CIRCUITS

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

Sample Test Paper - I

Philadelphia University Student Name: Student Number:

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits


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

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

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

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

Fundamentals of Digital Design

UNIVERSITI TENAGA NASIONAL. College of Information Technology

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

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

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

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

Philadelphia University Student Name: Student Number:

Digital Logic Appendix A

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

Chapter 7 Logic Circuits

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

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

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

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

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

EC-121 Digital Logic Design

Gates and Flip-Flops

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

Lecture 22 Chapters 3 Logic Circuits Part 1

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

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

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

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

Fundamentals of Computer Systems

Digital Design. Digital Design

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

DIGITAL LOGIC CIRCUITS

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

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

Lecture 9: Digital Electronics

Chapter 2 Boolean Algebra and Logic Gates

CS470: Computer Architecture. AMD Quad Core

TYPICAL QUESTIONS & ANSWERS

Fundamentals of Boolean Algebra

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Philadelphia University Faculty of Engineering

Fundamentals of Computer Systems

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

MC9211 Computer Organization

DE58/DC58 LOGIC DESIGN DEC 2014

CHAPTER1: Digital Logic Circuits Combination Circuits

ECE 2300 Digital Logic & Computer Organization

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

3 Logic Function Realization with MSI Circuits

CHW 261: Logic Design

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

Lecture A: Logic Design and Gates

Chapter 4. Sequential Logic Circuits

Sequential Logic Circuits


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

PART-A. 2. Expand ASCII and BCD ASCII American Standard Code for Information Interchange BCD Binary Coded Decimal

Lecture 2 Review on Digital Logic (Part 1)

Chap 2. Combinational Logic Circuits

COMBINATIONAL LOGIC FUNCTIONS

CMPE12 - Notes chapter 2. Digital Logic. (Textbook Chapters and 2.1)"

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Cs302 Quiz for MID TERM Exam Solved

DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

on candidate s understanding. 7) For programming language papers, credit may be given to any other program based on equivalent concept.

S.E. Sem. III [ETRX] Digital Circuit Design. t phl. Fig.: Input and output voltage waveforms to define propagation delay times.

University of Minnesota Department of Electrical and Computer Engineering

Chapter 5 Synchronous Sequential Logic

ELCT201: DIGITAL LOGIC DESIGN

Chapter 2. Review of Digital Systems Design

Vidyalankar S.E. Sem. III [EXTC] Digital Electronics Prelim Question Paper Solution ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD = B

CHAPTER 7. Exercises 17/ / /2 2 0

Textbook: Digital Design, 3 rd. Edition M. Morris Mano

Synchronous Sequential Circuit

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

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

Digital Electronics. Delay Max. FF Rate Power/Gate High Low (ns) (MHz) (mw) (V) (V) Standard TTL (7400)

CPE100: Digital Logic Design I

Logic Gate Level. Part 2

Chapter 7. Sequential Circuits Registers, Counters, RAM

Systems I: Computer Organization and Architecture

COE 202: Digital Logic Design Sequential Circuits Part 4. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

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

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

211: Computer Architecture Summer 2016

Sequential vs. Combinational

Synchronous Sequential Logic

CPE/EE 422/522. Chapter 1 - Review of Logic Design Fundamentals. Dr. Rhonda Kay Gaede UAH. 1.1 Combinational Logic

A B D 1 Y D 2 D 3. Truth table for 4 to 1 MUX: A B Y 0 0 D D D D 3

Transcription:

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

Digital Computers 2 LOGIC GATES Logic Gates - Imply that the computer deals with digital information, i.e., it deals with the information that is represented by binary digits - Why BINARY? instead of Decimal or other number system? * Consider electronic signal 7 65 0 binary 4 3 2 0 octal signal range * Consider the calculation cost - Add 0 0 0 0 0 2 3 4 5 6 7 8 9 0 0 2 3 4 5 6 7 8 9 2 3 4 5 6 7 8 9 0 2 2 3 4 5 6 7 8 9 0 3 3 4 5 6 7 8 9 02 4 4 5 6 7 8 9 023 5 5 6 7 8 9 0234 6 6 7 8 9 02345 7 7 8 9 023456 8 8 9 0234567 9 9 02345678

3 BASIC LOGIC BLOCK - GATE - Logic Gates Binary Digital Input Signal... Gate Binary Digital Output Signal Types of Basic Logic Blocks - Combinational Logic Block Logic Blocks whose output logic value depends only 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 by - Truth Table - Boolean Function - Karnaugh Map

A B 4 COMBINATIONAL GATES Name Symbol 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 A X X = (AB) B NOR XOR Eclusive OR XNOR Eclusive NOR or Equivalence A B A B X X X = (A + B) X = A B or X = A B + AB X = (A B) or X = A B + AB A B X 0 0 0 0 0 0 0 A B X 0 0 0 0 0 A X 0 0 A X 0 0 A B X 0 0 0 0 0 A B X 0 0 0 0 0 0 0 A B X 0 0 0 0 0 0 A B X 0 0 0 0 0 0 Logic Gates

Boolean Algebra 5 BOOLEAN ALGEBRA Boolean Algebra * Algebra with Binary(Boolean) Variable and Logic Operations * Boolean Algebra is useful in Analysis and Synthesis of Digital Logic Circuits Truth Table - Input and Output signals can be represented by Boolean Variables, and - Function of the Digital Logic Circuits can be represented by Logic Operations, i.e., Boolean Function(s) - From a Boolean function, a logic diagram can be constructed using AND, OR, and I * The most elementary 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

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

7 BASIC IDENTITIES OF BOOLEAN ALGEBRA [] + 0 = [3] + = [5] + = [7] + = [9] + y = y + [] + (y + z) = ( + y) + z [3] (y + z) = y +z [5] ( + y) = y [7] ( ) = [2] 0 = 0 [4] = [6] = [8] X = 0 [0] y = y [2] (yz) = (y)z [4] + yz = ( + y)( + z) [6] (y) = + y [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 -- Ordinarily ANDs, ORs, and Inverters -- But a certain different form of Boolean function may be convenient to obtain circuits with NANDs or NORs Applications of De Morgans Theorem y = ( + y) + y = (y) I, AND NOR I, OR NAND Boolean Algebra

8 EUIVALENT CIRCUITS Boolean Algebra Many 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

9 COMPLEMENT OF FUNCTIONS Boolean Algebra A Boolean function of a digital logic circuit is represented by only 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 complementary operators AND OR OR AND - Basically, etensive applications of the De Morgan s theorem ( + 2 +... + n ) 2... n ( 2... n )' ' + 2 ' +...+ n '

0 SIMPLIFICATION Map Simplification Truth Table Unique Boolean Function Many 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 very difficult task Karnaugh Map (K-map) is a simple procedure for simplifying 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, 0-cell Each Minterm is identified by a decimal number whose binary representation is identical to the binary interpretation of the input values of the minterm. F 0 0 0 0 Identification of the cell Karnaugh Map value 0 0 of F F() = (0) y F 0 0 0 0 0 y 0 0 0 2 3 -cell y 0 0 0 F(,y) = (,2)

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

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

4 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 u w v uv u w v V u

5 MAP SIMPLIFICATION Map Simplification uv w 00 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 (0,), (0,2), (0,4), (0,8) Adjacent Cells of Adjacent Cells of 0 (,0), (,3), (,5), (,9)...... Adjacent Cells of 5 (5,7), (5,), (5,3), (5,4) w 0 0 0 0 0 v 0 0 u 0 0 0 F(u,v,w,) = (0,,2,9,3,5) Merge (0,) and (0,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 by (,9) and (3,5) F = u v + v w + uv

6 IMPLEMENTATION OF K-MAPS - Sum-of-Products Form - Logic function represented by 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 by an AND gate, with some inversion of the input variables. y z z y F(,y,z) = (0,2,6) y z y z z Map Simplification y z y z y z y z F z y z F I AND OR

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

8 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 they are or 0. In K-maps, don t-care conditions are represented by 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 0 - Thus increases the chances of merging cells into the larger cells --> Reduce the number of variables in the product terms y d d d z yz y z F

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

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

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

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

23 FLIP FLOPS Flip Flops Characteristics - 2 stable states - Memory capability - Operation is specified by a Characteristic Table 0 0 0 0 0-state -state In order to be used in the computer circuits, state of the flip flop should have input terminals and output terminals so that it can be set to a certain state, and its state can be read eternally. R S S R (t+) 0 0 (t) 0 0 0 indeterminate (forbidden)

24 CLOCKED FLIP FLOPS Flip Flops In a large digital system with many flip flops, operations of individual flip flops are required to be synchronized to a clock pulse. Otherwise, the operations of the system may be unpredictable. R c (clock) S Clock pulse allows the flip flop to change state only when there is a clock pulse appearing at the c terminal. We call above flip flop a Clocked RS Latch, and symbolically as S c R operates when clock is high S c R operates when clock is low

25 Flip Flops RS-LATCH WITH PRESET AND CLEAR INPUTS P(preset) R c (clock) S clr(clear) S P c R clr S P c R clr S P c R clr S P c R clr

26 D-LATCH Flip Flops D-Latch Forbidden input values are forced not to occur by using an inverter between the inputs D E (enable) E D(data) D D (t+) 0 0 E

27 EDGE-TRIGGERED FLIP FLOPS Flip Flops Characteristics - State transition occurs at the rising edge or falling edge of the clock pulse Latches respond to the input only during these periods Edge-triggered Flip Flops (positive) respond to the input only at this time

28 POSITIVE EDGE-TRIGGERED Flip Flops D-Flip Flop D C S SR C R ' S2 2 SR2 C2 R2 2' ' D D-FF C ' JK-Flip Flop SR inactive SR2 active SR2 inactive SR2 inactive SR active SR active J K C S SR C R ' S2 2 SR2 C2 R2 2' ' J C K ' T-Flip Flop: JK-Flip Flop whose J and K inputs are tied together to make T input. Toggles whenever there is a pulse on T input.

29 CLOCK PERIOD Flip Flops Clock period determines how fast the digital circuit operates. How can we determine the clock period? Usually, digital circuits are sequential circuits which has some flip flops FF FF... FF C... Combinational Logic Circuit... FF FF Delay Combinational Logic Circuit Combinational logic Delay t d FF FF Setup Time FF Hold Time t s,t h clock period T = t d + t s + t h

30 DESIGN EXAMPLE Design Procedure: Specification State Diagram State Table Ecitation Table Karnaugh Map Circuit Diagram Eample: 2-bit Counter -> 2 FF's =0 =0 = 0 = =0 00 0 = = =0 current net state input state FF inputs A B A B Ja Ka Jb Kb 0 0 0 0 0 0 d 0 d 0 0 0 0 d d 0 0 0 0 d d 0 0 0 d d 0 0 0 d 0 0 d 0 d 0 d 0 d 0 d 0 0 0 d d Sequential Circuits A B d d d d Ja A B d d d d Ka A B d d d d Jb A B d d d d Kb Ja = B Ka = B Jb = Kb = clock J C K ' A J C K ' B

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

32 SEUENTIUAL CIRCUITS - Sequential Circuits Counters A 0 A A 2 A 3 Clock J K J K J K J K Counter Enable Output Carry

33 MEMORY COMPONENTS 0 Logical Organization Memory Components words (byte, or n bytes) Random Access Memory 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

34 READ ONLY MEMORY(ROM) Characteristics - Perform read operation only, write operation is not possible - Information stored in a ROM is made permanent during production, and cannot be changed - Organization k address input lines Memory Components m n ROM (m=2 k ) Information on the data output line depends only on the information on the address input lines. --> Combinational Logic Circuit address Canonical minterms n data output lines X 0 =A B + B C X =A B C + A BC X 2 =BC + AB C X 3 =A BC + AB X 4 =AB X 0 =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 0 X X 2 X 3 X 4 000 00 00 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

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

36 INTEGRATED CIRCUITS Memory Components Classification by the Circuit Density SSI - MSI - LSI - VLSI - several (less than 0) independent gates 0 to 200 gates; Perform elementary digital functions; Decoder, adder, register, parity checker, etc 200 to few thousand gates; Digital subsystem Processor, memory, etc Thousands of gates; Digital system Microprocessor, memory module Classification by Technology TTL - ECL - MOS - Transistor-Transistor Logic Bipolar transistors NAND Emitter-coupled Logic Bipolar transistor NOR Metal-Oide Semiconductor Unipolar transistor High density CMOS - Complementary MOS Low power consumption