CHAPTER 18 Circuits for Arithmetic Operations

Slides:



Advertisements
Similar presentations
©2004 Brooks/Cole FIGURES FOR CHAPTER 12 REGISTERS AND COUNTERS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter.
Advertisements

Chapter 7 Henry Hexmoor Registers and RTL
Number Systems & Operations
THE ARITHMETIC-LOGIC UNIT. BINARY HALF-ADDER BINARY HALF-ADDER condt Half adder InputOutput XYSC
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3: IT Students.
Binary Addition Rules Adding Binary Numbers = = 1
DIGITAL SYSTEMS TCE1111 Representation and Arithmetic Operations with Signed Numbers Week 6 and 7 (Lecture 1 of 2)
Registers and Counters
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 10 Arithmetic Circuits.
©2004 Brooks/Cole FIGURES FOR CHAPTER 18 CIRCUITS FOR ARITHMETIC OPERATIONS Click the mouse to move to the next page. Use the ESC key to exit this chapter.
ECE 645 – Computer Arithmetic Lecture 9: Basic Dividers ECE 645—Computer Arithmetic 4/1/08.
1 Arithmetic and Logical Operations - Part II. Unsigned Numbers Addition in unsigned numbers is the same regardless of the base. Given a pair of bit sequences.
Data Representation – Binary Numbers
CHAPTER 12 REGISTERS AND COUNTERS
Rabie A. Ramadan Lecture 3
Introduction to Chapter 6  Digital circuits are frequently used for arithmetic operations  Fundamental arithmetic operations on binary numbers and digital.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
King Fahd University of Petroleum and Minerals King Fahd University of Petroleum and Minerals Computer Engineering Department Computer Engineering Department.
Lesson 5-4 Example Example 2 Find 14 ÷ 4. Show the remainder. 1.Rewrite the problem in vertical format.
REGISTER A register is a group of flip-flops. Each flip- flop is capable of storing one bit of informa­ tion. An n-bit register consists of a group of.
ABC/ Mathematics / Chapter 1 / TP / Rev 1 © 2003 General Physics Corporation OBJECTIVES 1.Without a calculator; ADD, SUBTRACT, MULTIPLY, and DIVIDE.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
9/15/09 - L26 Shift RegistersCopyright Joanne DeGroat, ECE, OSU1 Shift Registers.
Department of Communication Engineering, NCTU 1 Unit 4 Arithmetic and Logic Units.
©2010 Cengage Learning SLIDES FOR CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION Click the mouse to move to the next page. Use the ESC key to exit.
COMPUTER ARITHMETIC Arithmetic with Signed-2's Complement Numbers
Integer Operations Computer Organization and Assembly Language: Module 5.
Decimal Review. Adding decimals Rules Line up the decimal points 2. Make whole numbers look like decimals.
1 CHAPTER 12 REGISTERS AND COUNTERS This chapter in the book includes: Objectives Study Guide 12.1Registers and Register Transfers 12.2Shift Registers.
William Stallings Computer Organization and Architecture 8th Edition
REGISTER TRANSFER AND MICROOPERATIONS
Unit 1 Introduction Number Systems and Conversion.
More Binary Arithmetic - Multiplication
COMPUTER ARITHMETIC Arithmetic with Signed-2's Complement Numbers
Multiplication and Division basics
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
Prof. Sin-Min Lee Department of Computer Science
Class Exercise 1B.
CHAPTER 18 Circuits for Arithmetic Operations
Overview Register Transfer Language Register Transfer
REGISTER TRANSFER AND MICROOPERATIONS
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
EKT 221 : Digital 2 Serial Transfers & Microoperations
Analysis of Clocked Sequential Circuit
SLIDES FOR CHAPTER 12 REGISTERS AND COUNTERS
Register Transfer and Microoperations
Multiplication & Division
Lecture 16 Arithmetic Circuits
Arithmetic and Logic Units
Principles & Applications
Digital Systems Section 14 Registers. Digital Systems Section 14 Registers.
Reading: Hambley Chapters
Computer Organization and Design
Digital System Design Review.
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
ECE 434 Advanced Digital System L12
ECEG-3202 Computer Architecture and Organization
Outline Registers Counters 5/11/2019.
Shift registers and Floating Point Numbers
CHAPTER-3 REGISTER TRANSFER LANGUAGE AND MICROOPERATIONS
Design of Networks for Arithmetic Operation
Forward Design by state transition table, and state graph
Instruction execution and ALU
Computer Architecture
Presentation transcript:

CHAPTER 18 Circuits for Arithmetic Operations 18.1 Serial Adder with Accumulator 18.2 Design of a Parallel Multiplier 18.3 Design of a Binary Divider

Objectives 1. Analyze and explain the operation of various circuits for adding, subtracting, multiplying, and dividing binary numbers and for similar operations. 2. Draw a block diagram and design the control circuit for various circuits for adding, subtracting, multiplying, and dividing binary numbers and for similar operations.

18.1 Serial Adder with Accumulator Fig 18-1. Block Diagram for Serial Adder with Accumulator

18.1 Serial Adder with Accumulator Fig 18-2. Operation of Serial Adder

18.1 Serial Adder with Accumulator Table 18-1: Operation of Serial Adder X Y Ci Si Ci+ t0 t1 t2 t3 t4 0101 0010 0001 1000 1100 0111 1011 1101 1110 1 (1) (0)

18.1 Serial Adder with Accumulator Fig 18-3. State Graph for Serial Adder Control Next State Sh St = 0 1 S0 S1 S2 S3

18.1 Serial Adder with Accumulator Fig 18-4. Derivation of Control Circuit Equations AB A+B+ 1 S0 S1 S2 S3 00 01 10 11

18.1 Serial Adder with Accumulator Fig 18-5. Typical Serial Processing Unit

18.1 Serial Adder with Accumulator Fig 18-6. State Graphs for Serial Processing Unit

18.2 Design of a Parallel Multiplier Example of 13 x 11 1 1 0 1 (13) 1 1 0 1 (11) 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 0 0 0 1 1 1 1 (143) Multiplicand Multiplier Partial Products Product

18.2 Design of a Parallel Multiplier Fig 18-7. Block Diagram for Parallel Binary Multiplier

18.2 Design of a Parallel Multiplier initial contents of product register (add multiplicand because M=1) after addition after shift (skip addition because M=0) (add multiplicand because M=1 after shift (final answer) dividing line between product and multiplier 0 0 0 0 0 1 0 1 1  M (11) 1 1 0 1 (13) 0 1 1 0 1 1 0 1 1 0 0 1 1 0 1 1 0 1  M 1 1 0 1 1 0 0 1 1 1 1 0 1 0 1 0 0 1 1 1 1 0  M 0 0 1 0 0 1 1 1 1  M 1 0 0 0 1 1 1 1 1 0 1 0 0 0 1 1 1 1 (143)

18.2 Design of a Parallel Multiplier Fig 18-8. State Graph for Multiplier Control

18.2 Design of a Parallel Multiplier Fig 18-9 : State reduction Using Counter

18.2 Design of a Parallel Multiplier Table 18-2. Operation of a Multiplier Using a Counter Time State Counter Product Register St M K Load Ad Sh Done to t1 t2 t3 t4 t5 t6 t7 t8 t9 So S1 S2 S3 S4 S5 S6 S7 S8 S9 00 01 10 11 000000000 000001011 011011011 001101101 100111101 010011110 001001111 100011111 010001111 1

18.3 Design of a Binary Divider 1 0 1 0 quotient 1 0 0 0 0 1 1 1 dividend 1 1 0 1 0 1 1 1 0 0 0 0 1 1 1 1 0 1 0 1 0 1 0 1 remainder divisor 1 1 0 1 ( 135 ÷ 13 = 10 with a remainder of 5 )

18.3 Design of a Binary Divider Fig 18-10. Block Diagram for Parallel Binary Divider

18.3 Design of a Binary Divider Example. 135 divided by 13 Dividing line between dividend and quotient 1 0 0 0 0 1 1 1 0 1 1 0 1 Note that after the shift, the rightmost position in the dividend register is “empty” 0 0 0 1 1 1 1 1 1 First quotient digit continue…

18.3 Design of a Binary Divider 0 0 1 1 1 1 1 1 0 1 1 0 1 0 0 0 1 0 1 1 0 1 Third quotient digit 0 0 1 0 1 1 0 1 0 remainder quotient initial contents of the registers of 135 divided by 7 0 1 0 0 0 0 1 1 1 0 1 1 1

18.3 Design of a Binary Divider Quotient of Fig 18-10: Overflow condition

18.3 Design of a Binary Divider Fig 18-11. State Graph for Divider Control Circuit

18.3 Design of a Binary Divider One flip-flop is used for each state with by inspection, The next-state and output equation

18.3 Design of a Binary Divider Fig 18-12. Logic Diagram for 5-Bit Subtracter

18.3 Design of a Binary Divider 5-bit subtracter output is merged with bits a logic 1 to form a 9-bit bus. the MUX output will be when Load = 0 A bus splitter that splits the 9bits from the X register into and ; is not used.

18.3 Design of a Binary Divider Fig 18-13. Block Diagram for Divider Using Bus Notation

Programmed Exercises 18.1 State a rule for forming the 2’s complement which is appropriate for use with the preceding block diagram

Programmed Exercises 18.1

Note : Sh should be added to the graph everywhere Z or Z’ appears Programmed Exercises 18.1 Note : Sh should be added to the graph everywhere Z or Z’ appears

Programmed Exercises 18.2 This exercise concerns the design of a binary divider to divide a 6-bit number by a 3-bit number to find a 3-bit quotient. The right 3 bits of the dividend register should be used to store the quotient. Draw a block diagram for the divider. Omit the signals required to initially load the dividend register and assume the dividend is already loaded.

Programmed Exercises 18.2 If the contents of the dividend register is initially 0100010 and the divisor is 110, show the contents of the dividend register after each of the first three rising clock edges. Also, indicate whether a shift or a subtraction should occur next. Now, show the remaining steps in the computation and check your answer by converting to decimal.

Programmed Exercises 18.2 Answer