what’s a program and how it works

‘Get the result of 7+8’ is a program.
‘blink the LED’ is a program.
A program is a task we ask the SOC to execute.

How program works?

Fetch (the CPU get the instruction from flash accroding to the PC into IR)
Decode (IR decoder interpre IR instruction into control signals steps of control unit)
Execute (the CPU works base on control signals)

pipeline

how program works

assembly example

Leave a comment