Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using RISC-V simulator called Venus: . i think image is clear? confused? Part A (Warm Up Exercise) - 50 points Skeleton code for this portion
Using RISC-V simulator called Venus:
.
i think image is clear? confused?
Part A (Warm Up Exercise) - 50 points Skeleton code for this portion of the lab can be found in lab1a.skel. In part A you write a RISC-V assembly language program that prints the contents of an array that are greater than a given constant. The output should display each integer that meets the above condition on a new line. Note: Though this exercise seems quite simple, it is the building block of a powerful paradigm in high performance computing called map-reduce. You are basically implementing the map operation which involves iterating over a list and extracting values that satisfy a particular condition or are the result of applying a particular function in this example the function is "greater than k'). What do you have to do? Given an array of 10 numbers loop through them all For each number check if it is greater than a constant of your choice. The constant can be changed by changing the value K in the skeleton file. Print out the results one element per line. Download the skeleton file called lab1a.skel and add your code to it. Rename your file to karbosiD>laba. S where kertos ID is the ID you use to login to your UC Davis email or MyucDavis account. Comment your code explaining what the equivalent C operation would be i.e. be to, t1, outsideloor. HiftoStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started