SKEE3223 - Module 02
SKEE3223 - Module 02
SKEE3223 - MICROPROCESSOR
Module 02
Dr Afzan Othman
MODULE 2
I N T R O D U C T I O N TO A R M P R O C E S S O R
Dr Afzan Othman
Architecture & Organization
Definition
www.utm.my
Definition of Architecture & Organization
• What is architecture?
o Architecture is how a computer system is designed and what technologies it is
compatible with.
o The attributes of a system are visible to a programmer.
o These attributes have a direct impact on the logical execution of a program (i.e.
instruction set, number of bits used for data representation, I/O mechanisms,
addressing techniques).
o There two type of computer architecture.
o Von Neumann architecture: a computer architecture with physically single
storage and signal pathways for instructions and data.
o Harvard architecture: a computer architecture with physically separate storage
and signal pathways for instructions and data.
www.utm.my
Von Neumann Architecture
o The computer has single storage system(memory) for storing data as well as program to be
executed.
o Processor needs two clock cycles to complete an instruction. Pipelining the instructions is not
possible with this architecture.
o In the first clock cycle the processor gets the instruction from memory and decodes it. In the next
clock cycle the required data is taken from memory. For each instruction this cycle repeats and
hence needs two cycles to complete an instruction.
www.utm.my
o This is a relatively older architecture and was replaced by Harvard architecture.
Harvard Architecture
o The computer has two separate memories for storing data and program.
o Processor can complete an instruction in one cycle if appropriate pipelining strategies are
implemented.
o In the first stage of pipeline the instruction to be executed can be taken from program memory. In
the second stage of pipeline data is taken from the data memory using the decoded instruction or
address.
o Most of the modern computing architectures are based on Harvard architecture. But the number
www.utm.my
of stages in the pipeline varies from system to system.
Definition of Architecture & Organization
• What is organization?
o Computer Organization is typically refers to the operational units of the system
together with their interconnection – how features are implemented.
o It consists of hardware details that are transparent to the programmers.
www.utm.my
Processor Architecture & Organization
• Many computer manufacturers offer a family of computer models, all with the
same architecture but with differences in organization.
• This gives code compatibility (at least backwards)
o All Intel x86 family share the same basic architecture
o The IBM System/370 family share the same basic architecture
• An architecture may survive many years, but its organization changes with the
changing technology.
o E.g. the IBM Systems/370 architecture, with few enhancements, has survived to this
day as the architecture of IBM's mainframe product line.
www.utm.my
90’s 2000’s
2010’s 2020’s
www.utm.my
Processor ISA (Industry Standard Architecture):
CISC vs RISC
CISC RISC
Emphasis on hardware Emphasis on software
Include multi-clock complex instructions Include single-clock reduce instruction only
• RISC vs. CISC is a topic quite popular on the Net. Every time Intel (CISC) or Apple (RISC) introduces a new CPU, the topic pops up again.
www.utm.my
• Most PC's use CPU based on CISC architecture. For instance Intel and AMD CPU's are based on CISC architectures.
• RICS is the architecture of the future.
Introduction to ARM
(Advanced RISC Machine)
www.utm.my
Why ARM?
www.utm.my
for compact portable devices.
Dr Afzan Othman
ARM History
1980s
Acorn Computers:
• ARM's history traces back to Acorn Computers, a British
company that developed microcomputers in the early 1980s.
• Acorn was tasked with developing a new computer for the
British Broadcasting Corporation (BBC) which led to the
creation of the BBC Micro, a successful educational computer
in the UK.
Development of ARM:
• In the mid-1980s, Acorn Computers, led by Sophie Wilson and
Steve Furber, began developing a new processor to replace the
MOS Technology 6502 used in the BBC Micro.
• Inspired by the reduced instruction set computing (RISC)
principles, they created the first ARM processor, the Acorn
www.utm.my
RISC Machine.
Dr Afzan Othman
ARM History
1990s – Formation of ARM Holdings
Spin-Off (ARM Ltd founded):
• In 1990, Acorn Computers, Apple Computer, and VLSI
Technology founded a joint venture called Advanced RISC
Machines Ltd (ARM Ltd).
• ARM Ltd was established to develop the ARM architecture
further and license it to other companies.
www.utm.my
Dr Afzan Othman
ARM History
www.utm.my
Dr Afzan Othman
ARM History
2010-Present – Moderns Era
Diverse Applications:
• Beyond mobile devices, ARM processors found applications
in various fields, including embedded systems, IoT devices,
automotive, and even data centers.
• The versatility and scalability of the ARM architecture
enabled it to adapt to numerous computing needs.
Acquisitions and Growth::
• In 2016, Japanese conglomerate SoftBank acquired ARM
Holdings for $32 billion, reflecting the growing importance
and value of ARM technology.
• ARM continued to innovate, developing more powerful and
energy-efficient processors like the ARM Cortex series
www.utm.my
Dr Afzan Othman
ARM History
www.utm.my
industries suggests a bright future for the architecture.
Dr Afzan Othman
Cortex Series
www.utm.my
ARM Cortex Series
www.utm.my
Dr Afzan Othman
Cortex-A Series
Application Processor
ARM Features:
• High Performance: Implements ARMv7-A and ARMv8-A architectures, supporting 32-bit and 64-bit
processing.
• Multi-core Support: Up to eight cores in some designs for improved multitasking and performance.
• Advanced SIMD (Single Instruction, Multiple Data) Extensions: Supports NEON technology for multimedia
processing, enhancing video, audio, and image processing.
• Virtualization Support: ARM Virtualization Extensions enable running multiple operating systems
simultaneously.
• Security Features: TrustZone technology provides a secure environment for executing sensitive code and
protecting data.
Applications:
• Smartphones and Tablets: Cortex-A processors are the standard for mobile devices, providing the necessary
performance and efficiency.
• Digital TVs and Set-Top Boxes: High-definition video processing capabilities make them suitable for media
www.utm.my
applications.
• Automotive: Advanced driver-assistance systems (ADAS) and in-vehicle infotainment (IVI) systems.
Dr Afzan Othman
Cortex-R Series
Real-time Processor
ARM Features:
• Deterministic Real-time Performance: Designed to handle real-time processing with
predictable response times.
• High Reliability: Includes error-correcting code (ECC) memory for increased reliability and data
integrity.
• Low Latency: Optimized for low interrupt latency, critical for real-time applications.
• Fault Tolerance: Implements hardware and software features to ensure operation in the
presence of faults, which is essential for safety-critical systems.
Applications:
• Automotive: Engine management, transmission control, and braking systems.
• Industrial Control: Robotics, automation systems, and PLCs (Programmable Logic Controllers).
• Storage: Hard disk drives (HDDs) and solid-state drives (SSDs).
www.utm.my
• Medical Devices: Equipment requiring precise and reliable operation, such as pacemakers and
infusion pumps.
Dr Afzan Othman
Cortex-M Series
Microcontroller Processor
ARM Features:
• Low Power Consumption: Designed to operate efficiently in power-constrained environments.
• Simple Architecture: Implements ARMv6-M, ARMv7-M, and ARMv8-M architectures, with a
focus on ease of use and simplicity.
• Integrated Peripherals: Includes various integrated peripherals like GPIO, ADCs, and timers,
reducing the need for external components.
• Scalability: Ranges from the ultra-low-power Cortex-M0 and Cortex-M0+ to the higher
performance Cortex-M4 and Cortex-M7.
Applications:
• IoT Devices: Sensors, smart home devices, and wearables.
• Consumer Electronics: Toys, remote controls, and small appliances.
• Industrial Automation: Motor control, sensor interfaces, and data acquisition systems.
www.utm.my
• Medical Devices: Portable medical devices and health monitoring systems.
Dr Afzan Othman
Cortex Profiles
Cortex-A Cortex-R Cortex-M
Profile Application Real-time Microcontroller
(Highest performance) (Fast response) (Smallest/lowest power)
Operating system Rich OS/RTOS Bare metal/RTOS
64-bit ARM ISA •
Instruction
set 32-bit ARM ISA • •
Thumb ISA • • •
Interrupts SW-managed Deterministic HW-managed
SW-managed
Pipeline length Long Long to medium Short
Cache memory • •
Market General-purpose Real-time signal Cost-sensitive
www.utm.my
computing processing & control microcontrollers
Mobile computing, Industrial MCU, IoT, smart sensors,
Applications smart phone, servers, storage controllers, mixed-signal devices,
high-end processors modems, networking automotive
Dr Afzan Othman
ARM Processors
www.utm.my
Dr Afzan Othman
Cortex-M Processor
www.utm.my
Cortex-M Processor Family
• Cortex-M is more focused on the lower end of the performance scale BUT still quite
powerful when compared to others typical processor used in most microcontroller.
www.utm.my
Dr Afzan Othman
Instruction Set of Cortex-M
Overview
• The Instruction Set Architecture (ISA) is a part of processor architecture, and Cortex-M
can be grouped in several architecture profile:
www.utm.my
• Different Cortex-M support different set of instruction available in Thumb ISA.
Dr Afzan Othman
Instruction Set of Cortex-M
Overview
www.utm.my
Dr Afzan Othman
Instruction Set of Cortex-M
Overview
www.utm.my
Dr Afzan Othman
Instruction Set of Cortex-M
Overview
• In traditional ARM processor, processor can use ARM instruction for some operation
and Thumb instruction for others – BUT requires processor to change from ARM state
www.utm.my
to Thumb state
• No issues for Thumb2, since processor uses Thumb2 instruction for all operations.
Dr Afzan Othman
STM32
www.utm.my
Cortex-M Series
STM32 Processor
www.utm.my
• STM32MP1 Series: Microprocessors with Cortex-A and Cortex-M cores
• STM32U Series: Ultra-low-power MCUs
Dr Afzan Othman
Cortex-M Series
STM32 Processor: Naming
www.utm.my
Dr Afzan Othman
Cortex-M Series
STM32F: General Purpose
www.utm.my
• Consumer electronics, industrial automation, motor control, and home appliances.
Dr Afzan Othman
Cortex-M Series
STM32L: Ultra low power
www.utm.my
Dr Afzan Othman
Cortex-M Series
STM32G: Advanced General Purpose
www.utm.my
Dr Afzan Othman
Cortex-M Series
STM32H: High performance
• Cores: Cortex-M7
• Features:
• High-performance processors with dual-core options (Cortex-M7 + Cortex-M4).
• Extensive memory options, including up to 2 MB of Flash and 1 MB of RAM.
• Advanced graphics support with Chrom-ART Accelerator and TFT LCD interfaces.
• High-speed peripherals, including multiple USB, Ethernet, and CAN interfaces.
• Suitable for applications requiring intensive computation, real-time control, and
multimedia processing.
• Applications:
• Advanced motor control, robotics, high-end consumer electronics, and industrial
automation.
www.utm.my
Dr Afzan Othman
Cortex-M Series
STM32WB: Wireless Connectivity
www.utm.my
networks.
Dr Afzan Othman
THANK YOU
univteknologimalaysia utm.my utmofficial
Dr Afzan Othman