CS501 ASSIGNMENT 2 SOLUTION 2021 | CS501 ASSIGNMENT 2 FALL 2021 | CS501 ASSIGNMENT 2 2021 | ADVANCE COMPUTER ARCHITECTURE | VuTech
KINDLY, DON’T COPY PASTE
Visit Website For More Solutions
www.vutechofficial.blogspot.com
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 |
Run |
SHIFTL
R3, R2, 6 |
R[3] < 15..0 > ← (6 @ 0)
© R [2] < 15..6 > |
JZ R2, [15] |
( R[2] = 0 ); PC ← PC + 15; |
Note: You must use sign-extended constant in the instructions wherever needed.
KINDLY, DON’T COPY PASTE
Visit Website For More Solutions
www.vutechofficial.blogspot.com
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 / EA 6Ah |
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] |