Question: The RISCV assembly program should take the an intial value in register x 2 and store its thermometer code in memory address 0 x 8

The RISCV assembly program should take the an intial value in register x2 and store its thermometer code in memory address 0x8. Refer to the section below for thermometer code.
Please use the register file's initial values for testing as the autograder will load in random values into the respective register file and read out corresponding memory address values for verification.
Your assembly code must be under 10 lines. You should not have intructions that store initial values into register files. Any program longer than 10 lines will recieve 0 points
Suggestions: The following steps are recommended to complete the assignment.
Use breakpoints to help in debugging.
Use single step mode as the final resort in debugging. It is time consuming but gives you the most information.
Thermometer Coding: Similiar to One-Hot Encoding learned in ECE 2020 but all the digits before the leading 1 is also 1. Any natural number n can be unary encoded with n+1 digits. See below for examples.

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!