Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Computer Architecture: Instruction Formats and Memory Traffic Analysis, Lecture notes of Computer Architecture and Organization

detailed description of instruction format in computer architecture and organization

Typology: Lecture notes

2019/2020

Uploaded on 01/17/2020

kriti-maurya
kriti-maurya 🇮🇳

1 document

1 / 45

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Instructions Formats
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d

Partial preview of the text

Download Computer Architecture: Instruction Formats and Memory Traffic Analysis and more Lecture notes Computer Architecture and Organization in PDF only on Docsity!

Instructions Formats

Outline

 IAS Instruction set

 Instruction Set:

 Characteristics and Functions

IAS Instruction set (continued)

Problem

Write an appropriate assembly language code for the

following operation and interpret to Von Neumann IAS

architecture

X=Y*Z

// Where X->40 bit data and Y->40 bit data

Result would be more than 40 bit.

IAS Computer

MARPC

MBRM[MAR]

IRMBR<0..7>

MARMBR<8..19>

IBRMBR<20..39>

ACMBR

MBRM[MAR]

IRIBR<0..7>

MARIBR<8..19>

MBRM[MAR]

ACAC + MBR

PCPC+

MARPC MBRM[MAR]

IRMBR<0..7>

MARMBR<8..19>

IBRMBR<20..39>

M[MAR}MBR

MBRAC

IRIBR<0..7>

AC MQ

IBR PC = 1

IR MAR = 1

MEMORY

**1. LOAD M(X) 500, ADD M(X) 501

  1. STOR M(X) 500, (Other Ins) .....
  2. 3
  3. 4**

PC

MBR IR IBR

MAR

1 1 LOAD M(X) 500, ADD M(X) 501

AC

ADD M(X) 501

LOAD M(X)

500 3 ADD M(X)

501

2

4

2 STOR M(X) 500, (Other Ins)

(Other Ins)

STOR M(X)

500

37

MBR

Mar ← PC

add = 1

LOAD M(X) 500, ADD M(X) 501

LOAD M(X) ADD M(X) 501 (^500)

MAR = add = 500

MBR = 3

3

AC = 3

Add M(X)^501

MAR = 501 add = 501

PC = 2

4

MBR = 4

AC = 7

MAR ←PC

MAR = 2

add = 2

STOR M(X) 500, (Other Ins)

(Other Ins) STOR M(X)

500

MAR = 500

Computer Components:

Top Level View

Instruction Cycle

  • The IAS operates repetitively performing an instruction

cycle.

  • Each instruction cycle consists of Two subcycles.
  • Two steps:
    • Fetch
    • Execute

Execute Cycle

  • Processor-memory
    • data transfer between CPU and main memory
  • Processor- I/O
    • Data transfer between CPU and I/O module
  • Data processing
    • Some arithmetic or logical operation on data
  • Control
    • Alteration of sequence of operations
    • e.g. jump
  • Combination of above

Instruction Cycle State Diagram

Characteristics of Hypothetical Machine

Characteristics of Hypothetical Machine

(cont..)

 The processor contains a single data register called an

accumulator (AC). Both instructions and data are 16 bits

long. Thus it is convenient to organize memory using 16

bit words.

 The instruction format provides 4 bits for the opcode, so

that there can be as many as 2

=16 different opcodes,

and upto 2^12 = 4096(4K) words of memory can be

directly addressed.

Instruction

 Definition:

 Instruction is a statement by which the operation

of CPU is determined.

 These instructions referred as “ Machine instructions or

computer Instructions”

 The collection of different instructions that the CPU can

execute is referred to as the CPU’s instruction set.

What must an instruction

set specify…?