ICT114 Tutor-Marked Assignment January 2025 Semester Presentation SUSS : Computer Architecture, Singapore

University Singapore University of Social Science (SUSS)
Subject ICT114: Computer Architecture

Question 1

A digital system uses 8-bit for integer representation and 32-bit for floating point number representation. Explain and analyse the various number representations and answer the following questions.
(a) If the code word 1111 1010 is to be interpreted as a fixed-point fraction with four bits before and four bits after the binary point.
(i) Give the binary representation of this number.
(1 mark)
(ii) Compute the decimal value of this number if both the integral and fractional
parts are unsigned representations.
(3 marks)
(b) Express AB16 and FF16 in 8-bit binary representation. Then find the result of AB16 XOR FF16 in binary and express the answer in hexadecimal. How is the result of this
expression related to AB16?
(5 marks)
(c) (i) Express 38 and -70 in 8-bit 2’s complement signed integer representation.
(5 marks)
(ii) Find the result of 38 – 70 by performing the computation in 2’s complement arithmetic. Assume 2’s complement arithmetic is performed by adding 38 + (-70). Verify that the result of the 2’s complement arithmetic is equivalent to the
decimal result.
(4 marks)
(d) The hexadecimal number C260 0000 represents a 32-bit floating point number. Its representation is given in Figure Q1(d). What is the decimal value? Show your working.

(7 marks)
Note:
1. One mark will be deducted from each sub-section if subscripts are not shown for hexadecimal and binary numbers, or their number bases are not indicated.
2. When an equal sign is used, the left side must be equal to the right side. A penalty will be imposed for the misuse of the equal sign.

Question 2

Figure Q2 shows the characteristics of a hypothetical machine, relevant portions of memory, processor registers and some I/O devices. For the instruction format shown in Figure Q2(i), if it is an I/O instruction, bits 4 to 15 identify a particular I/O device. If it is not an I/O instruction,it is a memory address.

Hire a Professional Essay & Assignment Writer for completing your Academic Assessments

Native Singapore Writers Team

  • 100% Plagiarism-Free Essay
  • Highest Satisfaction Rate
  • Free Revision
  • On-Time Delivery

(a) How many memory locations can this processor address?
(1 mark)
(b) This hypothetical machine is to execute the following program:
1. Load AC from device 3.
2. Add contents of memory location 991.
3. Store AC to memory location 992.
There are three fetch and three execute cycles. The process can be divided into six steps or cycles. For each step or cycle, demonstrate what happens and list the contents of the following registers:
(i) PC at the start of each cycle,
(ii) AC at the end of each cycle and
(iii) IR at the end of each cycle.

Assume the initial values are as given in Figure Q2(v). Summarise your answer using the format shown in Table Q2.

(24 marks)

Question 3

This question is based on the EASY68K simulated processor. Assume the contents of all data and address registers are equal to zero before the program starts. All numbers are in hexadecimal.
Demonstrate how program instructions are executed using the E114 Processor Instruction Set of the EASY68K simulator.
Figure Q3 is a complete program for the course’s simulated processor. Assume all numbers are in hexadecimal.

Note: The above code contains an instruction Logical Shift Right (LSR), which will shift the contents of the register D1 by 3 places.
(a) The program includes a loop. Which register is being used as a loop counter and how many times in total will the set of instructions within the loop be executed?
(2 marks)
(b) From which instruction(s) do you deduce the answers in Q3(a)?
(2 marks)

Buy Custom Answer of This Assessment & Raise Your Grades

(c) The loop picks up successive data items from a block of locations in data memory. Give the starting address of the block in hexadecimal. (1 mark)              (d) What is the function of the program? Do not describe each instruction; describe the tasks of the program. The description should be assembly code-independent. Examples: Instruction: MOVE D0, D1 Description of instruction: Move the contents of register D0 to register D1. Describe the tasks of the program: The program computes the probability of getting a distinction in ICT114 by recording your class attendance, the number of hours you put into the module, and … (4 marks)                                                                                                            (e) Explain the purpose of the instruction LSR #3, D1. (3 marks)                                (f) Run the program in Figure Q3 with the course’s simulator. Assume the contents of all data registers are set to zero before the start of the program. Once the program works correctly, submit a screenshot of the memory contents, including addresses from 2FC0 to 3030 when the program stops. Use the instructions given below to obtain the screenshot.                                               Instructions:                                                                                                                                            1. To view the memory contents at the simulator screen, click on the View menu and select Memory. Click on the Page down button to the required addresses. Verify that the memory contents are indeed correct.                             2. To capture the ‘screenshot’ select the window, press + on your computer keyboard, then paste it onto your MS WORD document. Your submission should be like the sample in Figure Q3(f).

(g) Give the data value in hexadecimal stored at RESULT when the program stops.
(2 marks)

(h) Identify the addressing modes for the following instructions used by E114 simulator.
(i) MOVE.B STUDENT, D0
(ii) MOVE #MARKS, A1
(iii) MOVE.B (A1)+, D2
(iv) ADD.L D2, D1
(v) MOVE.B D1, RESULT
(5 marks)
(i) Explain TWO (2) disadvantages of using variable length instruction.
(4 marks)

Question 4

(a) A computer system has an 18-bit address bus and can address an 8-bit wide memory. The memory of this computer system contains 48 Kbytes ROM and 2 x 32 Kbytes of RAM (RAM1 & RAM2). All three memories form a contiguous block of memory starting at address 0. ROM occupies the lowest address range. The rest of the address range after RAM2 is not used.
(i) Calculate the total addressing capacity of this computer system, including the unused memory zone in Kbytes.
(2 marks)
(ii) Draw a memory map for the computer system. Indicate the starting and ending addresses in hexadecimal for each block of memory and any unused space. Show how the memory addresses are obtained.
(14 marks)
Note:
1. No credit will be awarded for the working if a calculator is used to perform the number base conversion.
2. Marks will be deducted if subscripts are not shown for hexadecimal numbers or no indication that it is a hexadecimal number.
3. When an equal sign is used, the left side must be equal to the right side. A penalty will be imposed for the misuse of the equal sign.
(b) Name and describe any THREE (3) different types of memories that are non-volatile.
(9 marks)

Stuck with a lot of homework assignments and feeling stressed ? Take professional academic assistance & Get 100% Plagiarism free papers

Answer

Looking for Plagiarism free Answers for your college/ university Assignments.

Ask Your Homework Today!

We have over 1000 academic writers ready and waiting to help you achieve academic success