Professional Documents
Culture Documents
ARM Processor
ARM Processor
N: Negative
Z: Zero
C: Carry
V: Overflow
Q: Saturation (for enhanced DSP instructions)
ARM System - On - Chip
Architecture 10
Memory Organization
bit 31 bit 0
23 22 21 20
Address bus: 32 – bits
19 18 17 16 1 word = 32 – bits
word16
15 14 13 12
half-word14 half-word12
11 10 9 8
word8
7 6 5 4
byte6 half-word4
3 2 1 0 byte
byte3 byte2 byte1 byte0 address
mem32[0x80010] = 0x01
r0 = 0x00080010
r1 = 0x00000001
r2 = 0x00000002
r3 = 0x00000003
mem32[0x80014] = 0x02
mem32[0x80010] = 0x01
r0 = 0x00080010
r1 = 0x00000002
r2 = 0x00000003
r3 = 0x00000004
Pipeline P
C i ncrementer
(ARM7 – register
bank
PC
Fetch
L register
U control
b
A B
u b b
Decode
s u u
barrel
s
shi fter
s
Execute ALU
Throughput:
1 instruction / cycle
data out regi ster data i n regi ster
D[31:0]
5 – stage pipeline (1/2)
Program execution time:
N inst CPI
Tprog
f clk
co processor registe r ba nk
co processor
hand-sh ake interface
add
arithmetic
mult
unit
div
BL Loop
…
Loop …
MOV pc, lr
A basic
ARM
memory
system
AMBA (1/4)
Advanced Microcontroller Bus Architecture
Advanced High – Performance Bus
Advanced System Bus
Advanced Peripheral Bus
AMBA objectives:
Technology – independence
To encourage modular system design
Burst address
transaction master
1
slave
1
Split
write
data
transaction master slave
Data bus 64 –
2 2
128 bit
master slave
3 read 3
data
decoder
mult
output
register buffer
bank
input
I cache
buffer
AMBA
MEMORY HIERARCHY
Memory hierarchy
Larger size Lower speed
Fully-associative
Direct-mapped
Set-associative
ARM System - On - Chip
Architecture 63
Direct – mapped cache (1/2)
A line of
data
stored
in a tag
of
memory
mux
hit data
Write strategies
Write – through
All write operations are passed to main memory
Write – through with buffered write
Write operations are passed to main memory
through the write buffer
Copy – back (write – back)
Write operations update only the cache.
base limit
+ >?
data
Timers
&
ETM CLCD
W'Dog VIC DMAC CLCD
RTC
(PL031)
(PL192) (PL080) (PL110) Display
ARM1136JF
External
System
core
Reset &
Control AHB/APB 64 64 64 64
Battery Fail Bridge
}
config 1.
64
2.
3.
64
4.
64
5. 8 AHBs
64
6.
SDRAM MPMC
7.
& DDR (PL176)
8.
unassigned
config Bus Matrix
Static SMC
Memory (PL093)
1. ARM Periph AHB AHB/APB AHB/APB
Bridge Bridge UART
2. ARM D Write AHB (PL011) 2x UARTs
3. ARM D Read AHB
4. ARM I AHB
5. ARM DMA AHB
Smart Card
6. CLCD AHB GPIO SSP SCI
(PL061) (PL022) (PL131) (UICC
7. DMA 2 AHB
compliant)
8. DMA 1 AHB
32 GPIO
Lines
CP15
On – chip coprocessor for MMU, cache,
protection unit control.
Control takes place through registers with
instructions executed in supervisor mode.
MM