Professional Documents
Culture Documents
• Know what the following registers do: MAR, MDR, PC and ACC
Arithmetic/Logic Unit
The circuits that perform ALU
Registers
Registers
the operations on the data
Quick, small stores of
Control Unit data within the CPU
Registers
Cache ALU
Very small and fast non-volatile memory,
which is used to store commonly accessed
instructions and data
CU
Cache
Cache Main Memory
The cache is checked first. If the data is there it’s called a ‘cache hit’. If not
(a ‘cache miss’), then the slower main memory is then checked.
Von Neumann Architecture
• 3 major characteristics of this theoretical model…
ALU
Main Memory Input/ Output
CU
3rd: Instructions
are executed
sequentially:
ALU
Memory One instruction at
a time is fetched
CU from memory and
passed to the CPU
• Computers have a system clock which provides timing signals to
synchronise circuits.
• CPUs are designed to operate at a specific frequency – and the system clock
is raised to this rate by the processor, giving the clock speed (Hz)
Execute
The CU activates the necessary circuity/ data transfers. The output of this
stage is stored in a register, and data may be read/written from/to the
main memory during this stage.
Special-Purpose Registers
When reading, the data addressed by the MAR is held in the MDR
When writing, the data in the MDR is written to the address in the MAR
They act as buffer registers; they are there to compensate for the
difference in speed between the CPU and main memory.
Q: Using the names of CPU components, fill in the gaps. (10 marks)
At the start of the fetch-execute cycle, the memory address of the next
instruction to be executed is loaded from the (a) into the (b). The
instruction is fetched from main memory or (c) (stored in the (d)), and the
(e) is incremented to the next instruction’s address.
The (f) then decodes the instruction, and any further data required as part of
the instruction is fetched.
If applicable, the (g) performs calculations, and stores the result in the (h). It
can then be written back to memory, storing this result in the (i), which is
transferred to the address in the (j).
Q: Using the names of CPU components, fill in the gaps. (10 marks)
At the start of the fetch-execute cycle, the memory address of the next
instruction to be executed is loaded from the (a) PC into the (b) MAR. The
instruction is fetched from main memory or (c) cache (stored in the (d)
MDR), and the (e) PC is incremented to the next instruction’s address.
The (f) CU then decodes the instruction, and any further data required as
part of the instruction is fetched.
If applicable, the (g) ALU performs calculations, and stores the result in the
(h) ACC. It can then be written back to memory, storing this result in the (i)
MDR, which is transferred to the address in the (j) MAR.
Factors Affecting CPU Performance
Clock Speed measured in Hz, = cycles per second
• The CPU is regulated with clock signals (cycle = time between 2 pulses)
• A set number of instructions can be executed per clock cycle
• The shorted these cycles are (the higher clock rate), the more
instructions are be executed per second
E.g. The AMD CPU has a larger cache than the Intel CPU (1). This means more
commonly accessed instructions can be stored there (1). Therefore it is more likely
that a cache hit will occur, as opposed to having to access the slower RAM. (1)
Embedded Systems
Embedded Systems
= A special-purpose computer encapsulated by a larger system
The weight scale in a clothes dryer, which can be used to ensure the
maximum useable weight is not exceeded.
• CPU stands for Central Processing Unit (and is aka the processor)
• Embedded systems are usually very simple, and focus on a single task
within a larger system