Chapter 2. Introduction to Logic Circuits

Similar documents
Basic Logic Gates Richard E. Haskell

BOOLEAN ALGEBRA & LOGIC GATES

CSE140: Midterm 1 Solution and Rubric

Karnaugh Maps & Combinational Logic Design. ECE 152A Winter 2012

Karnaugh Maps (K-map) Alternate representation of a truth table

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Gates, Circuits, and Boolean Algebra

Elementary Logic Gates

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

CSEE 3827: Fundamentals of Computer Systems. Standard Forms and Simplification with Karnaugh Maps

EXPERIMENT 8. Flip-Flops and Sequential Circuits

ENGI 241 Experiment 5 Basic Logic Gates

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

Karnaugh Maps. Circuit-wise, this leads to a minimal two-level implementation

Simplifying Logic Circuits with Karnaugh Maps

COMBINATIONAL CIRCUITS

DESIGN OF GATE NETWORKS

Philadelphia University Faculty of Information Technology Department of Computer Science Semester, 2007/2008.

CHAPTER 3 Boolean Algebra and Digital Logic

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

CSE140: Components and Design Techniques for Digital Systems

Boolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra

Multiplexers Two Types + Verilog

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

3.Basic Gate Combinations

Two-level logic using NAND gates

Logic in Computer Science: Logic Gates

Upon completion of unit 1.1, students will be able to

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

Combinational circuits

2.0 Chapter Overview. 2.1 Boolean Algebra

Lecture 8: Synchronous Digital Systems

Digital Electronics Detailed Outline

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Course Requirements & Evaluation Methods

Chapter 2 Logic Gates and Introduction to Computer Architecture

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Digital Systems Laboratory

ANALOG & DIGITAL ELECTRONICS

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

Read-only memory Implementing logic with ROM Programmable logic devices Implementing logic with PLDs Static hazards

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

6. BOOLEAN LOGIC DESIGN

Copyright Peter R. Rony All rights reserved.

Understanding Logic Design

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

Testing & Verification of Digital Circuits ECE/CS 5745/6745. Hardware Verification using Symbolic Computation

A Course Material on DIGITAL PRINCIPLES AND SYSTEM DESIGN

EE360: Digital Design I Course Syllabus

Lecture 5: Gate Logic Logic Optimization

Digital Controller for Pedestrian Crossing and Traffic Lights

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

Figure 8-1 Four Possible Results of Adding Two Bits

BINARY CODED DECIMAL: B.C.D.

Combinational Logic Design Process

Digital Logic Design

Switching Algebra and Logic Gates

Course: Bachelor of Science (B. Sc.) 1 st year. Subject: Electronic Equipment Maintenance. Scheme of Examination for Semester 1 & 2

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Module 3: Floyd, Digital Fundamental

earlier in the semester: The Full adder above adds two bits and the output is at the end. So if we do this eight times, we would have an 8-bit adder.

C H A P T E R. Logic Circuits

Module-I Lecture-I Introduction to Digital VLSI Design Flow

Logic gates. Chapter. 9.1 Logic gates. MIL symbols. Learning Summary. In this chapter you will learn about: Logic gates

Let s put together a Manual Processor

exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

DEPARTMENT OF INFORMATION TECHNLOGY

Boolean Algebra Part 1

Programming Logic controllers

RUTGERS UNIVERSITY Department of Electrical and Computer Engineering 14:332:233 DIGITAL LOGIC DESIGN LABORATORY

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

ASYNCHRONOUS COUNTERS

Lab 1: Full Adder 0.0

Gray Code Generator and Decoder by Carsten Kristiansen Napier University. November 2004

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Sistemas Digitais I LESI - 2º ano

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

Flipping the Classroom: How to Embed Inquiry and Design Projects into a Digital Engineering Lecture

Combinational Logic Design

Operating Manual Ver.1.1

7CS-A(CD_lab) Actual date of covering the. Reason for not covering the topic in due time. Month in which the topic will be covered

Electrical Symbols and Line Diagrams

ECE232: Hardware Organization and Design. Part 3: Verilog Tutorial. Basic Verilog

Introduction to Digital Design Using Digilent FPGA Boards Block Diagram / Verilog Examples

Programming A PLC. Standard Instructions

Traffic Light Controller. Digital Systems Design. Dr. Ted Shaneyfelt

Mixed Logic A B A B. 1. Ignore all bubbles on logic gates and inverters. This means

Method for Multiplier Verication Employing Boolean Equivalence Checking and Arithmetic Bit Level Description

Chapter 1. Computation theory

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Registers & Counters

Set operations and Venn Diagrams. COPYRIGHT 2006 by LAVON B. PAGE

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Physics. Cambridge IGCSE. Workbook. David Sang. Second edition Cambers & Sibley: IGCSE Physics Cover. C M Y K

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

SCHEME OF EXAMINATION FOR B.A.(COMPUTER SCIENCE) SEMESTER SYSTEM (Regular Course) w.e.f Scheme for B.A.-I. Semester-I.

Transcription:

Chapter 2 Introduction to Logic Circuits

x = 0 x = 1 (a) Two states of a switch S (b) Symbol for a switch x Figure 2.1. A binary switch.

Battery S x Light (a) Simple connection to a battery Power supply S x Light (b) Using a ground connection as the return path Figure 2.2. A light controlled by a switch.

Power supply S S Light (a) The logical AND function (series connection) S Power supply S Light (b) The logical OR function (parallel connection) Figure 2.3. Two basic functions.

S X 1 S Power supply S X 3 Light X 2 Figure 2.4. A series-parallel connection.

R Power supply x S Light Figure 2.5. An inverting circuit.

Figure 2.6. A truth table for the AND and OR operations.

Figure 2.7. Three-input AND and OR operations.

x x 2 2 x x 2 n x n (a) AND gates x + x 2 2 x + x + + 2 n x n (b) OR gates x x Figure 2.8. The basic gates. (c) NOT gate

f = ( x + x ) x 2 3 3 Figure 2.9. The function from Figure 2.4.

Please see portrait orientation PowerPoint file for Chapter 2 Figure 2.10. An example of logic networks.

Figure 2.11. An example of a logic circuit.

Figure 2.12. Addition of binary numbers.

Figure 2.13. Proof of DeMorgan s theorem in 15a.

Please see portrait orientation PowerPoint file for Chapter 2 Figure 2.14. The Venn diagram representation.

Please see portrait orientation PowerPoint file for Chapter 2 Figure 2.15. Verification of the distributive property.

Please see portrait orientation PowerPoint file for Chapter 2 Figure 2.16. Verification of x y + x z + y z = x y + x z.

Figure 2.17. Proof of the distributive property 12b.

Figure 2.18. Proof of DeMorgan s theorem 15a.

Figure 2.19. A function to be synthesized.

f (a) Canonical sum-of-products f (b) Minimal-cost realization Figure 2.20. Two implementations of the function in Figure 2.19.

Figure 2.21. A bubble gumball factory.

Figure 2.22 Three-variable minterms and maxterms.

Figure 2.23. A three-variable function.

f x 3 (a) A minimal sum-of-products realization x 3 f (b) A minimal product-of-sums realization Figure 2.24. Two realizations of a function in Figure 2.23.

x 2 x n x n (a) NAND gates x + 2 + + + x n x n (b) NOR gates Figure 2.25. NAND and NOR gates.

(a) = + (b) + = Figure 2.26. DeMorgan s theorem in terms of logic gates.

x 3 x 4 x 5 x 3 x 4 x 5 x 3 x 4 x 5 Figure 2.27. Using NAND gates to implement a sum-of-products.

x 3 x 4 x 5 x 3 x 4 x 5 x 3 x 4 x 5 Figure 2.28. Using NOR gates to implement a product-of sums.

f x 3 (a) POS implementation f x 3 (b) NOR implementation Figure 2.29 NOR-gate realization of the function in Example 2.11.

f x 3 (a) SOP implementation f x 3 (b) NAND implementation Figure 2.30. NAND-gate realization of the function in Example 2.10.

Figure 2.31. Truth table for a three-way light control.

Please see portrait orientation PowerPoint file for Chapter 2 Figure 2.32. Implementation of the function in Figure 2.31.

Please see portrait orientation PowerPoint file for Chapter 2 Figure 2.33. Implementation of a multiplexer.

Figure 2.34. Display of numbers.

Please see portrait orientation PowerPoint file for Chapter 2 Figure 2.35. A typical CAD system.

Figure 2.36. The logic circuit for a multiplexer.

Figure 2.37. Verilog code for the circuit in Figure 2.36.

module example2 (x1, x2, x3, x4, f, g, h); input x1, x2, x3, x4; output f, g, h; endmodule and (z1, x1, x3); and (z2, x2, x4); or (g, z1, z2); or (z3, x1, ~x3); or (z4, ~x2, x4); and (h, z3, z4); or (f, g, h); Figure 2.38. Verilog code for a four-input circuit.

Figure 2.39. Logic circuit for the code in Figure 2.38.

Figure 2.40. Using the continuous assignment to specify the circuit in Figure 2.36.

module example4 (x1, x2, x3, x4, f, g, h); input x1, x2, x3, x4; output f, g, h; endmodule assign g = (x1 & x3) (x2 & x4); assign h = (x1 ~x3) & (~x2 x4); assign f = g h; Figure 2.41. Using the continuous assignment to specify the circuit in Figure 2.39.

Figure 2.42. Behavioral specification of the circuit in Figure 2.36.

Figure 2.43. A more compact version of the code in Figure 2.42.

Figure 2.44. A logic circuit with two modules.

Figure 2.45. Verilog specification of the circuit in Figure 2.12.

Figure 2.46. Verilog specification of the circuit in Figure 2.34.

Figure 2.47. Hierarchical Verilog code for the circuit in Figure 2.44.

Figure 2.48 The function f (,, x 3 ) = Σ m(0, 2, 4, 5, 6).

0 0 m 0 0 1 0 1 1 0 1 1 m 1 m 2 m 3 0 1 m 0 m 2 m 1 m 3 (a) Truth table (b) Karnaugh map Figure 2.49. Location of two-variable minterms.

0 1 0 1 1 0 1 1 f = + Figure 2.50. The function of Figure 2.19.

0 x 3 0 0 m 0 x 3 00 01 11 10 0 0 0 1 1 0 m 1 m 2 0 m 0 m 2 m 6 m 4 0 1 1 1 1 0 0 0 1 m 3 m 4 m 5 1 m 1 m 3 m 7 (b) Karnaugh map m 5 1 1 0 m 6 1 1 1 m 7 (a) Truth table Figure 2.51. Location of three-variable minterms.

Figure 2.52. Examples of three-variable Karnaugh maps.

x 3 x 4 00 01 11 10 00 m 0 m 4 m 12 m 8 01 m 1 m 5 m 13 m 9 x 3 11 10 m 3 m 2 m 6 m 7 m 15 m 14 m 11 m 10 x 4 Figure 2.53. A four-variable Karnaugh map.

Figure 2.54. Examples of four-variable Karnaugh maps.

x 3 x 4 00 01 11 10 x 3 x 4 00 01 11 10 00 00 1 01 1 1 01 1 1 11 1 1 11 1 1 10 1 1 10 1 1 x 5 = 0 x 5 = 1 f 1 = x 3 + x 3 x 4 + x 3 x 5 Figure 2.55. A five-variable Karnaugh map.

x 3 00 01 11 10 0 1 1 1 1 1 0 0 1 0 x 3 Figure 2.56. Three-variable function f (,, x 3 ) = Σ m(0, 1, 2, 3, 7).

x 3 x 4 00 01 11 10 00 x 4 01 1 1 x 3 x 4 11 1 1 1 10 1 1 1 1 x 3 x 4 x 3 x 3 Figure 2.57. Four-variable function f (,, x 4 ) = Σ m(2, 3, 5, 6, 7, 10, 11, 13, 14).

x 3 x 4 00 01 11 10 00 1 1 1 1 x 3 x 4 01 1 x 3 x 4 11 1 1 x 3 x 4 10 1 x 3 x 4 Figure 2.58. The function f (,, x 4 ) = Σ m(0, 4, 8, 10, 11, 12, 13, 15).

x 3 x 4 00 01 11 10 00 1 1 x 3 x 4 01 1 1 x 3 x 4 11 1 1 x 3 x 4 10 1 1 x 3 x 4 x 4 x 4 x 1 x 3 x 1 x 3 Figure 2.59. The function f (,, x 4 ) = Σ m(0, 2, 4, 5, 10, 11, 13, 15).

x 3 0 1 00 01 11 10 1 1 0 0 1 1 1 0 ( + x 3 ) ( + ) Figure 2.60. POS minimization of f (,, x 3 ) = Π M(4, 5, 6).

x 3 x 4 00 01 11 10 00 0 0 0 0 ( x 3 + x ) 4 01 0 1 1 0 ( + x ) 3 11 1 1 0 1 10 1 1 1 1 ( + + x 3 + x ) 4 Figure 2.61. POS minimization of f (,, x 4 ) = Π M(0, 1, 4, 8, 9, 12, 15).

Please see portrait orientation PowerPoint file for Chapter 2 Figure 2.62. Two implementations of the function f (,, x 4 ) = Σ m(2, 4, 5, 6, 10) + D(12, 13, 14, 15).

Please see portrait orientation PowerPoint file for Chapter 2 Figure 2.63. Using don t-care minterms when displaying BCD numbers.

Please see portrait orientation PowerPoint file for Chapter 2 Figure 2.64. An example of multiple-output synthesis.

Please see portrait orientation PowerPoint file for Chapter 2 Figure 2.65. Another example of multiple-output synthesis.

x 3 x 3 (a) Function A (b) Function B x 3 x 3 (c) Function C (d) Function f Figure 2.66. The Venn diagrams for Example 2.23.

Please see portrait orientation PowerPoint file for Chapter 2 Figure 2.67. Karnaugh maps for Example 2.26.

Please see portrait orientation PowerPoint file for Chapter 2 Figure 2.68. Karnaugh maps for Example 2.27.

Figure 2.69. A K-map that represents the function in Example 2.28.

Figure 2.70. The logic circuit for Example 2.29.

Figure 2.70. Verilog code for Example 2.29.

Figure 2.72. The circuit for Example 2.30.

Figure 2.73. Verilog code for Example 2.30.

x 3 x 3 x 4 x 4 (a) (b) Figure P2.1. Two attempts to draw a four-variable Venn diagram.

x 3 m 0 x 4 x 3 m 2 m 1 Figure P2.2. A four-variable Venn diagram.

x 3 f 1 0 1 0 1 0 1 0 Time Figure P2.3. A timing diagram representing a logic function.

x 3 f 1 0 1 0 1 0 1 0 Time Figure P2.4. A timing diagram representing a logic function.

Please see portrait orientation PowerPoint file for Chapter 2 Figure P2.5. Circuit for problem 2.78.

Please see portrait orientation PowerPoint file for Chapter 2 Figure P2.6. Circuit for problem 2.79.