1.6 Arm Architecture

COS2621 - Computer Organisation · 1. Basic Concepts and Computer Evolution

Arm Architecture

The Arm architecture is a family of computer architectures that are widely used in embedded systems and mobile devices. It is known for its energy efficiency and performance, making it suitable for a range of applications from smartphones to servers.

Overview of Arm Architecture

Arm stands for Advanced RISC Machine. It is based on the RISC (Reduced Instruction Set Computer) design philosophy, which uses a small set of simple instructions. This approach allows for greater efficiency and higher performance.

Key Features

Some key features of Arm architecture include:

  • Energy Efficiency: Arm processors consume less power, which is crucial for battery-operated devices.
  • Scalability: The architecture can be adapted for various applications, from low-power devices to high-performance computing.
  • Wide Adoption: Arm is used in a variety of devices, including smartphones, tablets, and embedded systems.

Instruction Set Architecture (ISA)

The Arm ISA defines the set of instructions that the processor can execute. It includes:

  • Data Processing Instructions: These instructions perform arithmetic and logical operations. For example, the instruction ADD R1, R2, R3 adds the values in registers R2 and R3 and stores the result in R1.
  • Load and Store Instructions: These instructions move data between memory and registers. For example, LDR R1, [R2] loads data from the address in R2 into R1.
  • Control Flow Instructions: These instructions alter the flow of execution. For example, B label branches to the specified label.

Example of an Arm Assembly Program

Here is a simple example of an Arm assembly program that adds two numbers:

.section .data
num1: .word 5
num2: .word 10
result: .word 0

.section .text
.global _start
_start:
    LDR R0, =num1
    LDR R1, [R0]
    LDR R0, =num2
    LDR R2, [R0]
    ADD R3, R1, R2
    LDR R0, =result
    STR R3, [R0]
    MOV R7, #1
    SWI 0

This program loads two numbers from memory, adds them, and stores the result back in memory.

Remember: In Arm assembly, the LDR instruction is used to load data from memory, while STR is used to store data back to memory.

Embedded Systems and Arm

Arm architecture is particularly popular in embedded systems due to its low power consumption and high performance. Examples include:

  • Smartphones: Most smartphones use Arm processors for their efficiency and performance.
  • IoT Devices: Many Internet of Things (IoT) devices utilize Arm architecture for their low power requirements.
  • Automotive Systems: Arm is used in various automotive applications, from infotainment systems to advanced driver-assistance systems.

Watch out: When programming in Arm assembly, ensure that you understand the specific syntax and conventions, as they may differ from other assembly languages.

Conclusion

Arm architecture is a versatile and efficient architecture widely used in modern computing. Its energy efficiency and scalability make it ideal for a range of applications, particularly in embedded systems.

Check your understanding

  1. What does Arm stand for and what is its primary design philosophy?
  2. Explain the difference between LDR and STR instructions in Arm assembly.
  3. List two applications where Arm architecture is commonly used.
  4. What is the significance of RISC in the context of Arm architecture?

Test yourself

4 quick questions on this lesson. Pick an answer to see if you're right.

  1. 1. Which of the following applications commonly uses Arm architecture?

  2. 2. Which of the following is a key feature of Arm architecture?

  3. 3. In Arm assembly, which instruction is used to load data from memory?

  4. 4. What does Arm stand for in the context of computer architecture?