CS501 Assignment No. 02 Solution

No Comments

Assignment No. 02
Semester: Spring 2013
CS501: Advanced Computer Architecture

Instructions
Please read the following instructions carefully before assignment submission.


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

§  The assignment is submitted after the due date.
§  The submitted assignment does not open or file is corrupt.
§  The assignment is found to be copied from the internet.
§  The assignment is found to be copied from other student.
§  The assignment submitted is not according to required file format (.doc).


Objective
The objective of this assignment is:

§  To assess your overall understanding of Register Transfer Language and its notations.
§  To assess your overall understanding of binary encoding of Computer Instructions.
§  To assess your overall understanding of how data is being processed in Registers and memory.

Note:

  • The assignment should be in .doc format.
  • Assignment .02 covers lecture 6-10. You can also consult reference books for help.
  • Students are advised to submit their assignment as early as possible in order to avoid any sort of inconvenience like Load shedding etc. 

Question No 1:                                                 Marks 1+1+1+1+1=5
  Q. 1.                        Briefly explain the following Register Transfer Language (RTL) notations:

1)    R [1]           ß  R [2] + (-56)
2)   R[5] R[0] ©R[6]/R[3]
3)   R [4] ß  R [3] ~ R [1]
4)   IO[R [4]+1]ß  R[7]]
5)   M[R [1] +13]    ß   R [3]


Question No 2: Fill the given table by specifying binary encoded values against eachinstruction.                                                               
Marks 15
Instruction
Type
OP-Code
Ra
Rb
Rc
C1
C2
Addressing mode
RTL Description
Condition
PC status
ori r2, r4, 9












jnz r1, [27]












Out  7,R5(30)











Load R[6]+99]











Jmi  R3,[7]












Note: You may write N/A in a cell not relevant to any instruction.



Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment