0% found this document useful (0 votes)
16 views46 pages

Cao Co3

The document outlines the syllabus for a course on Computer Architecture and Organization, covering topics such as number representation, arithmetic operations, memory organization, and I/O device management. It includes hardware implementations for addition, subtraction, multiplication using Booth's algorithm, and division, along with cache coherence protocols and pipeline organization. References for further reading are also provided, highlighting key textbooks in the field.

Uploaded by

ask4jaiswal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views46 pages

Cao Co3

The document outlines the syllabus for a course on Computer Architecture and Organization, covering topics such as number representation, arithmetic operations, memory organization, and I/O device management. It includes hardware implementations for addition, subtraction, multiplication using Booth's algorithm, and division, along with cache coherence protocols and pipeline organization. References for further reading are also provided, highlighting key textbooks in the field.

Uploaded by

ask4jaiswal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 46

Computer Architecture and Organization

1
2
Syllabus

Number Representation and Arithmetic Operations, Character Representation, Memory


locations and addresses, Memory operations, Addressing modes, CISC and RISC.
Hardware for addition and subtraction, Multiplication, Hardware implementation,
Booth's algorithm, Division, Floating point representation, IEEE standard floating-point
representation. Bus organization, comparison of hardwired and micro-programmed
approach, hardwired control design, Booths multiplier design, Micro-programmed
multiplier control unit. Internal organization of memory chips, Structure of Larger
Memories, Cache mapping functions, Replacement algorithms, and Virtual memories.
Accessing I/O devices, Interrupts, Enabling and disabling Interrupts, DMA. Pipeline
Organization, Data dependencies, Handling data dependencies, Hardware
multithreading, SIMD Processing, Graphics processing units, Shared memory
multiprocessors, Interconnection Networks, Cache Coherence, Write-Through Protocol,
Write-Back protocol, Directory-Based Cache Coherence

3
References:

1. Carl Hamacher, Zvonko Vranesic and Safwat Zaky, Computer Organization and
Embedded Systems, (6e), McGraw Hill Publication, 2012.
2. William Stallings, Computer Organization and Architecture – Designing for
Performance, (9e), PHI, 2015.
3. Mohammed Rafiquzzaman and Rajan Chandra, Modern Computer Architecture,
Galgotia Publications Pvt. Ltd., 2010

4
Hardware implementation of
Arithmetic operation with signed
numbers

5
Binary Number Representation

6
Signed and Unsigned Binary

7
Finding 1’s complement

8
Inverters used to obtain 1’s complement of a binary
numbers

9
Finding 2’s complement

10
Finding 2’s complement

11
Representation of the signed integers in Binary Three forms

Signed integers in Binary

Signed
1’s 2’s
Magnitude
Complement Complement
form

12
Representation of the signed integers in Binary Three forms

13
Representation of the signed integers in Binary Three forms

14
Representation of the signed integers in Binary Three forms

15
Representation of the signed integers in Decimal forms

16
Representation of the signed integers in Decimal forms

17
Range on 2’s complement representation

18
• Arithmetic operation with
numbers Addition

Subtraction

Multiplication

Division
19
Addition with Unsigned number

20
Subtraction with Unsigned number

21
Rules for Addition and Subtraction using Signed –
Magnitude Data

22
Hardware for sign Magnitude addition and subtraction

When SW= 0 ,the output


of B is transferred to the
adder (Output=A+B)

When SW= 1 ,the 1’s


compliment of B is
applied to the adder
(Output=A+B’+1)

23
Signed 2’s compliment addition and subtraction

24
Hardware for signed 2’s compliment addition and
subtraction

25
Overflow?

26
Examples of Overflow

27
Multiplication with Unsigned number

28
Hardware Implementation of multiplication

29
Example

Multiplicand = 10111
Multiplier = 10011

30
Booth’s Algorithm Multiplication with signed 2's complement
data
• Booth algorithm gives a procedure for multiplying binary integers in
signed 2’s complement representation in efficient way.

• less number of additions/subtractions required.

31
Hardware
Implementation of
Booths Algorithm –

register as A, B and Q, AC, BR and


QR respectively.

Qn designates the least significant


bit of multiplier in the register QR.

An extra flip-flop Qn+1is appended


to QR to facilitate a double
inspection of the multiplier.

32
33
Booth’s
Algorithm
Flowchart –
AC and the appended bit Qn+1 are initially
cleared to 0

the sequence SC is set to a number n equal to


the number of bits in the multiplier.

The two bits of the multiplier in Qn and


Qn+1are inspected.

If the two bits are equal to 10, it means that


the first 1 in a string has been encountered.

This requires subtraction of the multiplicand


from the partial product in AC

34
Example – A numerical example of booth’s algorithm , multiplication of -5 and -7.
BR = -5 = 1011,

BR' = 0100, <-- 1's Complement (change the values 0 to 1 and 1 to 0)

BR'+1 = 0101 <-- 2's Complement (add 1 to the Binary value obtained after 1's complement)

QR = -7 = 1001 <-- 2's Complement of 0111 (7 = 0111 in Binary)

The explanation of first step is as follows: Qn+1

AC = 0000, QR = 1001, Qn+1 = 0, SC = 4

Qn Qn+1 = 10

So, we do AC + (BR)'+1, which gives AC = 0101

On right shifting AC and QR, we get

AC = 0010, QR = 1100 and Qn+1 = 1


35
2's Complement of
0111

OPERATION AC QR Qn+1 SC
0000 1001 0 4
AC + BR’ + 1 0101 1001 0
ASHR 0010 1100 1 3
AC + BR 1101 1100 1
ASHR 1110 1110 0 2
ASHR 1111 0111 0 1
AC + BR’ + 1 0100 0111 0
ASHR 0010 0011 1 0

Product = AC QR
Product = 0010 0011 = 35
36
Problem

Multiply -9 and -13 by booth’s algorithm method

37
38
Problem

Multiply 7 and 3 by booth’s algorithm method

39
40
Advantages
Faster than
traditional
multiplication

Efficient
Widely
for
used in
signed
hardware
numbers

Lower hardware
requirement

41
Disadvantages

Complex to Limited
understand applicability

Higher
Higher
power
latency:.
consumption

42
Division

43
Hardware Implementation of division

44
Flowchart of Division

45
Example

Divisor B=10001,
Dividend = 0111000

46

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy