SlideShare a Scribd company logo
5
Most read
10
Most read
11
Most read
Memory Addressing
Prof. Neeraj Bhargava
Kapil Chauhan
Department of Computer Science
School of Engineering & Systems Sciences
MDS University, Ajmer
Computer Architecture Concepts
• Machine language: binary language
• Assembly language: symbolic language
• In the past, architecture, organization and hardware
are used to descript a computer.
• Due to the higher and higher performance of
computer, the relationships among architecture,
organization and hardware become intertwined.
• Instruction set architecture (ISA) is then used to
encompass the whole of computer.
Computer Architecture Concepts
Program Counter (PC) keeps track of the instructions
in the program stored in memory.
Addressing Architecture
Memory-to-memory
PC is the only register
21 accesses to memory needed in the previous example
(includes accesses of address, data, instruction)
instruction count is low, but the execution time is
potentially high
Addressing Architecture
Register-to-register
allow only one memory address
restrict its use to load and store type
needs sizable register file
see the program on the top of page 522 in textbook
only 18 memory accesses are needed
Addressing Architecture
• Register-memory type
– ADD R1, A R1 R1+M[A]←
– program lengths and number of memory accesses tend
to be intermediate between the previous two
architectures
• Single-accumulator architecture
– no register file
– significant additional memory accesses would be
needed for complex programs
– inefficient, is restricted to use in CPUs for simple, low-
cost applications
PUSH A
PUSH B
ADD
PUSH C
MUL
PUSH D
PUSH E
MUL
ADD
Addressing Mode
Addressing mode: The rule for interpreting or
modifying the address field of an instruction.
Effective address: The address of operand
produced by the application of the rule for
interpreting or modifying the address field of
the instruction before the operand is actually
referenced.
Addressing Mode
Implied mode: needs no address field, the operand
is specified implicitly in the definition of the opcode.
For example, ADD in a stack computer.
Immediate mode: an instruction has an operand
field rather than an address field.
Addressing Mode
Indirect addressing mode: the address field of
the instruction gives the address at which the
effective address is stored in memory
Relative addressing mode: Effective address=
address part of the instruction + contents of PC
(signed number)
Addressing Mode
Indexed addressing mode: the content of an
indexed register is added to the address part of the
instruction to obtain the effective address.
The indexed register may be a special register in CPU or
simply a register in register file.
In the application of array, the distance between the
beginning address and the address of the operand is the
index value stored in the register.
Stack instructions (push/pop)
 Reside in memory
 Due to the negative effects on performance,
a stack typically handles only state
information related to procedure
calls/returns/interrupts.
 A register holds the address for the stack is
called stack pointer (SP).

More Related Content

PDF
Computer organization memory
PPTX
priority interrupt computer organization
PDF
Arm instruction set
PPTX
Input Output Organization
PPTX
Computer arithmetic
PPTX
Basic Computer Organization and Design
PPS
Computer instructions
PPTX
Assembly language
Computer organization memory
priority interrupt computer organization
Arm instruction set
Input Output Organization
Computer arithmetic
Basic Computer Organization and Design
Computer instructions
Assembly language

What's hot (20)

PPTX
Ambiguous & Unambiguous Grammar
PPTX
ADDRESSING MODES
PPTX
Memory organization in computer architecture
PPT
Instruction format
PPTX
Auxiliary Memory in computer Architecture.pptx
PPTX
bus and memory tranfer (computer organaization)
PPTX
Instruction Formats
PPT
Pipeline hazards in computer Architecture ppt
PPTX
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
PPTX
Arm architecture chapter2_steve_furber
PPT
Assembly language programming_fundamentals 8086
PPT
Microinstruction sequencing new
PPTX
Computer architecture virtual memory
PPTX
DMA and DMA controller
PPT
Input output organization
PPTX
RAID LEVELS
PPTX
Presentation on risc pipeline
PPTX
Memory Organization
PPTX
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Ambiguous & Unambiguous Grammar
ADDRESSING MODES
Memory organization in computer architecture
Instruction format
Auxiliary Memory in computer Architecture.pptx
bus and memory tranfer (computer organaization)
Instruction Formats
Pipeline hazards in computer Architecture ppt
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
Arm architecture chapter2_steve_furber
Assembly language programming_fundamentals 8086
Microinstruction sequencing new
Computer architecture virtual memory
DMA and DMA controller
Input output organization
RAID LEVELS
Presentation on risc pipeline
Memory Organization
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Ad

Similar to Memory Addressing (20)

PPTX
module 3 instruction set and control unit
PPTX
Addressing Modes.pptx
PPTX
Addressing modes, Operations in the instruction set 1.2.3 (1).pptx
PDF
CSN221_Lec_22.pdf Computer Architecture and Microprocessor
PPTX
Anshika 1111.pptx
PPT
TMS320C50 architecture PPT with explanation
PPT
UNIT V - DSP processors TMS320C50 architecture
PPT
ch 3_The CPU_modified.ppt of central processing unit
PPSX
Addressing modes presentation
PPTX
Module 3.1_Instruction Types and Addressing modes.pptx
PPTX
lecture3-instructionset-120307014407-phpapp01.pptx
PPTX
ITEC582-Chapter 13-CO-UNIT-1-IMPORT.pptx
PPTX
ITEC582-Chapter 13-usefull-Computer.pptx
PPTX
Instruction Formats in computer architecture.pptx
PPTX
Lecture 10
PPTX
Computer Organization and Design.pptx
PPT
unit-3-L1.ppt
PDF
UNIT-3-COrtertertertertertertertertr.pdf
PPTX
Addressing modes
PPTX
COA.pptx
module 3 instruction set and control unit
Addressing Modes.pptx
Addressing modes, Operations in the instruction set 1.2.3 (1).pptx
CSN221_Lec_22.pdf Computer Architecture and Microprocessor
Anshika 1111.pptx
TMS320C50 architecture PPT with explanation
UNIT V - DSP processors TMS320C50 architecture
ch 3_The CPU_modified.ppt of central processing unit
Addressing modes presentation
Module 3.1_Instruction Types and Addressing modes.pptx
lecture3-instructionset-120307014407-phpapp01.pptx
ITEC582-Chapter 13-CO-UNIT-1-IMPORT.pptx
ITEC582-Chapter 13-usefull-Computer.pptx
Instruction Formats in computer architecture.pptx
Lecture 10
Computer Organization and Design.pptx
unit-3-L1.ppt
UNIT-3-COrtertertertertertertertertr.pdf
Addressing modes
COA.pptx
Ad

More from chauhankapil (20)

PPTX
Gray level transformation
PPTX
Elements of visual perception
PPTX
JSP Client Request
PPTX
Jsp server response
PPTX
Markov decision process
PPTX
RNN basics in deep learning
PPTX
Introduction to generative adversarial networks (GANs)
PPTX
Bayesian probabilistic interference
PPTX
PPTX
Exception handling in java
PPTX
Knowledge acquistion
PPTX
Knowledge based system
PPTX
Introduction of predicate logics
PPTX
Types of inheritance in java
PPTX
Representation of syntax, semantics and Predicate logics
PPTX
Inheritance in java
PPTX
Propositional logic
PPTX
Constructors in java
PPTX
Methods in java
PPT
Circular linked list
Gray level transformation
Elements of visual perception
JSP Client Request
Jsp server response
Markov decision process
RNN basics in deep learning
Introduction to generative adversarial networks (GANs)
Bayesian probabilistic interference
Exception handling in java
Knowledge acquistion
Knowledge based system
Introduction of predicate logics
Types of inheritance in java
Representation of syntax, semantics and Predicate logics
Inheritance in java
Propositional logic
Constructors in java
Methods in java
Circular linked list

Recently uploaded (20)

PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Geodesy 1.pptx...............................................
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Construction Project Organization Group 2.pptx
PPTX
Welding lecture in detail for understanding
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
bas. eng. economics group 4 presentation 1.pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Lesson 3_Tessellation.pptx finite Mathematics
Structs to JSON How Go Powers REST APIs.pdf
UNIT 4 Total Quality Management .pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Geodesy 1.pptx...............................................
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Foundation to blockchain - A guide to Blockchain Tech
CH1 Production IntroductoryConcepts.pptx
Construction Project Organization Group 2.pptx
Welding lecture in detail for understanding
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Lecture Notes Electrical Wiring System Components
OOP with Java - Java Introduction (Basics)
Operating System & Kernel Study Guide-1 - converted.pdf
Embodied AI: Ushering in the Next Era of Intelligent Systems
Arduino robotics embedded978-1-4302-3184-4.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx

Memory Addressing

  • 1. Memory Addressing Prof. Neeraj Bhargava Kapil Chauhan Department of Computer Science School of Engineering & Systems Sciences MDS University, Ajmer
  • 2. Computer Architecture Concepts • Machine language: binary language • Assembly language: symbolic language • In the past, architecture, organization and hardware are used to descript a computer. • Due to the higher and higher performance of computer, the relationships among architecture, organization and hardware become intertwined. • Instruction set architecture (ISA) is then used to encompass the whole of computer.
  • 3. Computer Architecture Concepts Program Counter (PC) keeps track of the instructions in the program stored in memory.
  • 4. Addressing Architecture Memory-to-memory PC is the only register 21 accesses to memory needed in the previous example (includes accesses of address, data, instruction) instruction count is low, but the execution time is potentially high
  • 5. Addressing Architecture Register-to-register allow only one memory address restrict its use to load and store type needs sizable register file see the program on the top of page 522 in textbook only 18 memory accesses are needed
  • 6. Addressing Architecture • Register-memory type – ADD R1, A R1 R1+M[A]← – program lengths and number of memory accesses tend to be intermediate between the previous two architectures • Single-accumulator architecture – no register file – significant additional memory accesses would be needed for complex programs – inefficient, is restricted to use in CPUs for simple, low- cost applications
  • 7. PUSH A PUSH B ADD PUSH C MUL PUSH D PUSH E MUL ADD
  • 8. Addressing Mode Addressing mode: The rule for interpreting or modifying the address field of an instruction. Effective address: The address of operand produced by the application of the rule for interpreting or modifying the address field of the instruction before the operand is actually referenced.
  • 9. Addressing Mode Implied mode: needs no address field, the operand is specified implicitly in the definition of the opcode. For example, ADD in a stack computer. Immediate mode: an instruction has an operand field rather than an address field.
  • 10. Addressing Mode Indirect addressing mode: the address field of the instruction gives the address at which the effective address is stored in memory Relative addressing mode: Effective address= address part of the instruction + contents of PC (signed number)
  • 11. Addressing Mode Indexed addressing mode: the content of an indexed register is added to the address part of the instruction to obtain the effective address. The indexed register may be a special register in CPU or simply a register in register file. In the application of array, the distance between the beginning address and the address of the operand is the index value stored in the register.
  • 12. Stack instructions (push/pop)  Reside in memory  Due to the negative effects on performance, a stack typically handles only state information related to procedure calls/returns/interrupts.  A register holds the address for the stack is called stack pointer (SP).