
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































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
➢ 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
➢ 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
➢ 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
➢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
➢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
10
➢ 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
➢ 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)
➢ 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
➢ 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
17
➢ 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
➢ 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