cs501 Assignment 2 solution file fall 2021
Advance Computer Architecture(CS501)
Assignment # 02
Fall 2021
 

 

 

                  Question no 1:

Write an RTL description for each of the below given Falcon-A instructions.


Instruction

RTL Description

DIV R2, R3, R1

R[2]R[0] © R[3]/R[1],R[0]← © R[0] ©R[3]%R[1]

LOAD R2, [R3 + 10]

R[1] ←M[R[3]+10]

HALT

Halt

SHIFTL R3, R2, 6

R[3]<15..0> ← 6@0) ©R[2]<(15..6)

JZ R2, [15]

(R[2]=0): PC ←PC+15;

 

Question no 2:

Complete the below given table for given Falcon-A Instructions:


Instruction

Op-Code value

Machine Code

ra

rb

rc

c1

c2

DIV R2, R3, R1

5

00101(2A64h)

R2

R3

R1

--

--

LOAD R2, [R3 + 10]

29

011101(EA6Ah)

R2

R3

--

10

--

HALT

31

011111(F8h)

--

--

--

--

--

SHIFTL R3, R2, 6

12

001100(6386h)

R3

R2

--

6

--

JZ R2, [15]

19

010011(9A0Fh)

R2

--

--

--

[15]

 


For Download word file Clike Here👇





In google Derive doc click file option and then click download option in word format.


Don't Directly copy paste assignment change font size and style, write your name and id in front of assignment and save assignment with your vu id



Thanks For visiting the site:

For any problem-related solution visit site regularly.

bookmark the site, please.