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

Similar documents
Computer Architecture and Organization

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

1. Convert the decimal number to binary, octal, and hexadecimal.

Principles of Computer Architecture. Appendix A: Digital Logic

Using minterms, m-notation / decimal notation Sum = Cout = Using maxterms, M-notation Sum = Cout =

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

Chapter Contents. Appendix A: Digital Logic. Some Definitions

6.3 Sequential Circuits (plus a few Combinational)

Where Are We Now? e.g., ADD $S0 $S1 $S2?? Computed by digital circuit. CSCI 402: Computer Architectures. Some basics of Logic Design (Appendix B)

TIME SCHEDULE. MODULE TOPICS PERIODS 1 Number system & Boolean algebra 17 Test I 1 2 Logic families &Combinational logic

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

Chapter 3. Boolean Algebra and Digital Logic

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

North Shore Community College

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

Microprocessor Design

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

Contents Circuits... 1

EE292: Fundamentals of ECE

St. MARTIN S ENGINEERING COLLEGE

ME 515 Mechatronics. Introduction to Digital Electronics

6.1 Combinational Circuits

Laboratory Objectives and outcomes for Digital Design Lab

Minnesota State College Southeast

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

Course Plan. Course Articulation Matrix: Mapping of Course Outcomes (COs) with Program Outcomes (POs) PSO-1 PSO-2

Chapter 4. Logic Design

REPEAT EXAMINATIONS 2002

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

TYPICAL QUESTIONS & ANSWERS

Department of CSIT. Class: B.SC Semester: II Year: 2013 Paper Title: Introduction to logics of Computer Max Marks: 30

Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology

CS6201 UNIT I PART-A. Develop or build the following Boolean function with NAND gate F(x,y,z)=(1,2,3,5,7).

COMP2611: Computer Organization. Introduction to Digital Logic

Department of Computer Science and Engineering Question Bank- Even Semester:

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad ELECTRICAL AND ELECTRONICS ENGINEERING

CS 61C: Great Ideas in Computer Architecture

UNIVERSITY OF MASSACHUSSETS LOWELL Department of Electrical & Computer Engineering Course Syllabus for Logic Design Fall 2013

Logic. Andrew Mark Allen March 4, 2012

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

Digital Circuits. Electrical & Computer Engineering Department (ECED) Course Notes ECED2200. ECED2200 Digital Circuits Notes 2012 Dalhousie University

LESSON PLAN. Sub Code: EE2255 Sub Name: DIGITAL LOGIC CIRCUITS Unit: I Branch: EEE Semester: IV

Digital Electronic Circuits and Systems

MODULE 3. Combinational & Sequential logic

Software Engineering 2DA4. Slides 3: Optimized Implementation of Logic Functions

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

Encoders and Decoders: Details and Design Issues

Digital Principles and Design

THE KENYA POLYTECHNIC

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

Combinational Logic Design

The reduction in the number of flip-flops in a sequential circuit is referred to as the state-reduction problem.

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

WINTER 14 EXAMINATION

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

DIGITAL ELECTRONICS MCQs

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

CPS311 Lecture: Sequential Circuits

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

EECS 140 Laboratory Exercise 7 PLD Programming

DIGITAL CIRCUIT LOGIC UNIT 9: MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES

Physics 323. Experiment # 10 - Digital Circuits

Electrical and Telecommunications Engineering Technology_TCET3122/TC520. NEW YORK CITY COLLEGE OF TECHNOLOGY The City University of New York

Subject : EE6301 DIGITAL LOGIC CIRCUITS


Computer Systems Architecture

Diagnostic Test Generation and Fault Simulation Algorithms for Transition Faults

1 Hour Sample Test Papers: Sample Test Paper 1. Roll No.

Chapter 5: Synchronous Sequential Logic

UNIT 1: DIGITAL LOGICAL CIRCUITS What is Digital Computer? OR Explain the block diagram of digital computers.

Experiment (6) 2- to 4 Decoder. Figure 8.1 Block Diagram of 2-to-4 Decoder 0 X X

WINTER 15 EXAMINATION Model Answer

PLTW Engineering Digital Electronics Course Outline

TEST-3 (DIGITAL ELECTRONICS)-(EECTRONIC)


NORTHWESTERN UNIVERSITY TECHNOLOGICAL INSTITUTE

COE328 Course Outline. Fall 2007

S.K.P. Engineering College, Tiruvannamalai UNIT I

Nirma University Institute of Technology. Electronics and Communication Engineering Department. Course Policy

Digital Electronics Course Outline

A.R. ENGINEERING COLLEGE, VILLUPURAM ECE DEPARTMENT

An Introduction to Digital Logic

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Analogue Versus Digital [5 M]

Lecture 11: Synchronous Sequential Logic

CHAPTER 4: Logic Circuits

B. Sc. III Semester (Electronics) - ( ) Digital Electronics-II) BE-301 MODEL ANSWER (AS-2791)

A Review of logic design

LORDS INSTITUTE OF ENGINEERING & TECHNOLOGY

Note 5. Digital Electronic Devices

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

CSE221- Logic Design, Spring 2003

Semester III. Subject Name: Digital Electronics. Subject Code: 09CT0301. Diploma Branches in which this subject is offered: Computer Engineering

Notes on Digital Circuits

Chapter 11 State Machine Design

G. D. Bishop, Electronics II. G. D. Bishop, Electronics III. John G. Ellis, and Norman J. Riches, Safety and Laboratory Practice

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

Semester 6 DIGITAL ELECTRONICS- core subject -10 Credit-4

Transcription:

Switching Theor and Logical Design Class 3 Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -85

Toda Fundamental concepts of digital sstems (Mano Chapter ) Binar codes, number sstems, and arithmetic (Ch ) Boolean algebra (Ch 2) Simplification of switching equations (Ch 3) Digital device characteristics (e.g., TTL, CMOS)/design considerations (Ch ) Combinatoric logical design including LSI implementation (Chapter 4) Haards, Races, and time related issues in digital design (Ch 9) Flip-flops and state memor elements (Ch 5) Sequential logic analsis and design (Ch 5) Snchronous vs. asnchronous design (Ch 9) Counters, shift register circuits (Ch 6) Memor and Programmable logic (Ch 7) Minimiation of sequential sstems Introduction to Finite Automata Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -86

Boolean Functions in Terms of Minterms A logical function is TRUE if an of it s minterms are true: m m 4 m 7 F(,,) = Σ(,4,7) = + + = m + m 4 + m 7 Algebraic manipulation of the literal epression of the function is one wa to minimie it, manipulation of minterms is another Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -87

Two Variable Minterm Map Represent Boolean functions in terms of minterms in a Karnaugh map: m m m 2 m 3 Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -88

Two Variable Minterm Map Represent Boolean functions in terms of a Karnaugh map: m m m 2 m 3 Consider the XOR function F(, ) = = ' + ' = m + m 2 Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -89

Two Variable Minterm Map Represent Boolean functions in terms of a Karnaugh map: m m m 2 m 3 Consider the XOR function F(, ) = = ' + ' = m + m 2 Set the non-asserted minterms to ero Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -9

Minimiing Function of Two Variables F(, ) = ' + = m + m = ( ' + ) 2 3 = Covering adjacent minterms with a single region defines the variables needed to represent the function Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -9

Minimiing Function of Three Variables m m m 3 m 2 m 4 m 5 m 7 m 6 Minterms are numbered in Gra code order adjacent minterms differ in onl one variable If the function is asserted (i.e., TRUE) for both of these adjacent minterms, then the terms defined b those minterms do not depend on the variable that is changing between them Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -92

Three Variable Map m m m 3 m 2 m 4 m 5 m 7 m 6 Consider F(,,)=Σ(,3,7) F(,, ) = m + m + m 3 7 F(,, ) = = = = ' ' + ' + ' ' + ' + ' + '( ' + ) + ( ' + ) ' + Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -93

Three Variable Map m m m 3 m 2 m 4 m 5 m 7 m 6 Observations: All minterms must be covered Number of variables defining a sum term inversel proportional to number of minterms covered Number of sum terms required to define function equal to number of separate regions Maimie region sie Minimie number of regions Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -94

Three Variable Map For a 3-variable map: Covering 4 minterms with one 4-minterm region defines the function in terms of a single variable Covering the same 4 minterms with 2 2- minterm regions defines the function in terms of two terms, each requiring two variables. Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -95

Three Variable Map Adjacenc sometimes eists in subtle was: These four minterms are obviousl adjacent to each other. Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -96

Three Variable Map Adjacenc sometimes eists in subtle was: These four minterms are obviousl adjacent to each other. But so are these, if we consider the map to wrap around on itself Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -97

Four Variable Map w m m m 3 m 2 w w w w m 4 m 5 m 7 m 6 w w w w m 2 m 3 m 8 m 9 m 5 m 4 m m w w w w w w w w w The 4-variable map etends the concept of the 2- and 3-variable map Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -98

Minimiing Four Variable Map w m m m 3 m 2 m 4 m 5 m 7 m 6 m 2 m 3 m 8 m 9 m 5 m 4 m m w Minimie F(w,,,)=Σ(,2,3,5,7,8,,,3,5) F(w,,,)=+ + Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -99

Five Variable Map w w m m m 3 m 2 m 6 m 7 m 9 m 8 m 4 m 5 m 7 m 6 m 2 m 2 m 23 m 22 m 2 m 3 m 5 m 4 m 28 m 29 m 3 m 3 w w m 8 m 9 m m m 24 m 25 m 27 m 26 v= v= 5-variable map is etension of 4-variable map, adjacenc must be considered between pairs of 4-variable maps Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -

Minimiing Five Variable Map w w v w w v= w v= Minimie F(v,w,,,)=Σ(,8,9,,6,7,24,25,27,29,3) F(v,w,,,)=w+ +v Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -

Si Variable Map Keeping track of what minterms are adjacent becomes tedious Ensuring the maimum coverage for each term is challenging w m m m 4 m 5 m 2 m 3 m 8 m 9 w m 3 m 2 u= m 7 m 6 m 5 m 4 m m w m 32 m 33 m 36 m 37 m 44 m 45 m 4 m 4 m 35 m 34 m 39 m 38 m 47 m 46 m 43 m 42 w 6-variable maps usable, but perhaps the design needs to be modularied instead w v= v= w m m m 3 m 2 u= m 48 m 49 m 5 m 5 m 4 m 5 m 2 m 3 m 7 m 6 m 5 m 4 m 52 m 53 m 6 m 6 m 55 m 54 m 63 m 62 m 8 m 9 m m w m 56 m 57 m 59 m 58 w Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -2

Product of Sums Covering s Instead of s A function of N variables, F(v,v 2,,v N ), can be represented b a Karnaugh map with 2 N cells. (v,v 2,,v N ) = (,, ), (,, ),, (,,,) F( ), and it s Karnaugh map have K minterms ( s) and 2 N -K materms ( s) If K > 2 N -K, it might be easier to cover the materms rather than the minterms. E.g.: w w v= v= Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -3

Product of Sums Covering s Instead of s w w w w v= v= F(v,w,,,) has 4 terms F(v,w,,,) = w + w + vw +w v= v= F(v,w,,,) has 7 terms F(v,w,,,) = w + + v + + w + w + w Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -4

Don t Care Conditions Sometimes, not all possible output values are specified in sstem design, e.g.: Calculator, Clock, or Counter Circuit w=8 =4 =2 = f a e g b d c 2 3 4 BCD data 7 segment LCD 5 6 7 8 9 Consider the horiontal line in the middle of the displa (segment g): F g (w,,,)=σ(2,3,4,5,6,8,9), but we don t care what happens to minterms,, 2, 3, 4, or 5, since the displa will not be sent those states Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -5

Don t Care Conditions w\ w\ X X X X X X X X X X X X F(w,,,) = + + + w F (w,,,) = w + We are free to assign whatever values we want to for minterms,, 2, 3, 4, and 5. Assign them a value X to indicate the ma be covered, or not, whichever results in the simplest epression Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -6

Logical Completeness. AND, OR, NOT can implement an Boolean function The form a Logicall Complete set of operators Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -7

Logical Completeness. AND, OR, NOT can implement an Boolean function The form a Logicall Complete set of operators 2. NAND can implement AND and NOT directl: NOT = AND = Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -8

Logical Completeness. AND, OR, NOT can implement an Boolean function The form a Logicall Complete set of operators 2. NAND can implement AND and NOT directl: NOT = AND = 3. NAND can implement OR b DeMorgan s Law: = = NAND is logicall complete (so is NOR) Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -9

NAND Implementation of Sum of Products Consider an arbitrar Sum of Products: m A m B Σ(A,B,C) m C Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -

NAND Implementation of Sum of Products Consider an arbitrar Sum of Products: Add inversions at each term. This is allowed, since ( ) = m A m B Σ(A,B,C) m C Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -

NAND Implementation of Sum of Products Consider an arbitrar Sum of Products: Add inversions at each term. This is allowed, since ( ) = Convert output gate b DeMorgan s Law: m A m B Σ(A,B,C) m C Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -2

Wired-AND and Open Collector Tpical TTL totem-pole output circuit: +V +V I I out out I I TTL with Open Collector output circuit Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -3

Wired-AND and Open Collector Each gate asserts -output with no pull-up transistor, no gate can cause output to become. Eternal pull-up resistor needed Used for wiring multiple devices together on bus, but speed is limited +V +V +V +V Pull-up resistor Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -4

XOR Function Eclusive OR (XOR) = ' i + i ' w = (( w ) ) = ( w ) ( ) XOR applications: Addition, parit, data scramblers, encrption, shift register sequences Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -5

N-input XOR w = (( w ) ) = ( w ) ( ) These three designs are all logicall equivalent (for static signals) Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -6

Hard To Minimie Functions Consider this map: w w v= v= Isolated minterms cannot be grouped Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -7

Hard To Minimie Functions Consider this map: w w Cover part of the map with XOR Treat the rest normall F( v, w,,, ) = ( w')' i( v w ) + w' ' ' + w' v= v= Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -8

Hard To Minimie Functions Consider this map: w w Cover part of the map with XOR Treat the rest normall F( v, w,,, ) = ( w')' i( v w ) + w' ' ' + w' v= v= Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -9

Summar Fundamental concepts of digital sstems (Mano Chapter ) Binar codes, number sstems, and arithmetic (Ch ) Boolean algebra (Ch 2) Simplification of switching equations (Ch 3) Digital device characteristics (e.g., TTL, CMOS)/design considerations (Ch ) Combinatoric logical design including LSI implementation (Chapter 4) Haards, Races, and time related issues in digital design (Ch 9) Flip-flops and state memor elements (Ch 5) Sequential logic analsis and design (Ch 5) Snchronous vs. asnchronous design (Ch 9) Counters, shift register circuits (Ch 6) Memor and Programmable logic (Ch 7) Minimiation of sequential sstems Introduction to Finite Automata Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -2

Homework 3 due in Class 5 As alwas, show all work: Problems 3-5, 3-7, 3-8. Design a BCD to seven segment decoder for an 2 of the 6 segments (a-f) we did not discuss in class. Switching Theor and Logical Design Copright 24 Stevens Institute of Technolog -2