Question: Question 1 ) ( 7 . 5 Points ) There is a piece of C ( and its equivalent Matlab ) code that we want

Question 1)(7.5 Points) There is a piece of C (and its equivalent Matlab) code that we want to convert to
RISC-V. We expect to see a snapshot of your OUT window like the one below. Follow the steps:
A.(0.5 Points) Print to the OUT Window in RVS the following string "Student's number:" followed by your
student number. If your student number is 123456789, the printed line will be:
Student's number: 123456789
B.(0.5 Points) Print the string "Input an integer:" and ask the user for an integer input then store it in x1.
C.(2 Points) Write a code for the label "loop1" that calculates the integer values of x3 and x4.
D.(1 Point) Write a code for the label "loop2" that updates the values of x7 and x4.
E.(1 Point) Write a code for the label "end" that breaks compiling procedure.
F.(1 Point) Test your code with the integer '5', and print the final value of x4 as the "Result=".
G.(1.5 Points) Write a report based on your code in the report box, and upload both the assembly code
(2Q1_Ans.asm) and a snapshot (2Q1_Snapshot) of the RISC-V OUT window.Question 1)(7.5 Points) There is a piece of C (and its equivalent Matlab) code that we want to convert to
RISC-V. We expect to see a snapshot of your OUT window like the one below. Follow the steps:
A.(0.5 Points) Print to the OUT Window in RVS the following string "Student's number:" followed by your
student number. If your student number is 123456789, the printed line will be:
Students number: 123456789
B.(0.5 Points) Print the string "Input an integer:" and ask the user for an integer input then store it in x1.
C.(2 Points) Write a code for the label loop1 that calculates the integer values of x3 and x4.
D.(1 Point) Write a code for the label loop2 that updates the values of x7 and x4.
E.(1 Point) Write a code for the label end that breaks compiling procedure.
F.(1 Point) Test your code with the integer 5, and print the final value of x4 as the Result=.
G.(1.5 Points) Write a report based on your code in the report box, and upload both the assembly code
(2Q1_Ans.asm) and a snapshot (2Q1_Snapshot) of the RISC-V OUT window
 Question 1)(7.5 Points) There is a piece of C (and its

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!