Question 8
AQA Computer Science June 2022 Paper 2 (7516/2)AS9 marks
On the specification
- 8.1
- 3.7 Fundamentals of computer organisation and architecture
- 8.2
- 3.7 Fundamentals of computer organisation and architecture
- 8.3
- 3.7 Fundamentals of computer organisation and architecture
- 8.4
- 3.7 Fundamentals of computer organisation and architecture
- 8.5
- 3.7 Fundamentals of computer organisation and architecture
Question text
8 1 box . The fetch-execute cycle involves the Current Instruction Register (CIR), Control Unit, Memory Address Register (MAR), Memory Buffer Register (MBR) and Program Counter (PC). Figure 6 lists four events that can take place during one cycle of the fetch-execute cycle. The events are labelled A to D. Some events that take place during the fetch-execute cycle are not listed. Put these events in the order they would occur in the fetch-execute cycle when an ADD instruction is executed. Write the numbers 1 to 4 beside each description in Figure 6 to indicate the order in which the events occur. The number 1 should be used to indicate the event that would happen first. [3 marks] Figure 6 Order Description (1 to 4) A The contents of the MBR are copied to the CIR. B The contents of the PC are copied to the MAR. C The Control Unit decodes the contents of the CIR. D The result of the calculation is stored. 8.2 Describe the role of main memory in the execution of computer programs. [2 marks] 8.3 State the name of the processor component that is responsible for performing mathematical operations such as addition and multiplication. [1 mark] 8.4 Explain why increasing the data bus width can lead to improvements in processor performance. [1 mark] 8.5 Identify the bus that would need to be changed and state the change needed so that the maximum amount of memory addressable by the processor would be doubled. [2 marks] Bus to change Change needed Table 1 shows the standard AQA assembly language instruction set that box should be used to answer question 0 9 . 1 and question 0 9 . 2 Table 1 – standard AQA assembly language instruction set LDR Rd, <memory ref> Load the value stored in the memory location specified by <memory ref> into register d. STR Rd, <memory ref> Store the value that is in register d into the memory location specified by <memory ref>. ADD Rd, Rn, <operand2> Add the value specified in <operand2> to the value in register n and store the result in register d. SUB Rd, Rn, <operand2> Subtract the value specified by <operand2> from the value in register n and store the result in register d. MOV Rd, <operand2> Copy the value specified by <operand2> into register d. CMP Rn, <operand2> Compare the value stored in register n with the value specified by <operand2>. B <label> Always branch to the instruction at position <label> in the program. B<condition> <label> Branch to the instruction at position <label> if the last comparison met the criterion specified by <condition>. Possible values for <condition> and their meanings are: EQ: equal to NE: not equal to GT: greater than LT: less than AND Rd, Rn, <operand2> Perform a bitwise logical AND operation between the value in register n and the value specified by <operand2> and store the result in register d. ORR Rd, Rn, <operand2> Perform a bitwise logical OR operation between the value in register n and the value specified by <operand2> and store the result in register d. EOR Rd, Rn, <operand2> Perform a bitwise logical XOR (exclusive or) operation between the value in register n and the value specified by <operand2> and store the result in register d. MVN Rd, <operand2> Perform a bitwise logical NOT operation on the value specified by <operand2> and store the result in register d. LSL Rd, Rn, <operand2> Logically shift left the value stored in register n by the number of bits specified by <operand2> and store the result in register d. LSR Rd, Rn, <operand2> Logically shift right the value stored in register n by the number of bits specified by <operand2> and store the result in register d. HALT Stops the execution of the program. Labels: A label is placed in the code by writing an identifier followed by a colon (:). To refer to a label the identifier of the label is placed after the branch instruction. Interpretation of <operand2> <operand2> can be interpreted in two different ways, depending on whether the first character is a # or an R: • # – use the decimal value specified after the #, eg #25 means use the decimal value 25 • Rm – use the value stored in register m, eg R6 means use the value stored in register 6 The available general purpose registers that the programmer can use are numbered 0–12