4.1.4 · D1Computer Architecture (Deep)

Foundations — ARM architecture intro — used in embedded - aerospace

2,784 words13 min readBack to topic

This page assumes you know nothing. We build every word the parent note used, in the order that lets each one lean on the previous. Read top to bottom.


0. What is a "bit"? (the atom of everything)

Figure — ARM architecture intro — used in embedded - aerospace

The parent note says instructions are "32 bits" — that just means one instruction is exactly one word wide: 32 on/off wires.


1. Binary numbers — reading a row of bits as a number

With 32 bits you can represent billion distinct patterns — enough to name a huge range of numbers or instruction meanings.

Signed vs unsigned — the same bits, two readings (edge case)


2. Register — a tiny box that holds one word

Figure — ARM architecture intro — used in embedded - aerospace

The notation is just names for the 16 boxes — no math, just labels. Three of them have nicknames because the CPU uses them for special jobs:


3. Memory and address — the big, slow warehouse


4. Instruction, opcode, operands — a command the CPU obeys


5. The ALU — the part that actually computes


6. Flags and the CPSR — the CPU's sticky notes

Figure — ARM architecture intro — used in embedded - aerospace

7. Clock, cycle, and stage — how time is chopped up

That is exactly the setup behind the parent's formula — now every letter in it, including , has a meaning. Deeper timing consequences live in Real-Time Systems and WCET. (And this same "fetch ahead" behaviour is why reading PC gives +8, as noted in §2.)


8. Power and performance-per-watt — why ARM wins where it matters


Prerequisite map

Bit = one on-off wire

Binary number

Twos-complement signed

32-bit word

Register box

Instruction 32 bits

Register file R0 to R15

Memory + address

Load-Store rule

ALU computes

Opcode + operands

Flags N Z C V

CPSR sticky notes

Conditional execution

Clock cycle tau

Pipeline stage

5-stage pipeline

ARM architecture

Performance-per-watt

This feeds directly into the parent ARM intro.


Equipment checklist

Test yourself — cover the right side and answer first.

What does CPU stand for and what is it?
Central Processing Unit — the "brain" chip that fetches and executes commands.
What does ARM stand for?
Advanced RISC Machine — a family of simple, power-efficient CPU designs.
What is a bit, physically?
One wire that is either low voltage (0) or high voltage (1) — a single yes/no.
How many bits in a 32-bit ARM word?
32 bits = 4 bytes.
Read the binary 1011 as a decimal number.
.
Read the byte 11111111 both unsigned and as two's-complement.
Unsigned = 255; two's-complement (signed) = .
In two's-complement, what is special about the top bit?
Its column counts as negative (e.g. for a byte), so a top bit of 1 means the number is negative.
What is a register and where does it live?
A tiny fast box holding one word, living inside the CPU right next to the ALU.
How many general-purpose registers on 32-bit ARM, and what are they called?
16, named through .
Which registers are SP, LR, PC?
= Stack Pointer, = Link Register, = Program Counter.
When you read PC (R15) as an operand on classic ARM, what value do you get?
Current instruction address + 8, because the pipeline has already fetched ahead.
In LDR R4, [R1], what does [R1] mean?
The memory box whose address is the number stored in .
What can the ALU operate on directly — memory or registers?
Registers only (that's the load/store rule).
What are the four flags and where are they stored?
N, Z, C, V — stored in the CPSR.
Which flag catches unsigned overflow and which catches signed overflow?
C catches unsigned overflow; V catches signed (two's-complement) overflow.
What sets the Z flag to 1?
An operation whose result was exactly zero (e.g. CMP R0,R1 when equal).
In the pipeline formula, what do , , , mean?
= number of instructions, = number of stages, = time of one clock cycle, = speedup (times faster than non-pipelined).
Name the five classic pipeline stages in order.
Fetch, Decode, Execute, Memory, Write-back.
Give a concrete metric for performance-per-watt.
Instructions completed per second ÷ watts = instructions completed per joule of energy.