Question 1
The stored program concept uses the Fetch-Decode-Execute cycle to get the next instruction from memory and then execute it.
Describe what happens during the fetch stage of the Fetch-Decode-Execute cycle.
You should state the different registers and buses that are used in your answer.
[4]
One of the instructions that may be fetched and executed as part of this cycle is a branch instruction.
State the name of the register that would be altered in the execute phase during a branch instruction.
[1]
Three ways of improving the performance of a CPU are increasing the clock speed, adding more cores and using pipelining.
Explain how pipelining improves the performance of a CPU.
[3]
The Fibonacci sequence is a series of numbers. It starts with the number 0 and then 1. Each number after that is a sum of the two numbers before it.
The first seven numbers in the series are: 0 1 1 (i.e. 1 + 0) 2 (i.e. 1 + 1) 3 (i.e. 1 + 2) 5 (i.e. 2 + 3) 8 (i.e. 3 + 5)
Orla has written some code to show the first five numbers in the Fibonacci sequence (0,1,1,2,3) using the Little Man Computer (LMC) instruction set.
The LMC code that Orla has written contains an error.
State the five outputs that Orla’s code would give.
[3]
In Orla’s LMC code, she used direct memory addressing.
Give three other modes of memory addressing.
[3]
Since the development of high level languages, the use of assembly languages has reduced.
Give two reasons why in some circumstances programmers will choose to write code in assembly language.
[2]
The performance of a computer system can be improved by adding more RAM.
Explain why adding more RAM will improve the performance of a computer system.
[3]