0% found this document useful (0 votes)
150 views

CAO - Midterm - Fall 2020 PDF

This document contains instructions for a midterm examination in the course Computer Architecture & Organization. It includes 6 questions related to specifications of a hypothetical microprocessor, writing machine code, memory mapping, interrupt handling, hard disk storage calculations, and the memory hierarchy. Students must submit handwritten solutions in a single PDF file by the deadline through the university's learning management system. Plagiarized answers will be discarded and receive a grade of zero.

Uploaded by

saif9970
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
150 views

CAO - Midterm - Fall 2020 PDF

This document contains instructions for a midterm examination in the course Computer Architecture & Organization. It includes 6 questions related to specifications of a hypothetical microprocessor, writing machine code, memory mapping, interrupt handling, hard disk storage calculations, and the memory hierarchy. Students must submit handwritten solutions in a single PDF file by the deadline through the university's learning management system. Plagiarized answers will be discarded and receive a grade of zero.

Uploaded by

saif9970
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Midterm Examination - CAO Fall 2020

PAF – Karachi Institute of Economics and Technology


Dept. of Electrical Eng. – College of Engineering

Course: Computer Architecture & Organization


Faculty: Engr. Kamran Ali Khan
Class ID: 104800
Semester: Fall 2020

Midterm Examination
Time Allowed: 2 Hour + 1 Hour Total Points: 60 (10 points for each of the questions)

 All answers will be checked on the ANSWER SCRIPT which has to be a


collection of snapshots of HAND WRITTEN pages, in ONE PDF File.
TYPED pages will be DISCARDED.
 NAME, STUDENT ID & DEPARTMENT should be written on the FIRST page of
your PDF. Each Page must have a page number.
 Your PDF File name should be of the format: Std ID + Std Name
(Example: 5478RehanAdil)
 ALL submissions shall be done through the KIET – LMS.
 If two or more answer scripts are found to have similar pages (even
one) BOTH/ALL the scripts shall be discarded and a ZERO shall be
awarded to the students.

Q1. Given the following specifications for a Hypothetical Microprocessor:

 Instruction Format: Size of the Instruction = 32 bits; (Opcode = 9; Address = 23)


 Integer Format: 40 bit integer with the MSB being used as the sign bit.
 Partial List of Opcodes: (Binary values)

 Load AC from memory: 010000000


 Load AC from I/O: 001010001
 Add to AC from I/O: 011000010
 Store AC to memory: 010010011
 Store (output) AC to I/O: 001100100
Where:
 PC = Program Counter; IR = Instruction Register; AC = Accumulator.
 Input from Webcam: (device 30 H) = 12345678 H ; Input from Keyboard (device 40 H ) = 56789ABC H
 Output Device is a “Monitor” (device 50 H)
 The program instructions are to be stored in memory from location A0100 H onwards, contiguously.

Page 1 of 3
Midterm Examination - CAO Fall 2020

Write a “machine language program” in (hexadecimal format) for the TASK given below:

The TASK:

Add the input data from Webcam to the input data from the Keyboard and store the result at the LAST
location of the RAM and also display the result at the monitor.

[(CLO_1) (Cognitive Level C3, i.e., Applying ) (PLO_1, i.e., Understanding and Applying)]

Q2. For the specifications of the system in Question 1 above, answer the following:
1. What would be the maximum size of the RAM that could be connected to the given microprocessor?
2. What would be the address range for the RAM (in HEX)?
3. What would be the size of IR, PC & AC, respectively?
4. How many I/O ports are available with the given processor?
5. What is the maximum number of the instructions possible for the given microprocessor?
6. What will be the width of A-BUS, D-BUS and C-BUS respectively?

[(CLO_1) (Cognitive Level C3, i.e., Applying ) (PLO_1, i.e., Understanding and Applying)]

Q3. Draw the complete Memory Map with I/O devices for the program of Q1.

[(CLO_2) (Cognitive Level C3, i.e., Applying ) (PLO_1, i.e., Understanding and Applying)]

Q4. Write the complete sequence of steps performed by the sytem when an interrupt is encountered by the CPU.

[(CLO_2) (Cognitive Level C4, i.e., Analyzing ) (PLO_2, i.e., Problem Analysis)]

Q5. A user browsing the internet needs to download software with a file size of 60.7 MB. She has a hard disk on her
system with 500 platters, with each surface of each platter made up of 300 tracks and with a data storage capacity of 5 KB
for each track. The access time for each track is 5 ms.

1. Can you calculate the time it took to save the file in the hard disk when the user used a non-cylindrical method for
her storage?
2. After research the user found the cylindrical method of storage more effective in terms of time it takes to store the
same file. What was the new time for the storage?

Page 2 of 3
Midterm Examination - CAO Fall 2020

3. If the software was of size 5000 MB instead of 60.7 MB, could the user still download it on her hard disk? If
NOT then why?

[(CLO_3) (Cognitive Level C4, C5 i.e., Analyzing & Evaluating) (PLO_3, i.e., Data Dissection and Evaluation)]

Q6. Draw the diagram for the Memory Hierarchy and answer the following in either of the two given words;
‘Increases’ or ‘Decreases’ as we move UP in the memory hierarchy. (Answers on answer script)

1. The speed ________


2. The memory Access time ________
3. The Size of memories ________
4. The cost /bit _________
5. Nearness from the CPU _________

[(CLO_3) (Cognitive Level C4, C5 i.e., Analyzing & Evaluating) (PLO_3, i.e., Data Dissection and Evaluation)]

BRAINSTORM!

Page 3 of 3

You might also like