Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

9.4.

4 Worksheet
1 Open draw.io or Paint, and add
the image below. Fill in the blanks,
add a screenshot and paste it
below.

Central Processing Unit CIR


PC MAR
ACC Arithmetic logic unit (ALU)
Control Unit (CU) Main memory
MDR

Add your screenshot

(Continue in the next page)


2. Fill in the blanks:

Accumulator (ACC) Memory Address Register (MAR)


Current Instruction Register (CIR) Memory Data Register (MDR)
Program Counter (PC)
_______ stores the address of the next instruction that needs to be executed by the
CPU.
_______ stores the memory address of the location in RAM that holds the data that
needs to be fetched (for reading or writing operations).
_______ is used for holding the actual instruction or data that is stored in RAM. Any
data or instructions exchanged between RAM and the CPU need to pass through
this register.
_______ is used for temporarily storing arithmetic and logic results.
________ is used for holding the instruction that is currently being decoded and
executed.

3 Number the following statements


so that they show the correct order
of the steps involved in the fetch–
decode–execute cycle.

The CPU carries out the instruction

The CPU works out what the instruction means

The CPU fetches an instruction from a location in memory

(Continue in the next page)


4 The following program is stored in
main memory, for the CPU to
execute. Fill in the blanks to explain
how this process will happen.
Input num1
Input num2
num3 = num1 + num2

Execute Fetch
Decode
LLL format (machine-code/
binary format)
more than one

The program would be held in memory in


______________. Some program
instructions may require ___________
machine-code instruction for the control
unit to be able to carry out the
instruction. The control unit would
_________ each line of code from
memory, ________ it and then ________
each instruction one at a time.
(Continue in the next page)

5 Complete the table below to


convert the high-level programming
instruction into a description of the
set of machine code instructions that
the processor would need to carry
out to complete this line of code
reference (example).
answer = num1 — num2 + num3
Main memory
Address Contents
0 Load the contents of location 12 into the accumulator
1 _________
2 _________
3 _________
4…9 (Not needed)
10 (Not needed)
11 (Not needed)
12 (num1) 8
13 (num2) 2
14 (num3) 7
15 (answer) _________
5B - Use the previous example to
show how the processor would need
4 fetch-decode-execute cycles to
complete this single line of code.

1. – Cycle 1 will fetch, decode and


execute the instruction stored in
location 0.
2. _____
3. _____
4. _____

(Continue in the next page)

GOLD: Watch this video, and note any


new facts that you understand from
watching the video. Please, do not
add any information that you don’t
understand. You can add bullet
points.
_______________________________
_______________________________
_______________________________
_______________________________
_______________________________
_______________________________
_______________________________
_______________________________
_______________________________
_______________________________

You might also like