CECS 341 Homework 2 – RISC-V ISA solution

$30.00

Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment

Description

5/5 - (1 vote)

Using Ripes simulator, implement the following C code for RISC-V assembly. Assume that the values of
a, b, i, j are in registers X5, X6, X7 and X29 respectively. Also, assume that register X10 holds the base
address of the array A.

(Note: A is an array of Bytes which means each element of array A holds one Byte
of data).
for ( i = 0 ; i < a ; i++)
for ( j = 0 ; j < b ; j++)
A[i] = A[i] + 5*j + i;
# put your code here

Submit your assembly source code (.as file) as well as a screenshot of part of memory that stores data for
your code.

Note: For information regarding Ripes simulator, refer to the provided links in the BB (Chapter 2).