Simple test failed in a2 part2

50 views
Skip to first unread message

Barry Zhao

unread,
Oct 9, 2020, 6:27:43 PM10/9/20
to cmpt-295-sfu
# Question templates
SFU ID: lza128
Github username:Barry7043
Line and file: simple.input
Expected behavior:test shows the error details.
Observed behavior:cannot understand the failed info.
Question:Why does this error happen?


Parmida Vahdatnia

unread,
Oct 9, 2020, 7:05:32 PM10/9/20
to cmpt-295-sfu

this topic has been covered in previous discussions, search the group for more references.

Arrvindh Shriraman

unread,
Oct 9, 2020, 7:10:14 PM10/9/20
to cmpt-295-sfu
try option -e

Barry Zhao

unread,
Oct 9, 2020, 7:23:11 PM10/9/20
to cmpt-295-sfu
lza128@asb9700u-b02:~/sfuhome/CMPT295/assignment-2-Barry7043$ ./riscv -r -e ./code/input/simple.input > ./code/out/simple.trace
lza128@asb9700u-b02:~/sfuhome/CMPT295/assignment-2-Barry7043$ python3 part2_tester.py simple

Starting simple test
ERROR: student trace finished before reference trace
simple test has failed.
-------------------------------------------------------
I have try to use -e but it also shows the same result. May it be the problem on PC?

在 2020年10月9日星期五 UTC-7下午4:10:14,Arrvindh Shriraman写道:

Arrvindh Shriraman

unread,
Oct 9, 2020, 8:51:22 PM10/9/20
to cmpt-295-sfu
Include images of your output and mark exactly which register and where in the trace.
Also if your program is stalled, describe how (infinite loop, not run to the end etc).

Barry Zhao

unread,
Oct 10, 2020, 1:48:41 AM10/10/20
to cmpt-295-sfu
I checked for my utils.c and solve the problem. The reason of failure was the lack of  opcode cases. Thank you.

5:51:22,Arrvindh Shriraman:
Include images of your output and mark exactly which register and where in the trace.
Also if your program is stalled, describe how (infinite loop, not run to the end etc).



On Friday, October 9, 2020 at 4:23:11 PM UTC-7, Barry Zhao wrote:
lza128@asb9700u-b02:~/sfuhome/CMPT295/assignment-2-Barry7043$ ./riscv -r -e ./code/input/simple.input > ./code/out/simple.trace
lza128@asb9700u-b02:~/sfuhome/CMPT295/assignment-2-Barry7043$ python3 part2_tester.py simple

Starting simple test
ERROR: student trace finished before reference trace
simple test has failed.
-------------------------------------------------------
I have try to use -e but it also shows the same result. May it be the problem on PC?

4:10:14,Arrvindh Shriraman:
Reply all
Reply to author
Forward
0 new messages