Barani Institute of Management Sciences: BS (CS) - 5B & 5D Computer Architecture CS-532

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Barani Institute of Management Sciences

Department of Computer Science

MID Term Examination-Fall-2020


BS (CS)-5B & 5D
Computer Architecture
CS-532
Registration No.________________ Total Time: 24 Hours

Instructor: Engr. Aamir Mehmood Maximum Points: 36


-----------------------------------------------------------------------------------
Instructions:
 Properly fill out the front page
 Paper must be hand written
 Write your name, registration no, Course name & course code on every page of your answer sheet.
 Clearly mention Degree Program (BSCS), Semester and Section on your answer sheet.
 Attempt all questions. Please answer to the point and solve all parts of a question successively.
 Scan all pages using cam scanner and make a PDF file and upload it within time limit.
 Rename your PDF file as (your name-registration no-course code)
Question No. 1: (2*5)
Differentiate between the following:
a) Single Instruction Multiple Data Stream (SIMD) and Multiple Instruction Multiple Data Stream (MIMD)
b) Bandwidth and Latency
c) Temporal and spatial locality
d) Access time and memory cycle time
e) Cache look aside and cache look through

Question No. 2: (4+4)


a) List and elaborate the main characteristics of memory system? Briefly explain typical cache organization with the help of
diagram?
b) Draw & explain instruction cycle state diagram without interrupts?
Question No. 3 (3+3+4)
a) Explain the working of asynchronous bus timing with the help of a diagram?
b) A system is composed of two components: Component 1 and Component 2. A percentage of 80% of Component 1 can be
improved leading to 50% (1.5 times) improvement. On the other hand, only 20% can be improved in Component 2
leading to quadrupling (4 times) its performance. The cost of improving both components is same so we need to decide,
which component has more impact on overall performance. Apply Amdahl's law to decide which component shall be
improved to get better performance.
c) Translate the following code statements in equivalent MIPS architecture's instruction format. Both load and store words
shall be handled as a separate instruction.
 a[10] = b + c[0] - d[8]
 x = y + z - s[8]
Question No. 4 (5)
9
Two 10 GHz computers with the same architecture and having different compilers, The Instruction Count Ci (10 ) for each Class is
A B C
Compiler 1 5 4 3
Compiler 2 7 3 2

The CPIi for each class is.

Instruction Class CPIi


A 6
B 4
C 5
Calculate the “Execution Time” and “MIPS” for both machines. Mention which machine is better in performance.

Question No. 5 (3)


Explain the read and write operations of SRAM with the help of its structural diagram?

*****Good Luck*****

You might also like