Marking Scheme for Final Exam
-
Question 1 (23 marks)
- 17 marks for the state machine truth table:
- 1 mark for the correct output in each state.
maximum of 2 marks deducted if all outputs inverted. (total 3)
- 2 marks for each of the two non-ALE-driven transition from
S0 (total of 4)
- 1 mark for each ALE-driven transition to S0 (total of
6)
- 1 mark for each remaining correct transition (S1 to S0/S2 and S2
to S2/S0) (total of 4)
- 6 marks for the CUPL equations:
for each of the three expressions:
- 2 marks if correct
- 1 mark if one error
- 0 marks if >1 error or completely wrong
-
Question 2 (20 marks)
- 11 marks per correct term in expressions (total of 11)
- 0.5 marks for each guaranteed value and computation that
agreed with expression (total of 4.5)
- 0.5 marks for each met/not-met decision that agreed with computed
value (total of 4.5)
-
Question 3 (10 marks)
- 1 mark for each number for RAM and ROM (total of 2)
- 1 mark for don't-cares, 1 mark for value to be decoded
for each of RAM and ROM (total of 4)
- 2 marks for each CUPL expression, marks deducted as in
Question 1 (total of 4)
-
Question 4 (4 marks)
- 0.5 marks for number of bytes
- 0.5 marks for number of cycles
- 0.5 marks each for correct opcode and operand (AND or
ANDI encoding marked correct) (total of 1)
- 1 mark for LDS*
- 1 mark for address error exception
-
Question 5 (5 marks)
- 1 mark each for AX and BX values (total of 2)
- 1 mark each for CS and IP values, either order correct (total of 2)
- 1 mark for adding CS and IP correctly (total of 1)
-
Question 6 (14 marks)
- 1 mark for each right answer (total of 14)
-
Question 7 (5 marks)
- 1 mark for each right answer (total of 5)