[SOLVED] VE370-Lab 1 RISC-V Assembly Instructions

20.99 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (5 votes)

Purpose

This lab is intended to help you have a better understanding of the RISC-V assembly instructions, and get familiarized with Ripes which is a visual computer architecture simulator and assembler built for the RISC-V instruction set architecture.

Tasks

  1. Read Ripes Introduction at https://github.com/mortbopet/Ripes/wiki/Ripes-Introduction to learn about the software. Learn more information about Ripes at the wiki page. Everything else about the software can be found at https://github.com/mortbopet/Ripes.
  2. Download and install Ripes simulator on your computer. You can find the latest release (v.2.2.2) that suits your operating system on your computer at

https://github.com/mortbopet/Ripes/releases/tag/v2.2.2. Play with the software and get familiarized with the software environment.

  1. Learn RISC-V assembly syntax at https://github.com/riscv-non-isa/riscv-asmmanual/blob/master/riscv-asm.md. In the software, load example assembly files and learn from the example code.
  2. Write a short assembly program. Create a string of characters of your choice in the .data segment of memory using .string Then copy the string to a different memory section starting at address 0x10000100. Click the Select Processor button on the upper left corner, and select 32-bit Single-cycle processor to debug your program.

Deliverables

This is a 1-week lab. The full score for this lab is 100 points.

  • Demonstrate your program to the TAs before your lab session ends. Go through the program step by step and show corresponding changes in the registers and memory.
  • Upload the source file(s) on Canvas

This is an individual assignment. Your work must be submitted electronically to Canvas before the specified due date. Late submission will result in 0 point for the corresponding deliverables. Source code must be submitted before a grade for this lab can be assigned.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.