Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions