ICT114 Computer Architecture TMA: Number Systems, Memory Architecture in Computer Systems
University | Singapore University of Social Science (SUSS) |
Subject | Computer Architecture |
TUTOR-MARKED ASSIGNMENT (TMA)
This assignment is worth 18 % of the final mark for ICT114 Computer Architecture.
The cut-off date for this assignment is Friday, 28 February 2025, 2355hrs.
Note to Students:
You are to include the following particulars in your submission: Course Code, Title of the TMA, SUSS PI No., Your Name, and Submission Date.
All TMAs must be submitted electronically through Canvas. No partial submission of TMA will be accepted unless otherwise specified.
Please refer to undergraduate student handbook for more information:
Combined UG Student Handbook July 2024 (suss.edu.sg)
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. Figure Q1(d) (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.
(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. 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.
Figure Q3 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)
(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.
(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.
(e) Explain the purpose of the instruction LSR #3, D1.
(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
(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)
Hire a Professional Essay & Assignment Writer for completing your Academic Assessments
- MKT555 Social Media Marketing in Practice GBA: Boosting Diabetes Singapore’s Social Media Impact
- QSM201 TMA02: Construction Measurement for Civil & Structural Works
- FMT302 Operation and Maintenance of Building Services TMA02: Optimizing Building Services Management: In-House vs. Outsourcing Strategies
- Fundamentals of Data Mining: Analyzing Diabetes Dataset
- HFSY217 ECA: Emergency Preparedness & Response Planning for Kenny Chemical Logistics
- SWK356 TMA: Social Work in Healthcare and Psychosocial Interventions
- MGT553 Leadership in Service Innovation ECA: Service Innovation in Singapore’s Retail Industry
- BPM113 Construction Technology TMA01: Cluster House Development at Upper Paya Lebar Crescent
- COM388 Communication Campaign PlanningTutor-Marked Assignment 1-2: Communication Campaign Analysis and Strategy
- COM388e Communication Campaign Planning End-of-Course Assessment: A Marketing and Communication Analysis
UP TO 15 % DISCOUNT