CS501 Advance Computer Architecture Assignment No. 1 Discussion & Solution Fall 2019 Due Date: November 12, 2019 

Advance Computer Architecture(CS501)

Assignment # 01
Fall 2019

 

Total marks = 20                                                                              

 

Deadline Date
12thNov 2019

 

 

Please carefully read the following instructions before attempting assignment.

 

RULES FOR MARKING

It should be clear that your assignment would not get any credit if:

  • The assignment is submitted after the due date.
  • The submitted assignment does not open or file is corrupt.
  • Strict action will be taken if submitted solution is copied from any other student or from the internet.

 

You should consult the recommended books to clarify your concepts as handouts are not enough.

 

You are supposed to submit your assignment in .doc or docxformat.

Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.

 

Objective:

 

Objective of this assignment is to increase the learning capabilities of the students about

 

·         Performance Measurement of a processor

·         Performance Comparison of processors

·         Classification of Instruction Set Architecture for different machines

 

 

NOTE

 

No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.

 

If you find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.

 

For any query, feel free to email at:

cs501@vu.edu.pk

 

 

 

 

 

 

 

 

Questions No 01                                                                                       10 marks

Suppose we have a program which contains 200 instructions of different types. We want to execute this program on a 500 MHz processor. The ratio of each type of instruction in the program as well as clocks per instruction for each type of instruction is given below:

Instruction Type

Ratio in program

Clocks/Instruction (CPI)

Load/Store

35%

2.5

ALU

55%

1.25

Control

10 %

3

  1. Calculate the total execution time required by the processor to execute the program.
  2. If CPI for ALU is decreased by 20% and CPI for Load/Store is increased by 10%, then calculate the execution time.

Questions No 02                                                                                       10 marks

Write assembly language program for 0-address and 1-address machines to evaluate the following expression.

D = A(B+C) – 2AC/B + C2

Note: A, B, C and D are memory labels.

 

 

 

 

 

 

 

 

Good Luck!

Tags: &, 1, 13, 2019, Advance, Architecture, Assignment, CS501, Computer, Date:, More…Discussion, Due, Fall, No., November, Solution

Views: 405

Attachments:

Replies to This Discussion

Have no clue what it s all about

D = A(B+C) – 2AC/B + C2

ZERO ADRESS

PUSH A=TOP OF STACK

PUSH B= TOP OF STACK

PUSH C =TOP OF STACK

ADD TOP=(B+C)

MUL TOP=A(B+C)……………….A(B+C)

ADD TOP= A+A…………………………….2A

MUL TOP=2A*C………………………... 2AC

MUL TOP=C*C………………...C2 C SQUARE

ADD TOP= B+(C*C)

DIV TOP=2AC/B+(C*C)

SUB TOP=(A(B+C) – 2AC ) )

DIV TOP=(A(B+C) – 2AC ) ) /B+(C*C)

POP

D

M[D] = TOP

A:

B:

C:

RSS

SPONSORED LINKS

SPONSORED LINKS

© 2020   Created by Irfan Khan MSCS.   Powered by

Badges  |  Report an Issue  |  Terms of Service