Arm system architecture knowledge summary

Publisher:WanderlustHeartLatest update time:2021-02-06 Source: eefocusKeywords:arm Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Mainboard——Core board + expansion circuit + interface


Core board——cpu+peripheral circuit+interface




ARM architecture knowledge points:


Core (kernel) programming method


Interface (Peripheral Module) Technology




Chip price: Moore's Law, chip price doubles every 18 months. After 18 months, the price drops by half.


Now chip circuits: designed using hardware description language.


Chip manufacturer: buy the hardware description language programming kernel of ARM's chip, plus some peripheral modules.


The core is unified, but each part of the periphery is fighting on its own.




arm:Advanced RISC Machines




ARM company website: http://www.arm.com




ARM is not only a company but also a general term for a type of microprocessor. Chips based on ARM core are collectively called ARM chips.


------------------------------------------------------------------------------------------------------------------


Arm Architecture




------------------------------------------------------


ARM architecture features:


ARM instructions are all 32-bit fixed-length;


A large number of registers (37 registers);


Load/Store architecture;


Load/Store instructions for multiple registers;


Conditional execution of instructions;


Complete data shift operations and ALU operations in a single instruction executed in a single clock cycle;


Extending the capabilities of ARM processors through variants and co-processors;


The 16-bit Thumb instructions are extended to improve code density.




-------------------------------------------------------


Naming of arm series:


ARM1 Series:


Architecture: ARMv1 (Core ARM1)




ARM2 Series:


Architecture: ARMv2 (Core ARM2)




ARMv2a series:


Architecture: ARM250




ARM3 Series:


Architecture: ARMv2a (Core ARM2a)




ARM6 series:


Architecture: ARMv3 (Core ARM610)




----------------


ARM7TDMI series: three-stage pipeline


Architecture: ARMv4T




ARM9TDMI series: five-stage pipeline


Architecture: ARMv4T




-------------------


ARM9E Series:


Architecture: ARMv5




ARM10E series: six-stage pipeline


Architecture: ARMv5




XScale Series:


Architecture: ARMv5TE




------------------


ARM11 series: eight-stage pipeline


Architecture: ARMv6 (Core: ARM1136J(F)-S);


Architecture: ARMv6T2 (Core: ARM1156T2(F)-S);


Architecture: ARMv6KZ (Core: ARM1176JZ(F)-S);


Architecture: ARMv6K (Core: ARM11MPCore);




------------------


Cortex series: 13-stage pipeline


Architecture: ARMv7-A (Application) (Core: Cortex-A8): Application processor for complex operating systems and user applications.


Architecture: ARMv7-R (Real-time) (Core: Cortex-R4 (F)): Embedded processor suitable for real-time systems.


Architecture: ARMv7-M (Microcontroller) (Core: Cortex-M3): Designed for cost- and power-sensitive embedded applications, the goal is to achieve 32-bit high performance at the price of an 8-bit microcontroller.




Variants for the arm architecture:


Thumb instruction set (T variant): instruction length is 16 bits.


Long multiplication instructions (M variant):


Enhanced DSP instructions (E variant):


Java accelerator Jazelle (J variant):




ARM processor naming format:


ARM x y z T D M I E J F -S


x : sequence


y: 2: with MMU, 4 with MPU, 6 without


z: 0: standard cache, 2: reduced cache, 6: variable cache


T: The processor supports the Thumb instruction set


D: Support JTAG debugger


M: Support long multiplication instructions


I: With embedded trace macrocell


E: Support enhanced instructions (based on TDMI)


J: Support JAVA hardware acceleration (Jazelle)


F: Support vector floating point unit


S: Synthesizable version




-------------------------------------------------------


arm instruction pipeline:




Fetch: The instruction fetch unit of the microprocessor obtains the instruction to be executed from the memory and stores it in the instruction register.


Decode: Analyze the instructions in the instruction register to determine what operation to perform.


Execute: Execute the operation specified by the instruction and save the operation result as required by the instruction.






Von Neumann architecture: The instruction memory address and data memory address point to different physical locations of the same memory. Therefore, instructions and data use the same data bus, and only instructions or data can be fetched at the same time.




Harvard architecture: The instruction bus and data bus are separate and can be accessed simultaneously, and their widths can be different.




Three-stage pipeline: fetch decode execute


Five-stage pipeline: fetch decode execute memory write




The pipeline stages of the five-stage pipeline are:


Fetch


Decode


execute


Buffer/data: Accesses data memory if necessary, otherwise the ALU simply buffers for one clock cycle so that all instructions have the same pipeline flow.


Write-back: Write the results of an instruction back to the register file, including any data read from the registers.




------------------------------------------------------------


Arm storage system




There are two ways of storage in ARM: big endian and little endian.


Big-endian format: The least significant byte of a word is stored at a high memory address.


Little-endian: The least significant byte of a word is stored at the lowest address in memory.




The arm default mode is little endian.




Note: The storage format of data and code in the memory must be consistent with the format used by the processor.




Arm memory hierarchy:


Register group;


On-chip RAM;


On-chip cache;


Main memory.




The storage management strategies that can be used in the arm architecture include:


Multiple types of storage units;


cache;


Write cache;


Virtual memory address.




Methods for implementing storage system management:


Enable cache to speed up memory access;


Start mapping virtual addresses to physical addresses;


Use the "domain management" policy to protect access to storage units;


Restrict access to I/O mapped address space;


Coprocessor cp15.




The ARM microprocessor has 37 32-bit registers.




------------------------------------------------------------------


ARM chip selection




Factors related to chip performance and integration:


Whether there is an MMU;


Chip efficiency;


Internal memory capacity;


USB interface;


Number of GPIOs;


Interrupt controller;


IIS(Integrate Interface of Sound);


nWAIT signal;


RTC(Real Time Clock);


LCD controller;


PWM output;


ADC/DAC;


Expansion bus;


UART and IrDA;


Multi-core considerations (ARM+DSP) (ARM+ARM);


Built-in FPGA;


Clock counter and watchdog;


Power management;


DMA controller;




Chip stability;




The chip supplier's technical support capabilities;




The stability of chip supply and the convenience of purchasing;




---------------------------------------------------------------------------------------------------------------------


ARM programming model (kernel programming)




----------------------------------------------------------


Data types of arm:




ARM supports the following three data types:


Byte: 8 bits


Half word: 16 bits


Word: 32 bits




-------------------------------------------------------


Working mode of arm:




Arm has seven working modes:




Two normal modes:


User mode: Normal program execution mode. Most programs are executed in this mode.


System mode: A privileged mode that uses the same register set as User mode.




Five abnormal modes:


Fast interrupt mode (FIQ): This mode is entered when a high priority (fast) interrupt occurs.


External interrupt mode (IRQ): This mode is entered when a low priority (normal) interrupt occurs.


Supervisor mode: This mode is entered when a reset or soft interrupt (SWI) instruction is executed.


Data access termination mode (Abort): This mode is entered when access is abnormal and is used for virtual storage or storage protection.


Undef mode: This mode is entered when an undefined instruction is executed, and is sometimes used to emulate the working mode of the coprocessor hardware through software.






A non-privileged mode:


User mode




Six privilege modes:


System


Fast Interrupt Mode (FIQ)


External Interrupt Mode (IRQ)


Supervisor Mode


Data access termination mode (Abort)


Undefined mode (Undef)




------------------------------------------------------


Arm running status




The arm processor has two working states:


ARM state: arm state executes arm instructions, and the pc value is word aligned (32 bits).


Thumb state: Thumb instructions are executed in thumb state, and the pc value is half-word aligned (16 bits).




Switching of working status:




Use command switch


BX Rm


Rm[0] = 0 ARM state


Rm[0] = 1 Thumb state




Processor automatic switching


The processor performs exception handling. If it is in Thumb state, it enters ARM state. After the exception handling returns, it enters Thumb state.




--------------------------------------------------------------


arm register




The ARM processor has 37 registers that are 32 bits long;


31 general registers (16 public + 15 private);


6 status registers;




The registers that can be accessed in different modes are different.




----------------


General register: Participates in calculations or stores the results of calculations.




There are 16 common registers as follows:


usr/system: R0——R12, R13, R14, R15. (There are 16 common registers in user mode and system mode).




There are general registers with special purposes (in addition to being general registers, they also have the following functions):


R13: Stack pointer register SP.


R14: Link register LR. Generally used to indicate the exit of a program.


R15: Program counter PC, always points to the instruction address of the instruction fetch. Generally used to indicate the entry of the program.




There are 15 private registers:


irq: R0...R12, R15. (External interrupt mode has two private registers)


R13_race


R14_race




svc: R0...R12, R15. (Supervisory mode has two private registers)


R13_svc


R14_svc




abt: R0...R12, R15. (Data access termination mode has two private registers)


R13_abt


R14_abt




und: R0...R12, R15. (Undefined mode has two private registers)


R13_and


R14_and




fiq: R0-R7, R15. (Fast interrupt mode has seven private registers)


R8_fiq


R9_fiq


R10_fiq


R11_fiq


R12_fiq


R13_fig


R14_fig




---------------------


Status register psr:




one:


cpsr: Current Program Status Register (accessible in all seven modes).




Five:


spsr: Save program status register. (Only accessible in corresponding mode).


spsr_irq


spsr_svc


spsr_fiq


spsr_abt


spsr_and




cpsr/spsr register format:


Condition code identifier


31 30 29 28 7 6 5 4-0


N Z C V I F T mode

[1] [2]
Keywords:arm Reference address:Arm system architecture knowledge summary

Previous article:ARM11 learning basic knowledge based on S3C6410
Next article:Design of automotive "black box" based on ARM

Recommended ReadingLatest update time:2024-11-16 09:40

Alibaba to release Arm server chips using 5nm process technology
According to the latest news, Alibaba will launch Arm architecture chips for the server market, becoming another Chinese technology company to develop its own server CPU. It is understood that the chip is based on the Arm architecture, has been under development since 2019, and was successfully taped out in the middle
[Mobile phone portable]
ARM Assembly: MRS and MSR instructions
There are two instructions in ARM for transferring data between the status register and the general register. 1: Let's talk about the status register first For 32-bit ARM processors, the status register is a 32-bit register. The meaning of each bit is as follows: Divided into 4 parts: 1. Condition flag N(Negative),
[Microcontroller]
ARM Assembly: MRS and MSR instructions
13. Learn ARM-Cortex-A9 RTC bare metal programming from scratch
1.RTC RTC (Real-Time Clock) Real-time clock. RTC is an integrated circuit, usually called a clock chip. In an embedded system, RTC is usually used to provide reliable system time, including hours, minutes, seconds, years, months, and days, and it is required to work normally even when the system is turned off (usuall
[Microcontroller]
13. Learn ARM-Cortex-A9 RTC bare metal programming from scratch
Copy the dynamic library to the arm development board (tar package link file)
Normal arm .so files or link files cannot be tested to a USB flash drive Errors such as cp: cannot create symbolic link Operation not permitted Filesystem does not support symbolic links may appear or lost Enter the dynamic library directory 1. Pack all files in the directory tar -chvf XXX.tar ./* 2. Copy
[Microcontroller]
Simple project template for LPC2220 based on gnu-arm-linux
1: Source When we learn ARM embedded development, we usually come into contact with ADS1.2 and kei project templates. These templates are a blessing for beginners, but if you want to learn more about the chip startup process, When it comes to compiling and linking, image file structure, how to initialize,
[Microcontroller]
Simple project template for LPC2220 based on gnu-arm-linux
A brief discussion on the advantages of arm processors
At present, the world is moving towards the trend of the Internet of Things and artificial intelligence. With the development and advancement of physical networks and artificial intelligence technologies, microprocessor technology is also constantly innovating, and the application of various new microprocessors is als
[Microcontroller]
A brief discussion on the advantages of arm processors
VGA Interface Design for ARM Embedded Platform (ADV7120)
Most embedded products use LCD as the display terminal, but in some applications that require large-screen display, industrial-grade LCDs are expensive, and existing large-screen displays (including CRT displays and LCD displays) generally use a unified 15-pin VGA display interface. Samsung's ARM9 chip S3C2410 is wide
[Microcontroller]
Arm launches AI tools on GitHub to simplify the development and deployment of AI applications
Arm extensions for GitHub Copilot accelerate Arm-based development from cloud to edge Arm native runner provides a seamless development experience for deploying cloud-native, Windows on Arm, and cloud-to-edge AI software GitHub Actions, native GitHub runners, and Arm-based AI frameworks
[Embedded]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号