I-Part test

47 views
Skip to first unread message

Hassan Shahid

unread,
Oct 10, 2020, 1:11:08 AM10/10/20
to cmpt-295-sfu
Github username: fdude4
Line and file:  part1.c line 246 to 263
Expected behavior: Successful
Observed behavior: Fail
Question:
I am using the same solution as the instructor used in print_itype_except_load so i do not think it is wrong, but when i run ./riscv -d ./code/input/I/I.input > ./code/out/I/I.solution i get very different values from the ones i should get. I have also checked my i-type load and cannot for the life of me figure the issue out. Please help.

Parmida Vahdatnia

unread,
Oct 10, 2020, 1:51:22 AM10/10/20
to cmpt-295-sfu
you don't need to sign extend for load other than that the lines you mentioned are implemented correctly. 

Hassan Shahid

unread,
Oct 10, 2020, 2:12:13 AM10/10/20
to cmpt-295-sfu
thanks for reply, but somehow it's still failing, and the issue seems to be in the lines regarding print_itype_except_load , because when i check for differences it brings up only addi and other immediate commands. Is my signextension buggy, i copied it from insturctor lab video

Parmida Vahdatnia

unread,
Oct 10, 2020, 2:41:10 AM10/10/20
to cmpt-295-sfu

you have implemented that specific function correctly 
Reply all
Reply to author
Forward
Message has been deleted
0 new messages