Chapter 12 Digital Logic Circuit Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Slides:



Advertisements
Similar presentations
Programming Logic Gate Functions in PLCs
Advertisements

컴퓨터구조론 교수 채수환. 교재 Computer Systems Organization & Architecture John D. Carpinelli, 2001, Addison Wesley.
Combinational Circuits
التصميم المنطقي Second Course
Appendix A Logic Circuits. Logic circuits Operate on binary variables that assume one of two distinct values, usually called 0 and 1 Implement functions.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
Chapter 11_1 (chap 10 ed 8) Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean.
Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
The Map Method Boolean expressions may be simplified by algebraic means as discussed in Previous lecture However, this procedure of minimization is awkward.
2-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL Fundamentals of Digital.
CHAPTER 3 Digital Logic Structures
Chapter 9 Counters.
Chapter 1_4 Part II Counters
+ CS 325: CS Hardware and Software Organization and Architecture Exam 1: Study Guide.
Boolean Algebra and Logic Simplification
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Building Functions.
Chapter 1 Number Systems and Codes 1. Outline 1. NUMBER SYSTEMS AND CODES 2. DIGITAL ELECTRONIC SIGNALS AND SWITCHES 3. BASIC LOGIC GATES 4. PROGRAMMABLE.
ES 244: Digital Logic Design Chapter 1 Chapter 1: Introduction Uchechukwu Ofoegbu Temple University.
ReVieW Combinational & Sequential Logic Circuit EKT 221 / 4 DIGITAL ELECTRONICS II.
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
Engineering Lecture 3 Digital Electronics by Jaroslaw Karcz.
Logic and data representation Revision. AND gate A B A B All inputs have to be true ( i.e 1) for the output of the gate to be high, in all other cases.
© The McGraw-Hill Companies, Inc McGraw-Hill 1 PRINCIPLES AND APPLICATIONS OF ELECTRICAL ENGINEERING THIRD EDITION G I O R G I O R I Z Z O N I 14.
MSBLSB A byte comprises eight bits. The number shown above is a binary number, which is one byte in length. The rightmost 1 st bit, i.e., is known.
ECE 101 An Introduction to Information Technology Digital Logic.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 3 Digital Logic Structures Transistors Logic gates & Boolean logic Combinational.
CHAPTER 14 Digital Systems.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 3 Digital Logic Structures Transistors Logic gates & Boolean logic Combinational.
1.Overview of Course Objective 2.Details of course website, BLOG 3.Details of Syllabus 4.Recommended Books 5.Details of Lab Sessions 6.Introductory concepts.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
1 Digital Logic Design Week 5 Simplifying logic expressions.
مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook:
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
1 Lecture 6 BOOLEAN ALGEBRA and GATES Building a 32 bit processor PH 3: B.1-B.5.
CHAPTER-2 Fundamentals of Digital Logic. Digital Logic Digital electronic circuits are used to build computer hardware as well as other products (digital.
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
Kavita Bala CS 3410, Spring 2014 Computer Science Cornell University.
Sequential logic circuits
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Binary Numbers For digital systems, the.
Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals.
CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.
Synchronous Counter Design
ELECTRICAL ENGINEERING: PRINCIPLES AND APPLICATIONS, Third Edition, by Allan R. Hambley, ©2005 Pearson Education, Inc. Chapter 7 Logic Circuits.
Digital Electronics Final Review. Introduction Molecules: made up of atoms of individual elements. Atoms: made up of a nucleus surrounded by orbiting.
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
CHAPTER 14 Digital Systems. Figure 14.1 RS flip-flop symbol and truth table Figure
1 Binary Signals Logic gate circuits are designed to input and output only two types of signals: “high” (1) and “low” (0), as represented by a variable.
CHAPTER 13 Digital Logic Circuits. Figure Voltage analog of internal combustion engine in-cylinder pressure Figure 13.1.
Boolean Algebra & Logic Gates
CHAPTER 3 Simplification of Boolean Functions
Prof. Sin-Min Lee Department of Computer Science
DIGITAL LOGIC CIRCUITS
Introduction Molecules: made up of atoms of individual elements.
DIGITAL LOGIC CIRCUITS
Fundamentals & Ethics of Information Systems IS 201
ECE 434 Advanced Digital System L03
Reading: Hambley Chapters
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
CPE/EE 422/522 Advanced Logic Design L02
Digital Electronics & Logic Design
13 Digital Logic Circuits.
Digital Logic Circuits
CSC3050 – Computer Architecture
14 Digital Systems.
Digital System Design Combinational Logic
CSE 370 – Winter Number syst.; Logic functions- 1
Digital and Microprocessor Technique I
Presentation transcript:

Chapter 12 Digital Logic Circuit Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Context  12.1 Analog and Digital Signals  12.2 The Binary Number System  12.3 Boolean Algebra  12.4 Karnaugh Maps and Logic Design  12.5 Combinational Logic Modules  12.6 Sequential Logic Modules

Analog and Digital Signals An analog signal is an electric signal whose value varies in analogy with a physical quantity (e.g., temperature, force, or acceleration). Voltage analog of internal combustion engine in-cylinder pressure

A digital signal can take only a finite number of values. Digital representation of an analog signal

The most common digital signals are binary signals. Take only one of two discrete values and is therefore characterized by transitions between two states. A binary signal

The Binary Number System  Binary numbers are based on powers of 2, whereas the decimal system is based on powers of 10. For example, the number 372 in the decimal system can be expressed as:  while the binary number corresponds to the following combination of powers of 2: = (1 x 24) + (0 x 23) + (1 x 22) + (1 x 21) + (0 x 20) 372 = (3 x 102) + (7 x 101) + (2 x 100)

 The rightmost bit is called the least significant bit, or LSB, and the leftmost bit is called the most significant bit, or MSB. Four bits are usually termed a nibble, 8 bits is called a byte, and 16 bits (or 2 bytes) is a word.

CHECK YOUR UNDERSTANDING

Addition and Subtraction Examples of binary addition Examples of binary subtraction

Conversion from decimal to binary

CHECK YOUR UNDERSTANDING

Complement and Negative Number  One convention, called the sign-magnitude convention makes use of a sign bit, usually positioned at the beginning of the number, for which a value of 1 represents a minus sign and a value of 0 represents a plus sign.  An 8-bit binary number would consist of 1 sign bit followed by 7 magnitude bits.

(a) An 8-bit sign-magnitude binary number; (b) an 8-bit ones complement binary number; (c) an 8-bit twos complement binary number

 A sign bit is also used to indicate whether the number is positive (sign bit = 0) or negative (sign bit = 1). However, the magnitude of the binary number is represented by the true magnitude if the number is positive and by its ones complement if the number is negative.

CHECK YOUR UNDERSTANDING EXAMPLE 12.1 Twos Complement Operation

CHECK YOUR UNDERSTANDING

 In the hexadecimal (or hex) code, the bits in a binary number are subdivided into groups of 4. Since there are 16 possible combinations for a 4-bit number, the natural digits in the decimal system (0 through 9) are insufficient to represent a hex digit. To solve this problem, the first six letters of the alphabet are used. For example, = A = The Hexadecimal System

CHECK YOUR UNDERSTANDING EXAMPLE 12.2 Conversion from Binary to Hexadecimal Problem

CHECK YOUR UNDERSTANDING

Boolean Algebra Logical addition and the OR gate Logical multiplication and the AND gate

Example of logic function implementation with logic gates

Solution of a logic problem using logic gates

Complements and the NOT gate

De Morgan’s Theorems  Any logic function can be implemented by using only OR and NOT gates, or only AND and NOT gates.

Rule of Boolean algebra

Proof of rule 16 by perfect induction

De Morgan’s laws

Sum-of-products and product-of-sums logic functions

CHECK YOUR UNDERSTANDING EXAMPLE 12.3 Simplification of Logical Expression Problem

CHECK YOUR UNDERSTANDING EXAMPLE 12.4 Realizing Logic Functions from Truth Tables Problem

CHECK YOUR UNDERSTANDING

CHECK YOUR UNDERSTANDING EXAMPLE 12.5

Equivalence of NAND and NOR gates with AND and OR gates

CHECK YOUR UNDERSTANDING EXAMPLE 12.6

CHECK YOUR UNDERSTANDING EXAMPLE 12.7

CHECK YOUR UNDERSTANDING EXAMPLE 12.8

CHECK YOUR UNDERSTANDING

The XOR (Exclusive OR) Gate XOR gate Realization of an XOR gate

CHECK YOUR UNDERSTANDING

CHECK YOUR UNDERSTANDING EXAMPLE 12.9

CHECK YOUR UNDERSTANDING EXAMPLE Logic circuit realization of a full adder

There is a procedure that utilizes a map describing all possible combinations of the variables present in the logic function of interest. This map is called a Karnaugh map, after its inventor. The row and column assignments for two or more variables are arranged so that all adjacent terms change by only 1 bit. Each map consists of 2 N cells, where N is the number of logic variables. Karnaugh Maps and Logic Design

Each cell in a Karnaugh map contains a miniterm, that is, a product of the N variables that appear in our logic expression. Two-, three-, and four- variable Karnaugh maps

Truth table and Karnaugh map representations of a logic function Karnaugh map for a four-variable expression

Karnaugh map for the function W’˙X˙Y’˙Z+ W‘˙X’˙Y’˙Z + W˙X’˙Y’˙Z’ + W˙X˙Y’˙Z

SUM-OF-PRODUCTS REALIZATIONS  Begin with isolated cells. These must be used as they are, since no simplification is possible.  Find all cells that are adjacent to only one other cell, forming two-cell subcubes.  Find cells that form four-cell subcubes, eight-cell subcubes, and so forth.  The minimal expression is formed by the collection of the smallest number of maximal subcubes.

CHECK YOUR UNDERSTANDING EXAMPLE 1211

CHECK YOUR UNDERSTANDING

CHECK YOUR UNDERSTANDING EXAMPLE 12.12

CHECK YOUR UNDERSTANDING

CHECK YOUR UNDERSTANDING EXAMPLE 12.13

CHECK YOUR UNDERSTANDING EXAMPLE 12.14

CHECK YOUR UNDERSTANDING EXAMPLE 12.15

PRODUCT-OF-SUMS REALIZATIONS  Solve for the 0s exactly as for the 1s in sum-of- products expressions.  Complement the resulting expression.

CHECK YOUR UNDERSTANDING EXAMPLE 12.16

CHECK YOUR UNDERSTANDING

CHECK YOUR UNDERSTANDING EXAMPLE 12.17

CHECK YOUR UNDERSTANDING

CHECK YOUR UNDERSTANDING EXAMPLE 12.18

CHECK YOUR UNDERSTANDING

CHECK YOUR UNDERSTANDING EXAMPLE 12.19

CHECK YOUR UNDERSTANDING

4-to-1 MUX Multiplexers Internal structure of the 4-to-1 MUX

Functional diagram of four-input MUX

CHECK YOUR UNDERSTANDING

Read-Only Memory (ROM) Read-only memory A 2-to-4 decoder

CHECK YOUR UNDERSTANDING

Internal organization of SRAM

 A flip-flop is a bistable device; that is, it can remain in one of two stable states (0 and 1) until appropriate conditions cause it to change state. Thus, a flip-flop can serve as a memory element.  A flip-flop has two outputs, one of which is the complement of the other. Latches and Filp-Flop

RS Flip-Flop  When R = S = 0, the flip-flop remains in its present state (whether 1 or 0).  When S = 1 and R = 0, the flip-flop is set to the 1 state (thus, S, for set).  When S = 0 and R = 1, the flip-flop is reset to the 0 state (thus, R, for reset).  It is not permitted for both S and R to be equal to 1. (This would correspond to requiring the flip-flop to set and reset at the same time.)

Timing diagram for the RS flip-flop

Logic gate implementation of the RS flip- flop

CHECK YOUR UNDERSTANDING EXAMPLE 12.21

CHECK YOUR UNDERSTANDING

The D flip-flop: (a) functional diagram; (b) symbol; (c) timing waveforms; and (d) IC schematic

On the basis of the rules stated in this section, the state of the D flip-flop can be described by the following truth table: where the symbol ↑ indicates the occurrence of a positive transition.

JK Flip-Flop  When J and K are both low, no change occurs in the state of the flip-flop.  When J = 0 and K = 1, the flip-flop is reset to 0

The JK flip-flop: (a) functional diagram; (b) device symbol; and (c) IC schematic

Truth table for the JK flip-flop  When J = 1 and K = 0, the flip-flop is set to 1. When both J and K are high, the flip-flop will toggle between states at every negative transition of the clock input, denoted from here on by the symbol ↓.

CHECK YOUR UNDERSTANDING

CHECK YOUR UNDERSTANDING EXAMPLE 12.22

CHECK YOUR UNDERSTANDING EXAMPLE 12.23

Digital Counters  A counter is a sequential logic device that can take one of N possible states, stepping through these states in a sequential fashion. When the counter has reached its last state, it resets to 0 and is ready to start counting again.

Binary up counter functional representation, state table, and timing waveforms

Decade counter: (a) counting sequence; (b) functional diagram; and (c) IC schematic

Divide-by-8 circuit

CHECK YOUR UNDERSTANDING EXAMPLE Divider Circuit Problem

Divider circuit timing diagram

Three-bit synchronous counter

CHECK YOUR UNDERSTANDING EXAMPLE Ring Counter

A 4-bit parallel register

A 4-bit shift register

Homework Problem