Docsity

Arm Processor 32 bit, Study notes of Microprocessors

Toggle sidebar
bg1
EC5551/MICROPROCESSORS AND
MICROCONTROLLERS
Dr. V. Sathiesh Kumar Department of Electronics Engineering, MIT, India
UNIT V 32-BIT ARM PROCESSOR
RISC vs CISC Architecture, ARM Processor Architecture, ARM Core
data flow model, Barrel Shifter, ARM processor modes and families,
pipelining, ARM instruction set and its Programming
Textbooks
1. Wayne Wolf, “Computers as Components - Principles of
Embedded Computing System Design”, Morgan Kaufmann Publisher
(An imprint from Elsevier), Second Edition ,2008.
2. Andrew N Sloss, Dominic Symes, Chris Wright, “ARM System
Developer’s Guide- Designing and Optimizing System Software”,
Elsevier/Morgan Kaufmann Publisher, 2008.
1
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

Partial preview of the text

Download Arm Processor 32 bit and more Study notes Microprocessors in PDF only on Docsity!

EC5551/MICROPROCESSORS AND

MICROCONTROLLERS

UNIT V 32 - BIT ARM PROCESSOR

RISC vs CISC Architecture, ARM Processor Architecture, ARM Core data flow model, Barrel Shifter, ARM processor modes and families, pipelining, ARM instruction set and its Programming

Textbooks

  1. Wayne Wolf, “Computers as Components - Principles of Embedded Computing System Design”, Morgan Kaufmann Publisher (An imprint from Elsevier), Second Edition , 2008.
  2. Andrew N Sloss, Dominic Symes, Chris Wright, “ARM System Developer’s Guide- Designing and Optimizing System Software”, Elsevier/Morgan Kaufmann Publisher, 2008. 1

➢ Program Counter (PC) holds the memory address of the next instruction, which has to be executed by CPU. ➢ The CPU fetches the instruction from memory, decodes the instruction, and executes it. ➢ Eg: ARM 7 2

Types of Memory Architecture- Von Neumann

Architecture

➢ Relates to their instructions and how they are executed ➢ Complex instruction set computers (CISC): large no of instructions, addressing modes and instruction formats of varying length. ➢ Reduced instruction set computers (RISC): Provide fewer and simpler instructions. Instructions could be efficiently executed in pipelined processors ➢ Computers can be classified based on the characteristics of their instruction sets such as, ▪Fixed versus variable length ▪ Number of operands ▪ Types of operations supported ▪ Addressing modes 4

Computer Architecture

➢ ARM Processor- 32 bit processor ➢ RISC (Reduced Instruction Set Computers) concept introduced in 1980 at Stanford and Berkley ➢ ARM was developed by Acron Computer Limited of Cambridge, England between 1983 & 1985 ➢ ARM limited founded in 1990 ➢ ARM Cores ▪ Licensed to partners to develop and fabricate new microcontrollers ▪ Soft core 5

History of ARM Processor

➢Control over ALU and Shifter for every data processing operations to maximize their usage ➢ Auto-increment and auto-decrement addressing modes to optimize program loops ➢ Load and Store multiple instructions to maximize data throughput ➢ Conditional execution of instructions to maximize execution throughput 7

Enhancement to basic RISC features

➢Version 1 ( 1983 - 85 ): 26 bit addressing, no multiply or Co- processor ➢ Version 2 : includes 32 - bit result, multiply Co-processor ➢ Version 3 : 32 - bit addressing (Eg: ARM 6 , ARM 7 ) ➢ Version 4 : Add Signed, unsigned half word and signed byte load and store instructions (Eg: Strong ARM) ➢ Version 4 T: 16 - bit thumb compressed form of instruction introduced (Eg: ARM 7 TDMI) ➢ Version 5 T: Superset of 4 T adding new instructions ➢ Version 5 TE: Add Signal processing signal extension (Eg: ARM 9 E- S) 8

ARM Architecture Versions

10

ARM Memory Organization

➢ Data items are placed in register file ▪ No data processing instructions directly manipulate data in memory ➢ Instructions typically use two source registers and single result or destination registers. ➢ A barrel shifter on the data path can preprocess data before it enters ALU ▪ Combinational circuit in which the shift (No of bits) takes place in a single clock cycle ➢ Increment/Decrement logic can update register content for sequential access independent of ALU ➢ 32 - bit address and 32 - bit data processing 11

ARM Overview: Core Data Path

➢ The set of registers available for use by programs is called the programming model or programmer model. The CPU has many other registers that are used for internal operations and are unavailable to programmers ➢ General purpose registers (GPR) hold either data or address. All registers are of 32 bits. In User mode, 16 data registers and 2 status registers are visible ➢ Data registers: r 0 to r 15 ▪ r 13 : Stack Pointer ▪ r 14 : Link Register (Where return address is put whenever a subroutine is called) ▪ r 15 : Program counter (^13)

Registers

➢ Depending upon context, register r 13 and r 14 can also be used as GPR ➢ Any instruction which use r 0 can as well be used with any other GPR (r 1 - r 13 ) ➢ In addition, there are two status registers ▪ CPSR: Current Program Status Register ▪ SPSR: Saved Program Status Register ➢ Register r 15 (Program counter) ▪ All instructions are 32 bit wide and word aligned ▪ PC value is stored in bits [ 31 : 2 ] with bits [ 1 : 0 ] undefined 14

Registers- Continued

➢ Register file contains in all 37 registers ➢ 20 registers are hidden from program at different times. These registers are called banked registers ➢ Banked registers are available only when the processor is in a particular mode ➢ Processor modes (other than System mode) have a set of associated banked registers that are a subset of 16 registers ➢ Maps one to one onto a User mode register 16

Banked Registers

17

Registers Banking-Currently visible in particular

mode

➢ Abort: When there is a failed attempt to access memory ➢ Fast interrupt request (FIQ) and Interrupt request (IR): Correspond to interrupt levels available on ARM ➢ Supervisor mode: State after reset and generally the mode in which OS Kernel executes ➢ System mode: Special version of user mode that allows full read- write access of CPSR ➢ Undefined: When processor encounters an undefined instruction 19

Privileged Processor Modes

➢ Each Privileged mode (except System mode) has associated with it a save program status register or SPSR ➢ This SPSR is used to save the state of CPSR when the Privileged mode is entered in order that the user state can be fully restored when the user process is resumed 20

SPSR