Instruction not starting.

26 views
Skip to first unread message

Seerat Singh

unread,
Oct 9, 2020, 8:47:51 PM10/9/20
to cmpt-295-sfu
SFU ID: 301412788
Github username: gurseeratbrar
Line and file: 233, part1.c
Expected behavior: print out jal instruction
Observed behavior:  It does not impliment the instruction.
Question: What should do to run the instruction in uj ?


Arrvindh Shriraman

unread,
Oct 9, 2020, 8:51:51 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).

Seerat Singh

unread,
Oct 9, 2020, 8:52:24 PM10/9/20
to cmpt-295-sfu
Attached the Screenshot of error.
JAL.PNG

Seerat Singh

unread,
Oct 9, 2020, 9:00:03 PM10/9/20
to cmpt-295-sfu
When I run  
$ ./riscv -d ./code/input/R/R.input > ./code/out/UJ/UJ.solution 
$ diff ./code/out/R/R.solution ./code/ref/UJ/UJ.solution  
It seems that it exits before implementing the other instruction of  ujtype particularly jal.
I have double checked "get_jump_offset" but still the error exists.
Please consider the screenshot attached.

Arrvindh Shriraman

unread,
Oct 9, 2020, 9:07:44 PM10/9/20
to cmpt-295-sfu
You are dumping R type to UJ. Not sure if this was intentional.
your commands are wrong.

Seerat Singh

unread,
Oct 9, 2020, 9:17:34 PM10/9/20
to cmpt-295-sfu
I apologize, I type here incorrect but the command was correct in the command as shown in the screenshot. 
Reply all
Reply to author
Forward
0 new messages