RISC‐V SIMULATOR INSTALLATION - mbits-mirafra/computerArchitectureCourse GitHub Wiki

RARS (RISC-V Assembler and Runtime Simulator)

RARS, known as the RISC-V Assembler and Runtime Simulator, is designed to assemble and simulate the execution of RISC-V assembly language programs.

Github link for the page : https://github.com/TheThirdOne/rars

Let's begin with the installation process

Step 1: Please navigate to the README section of this GitHub link : https://github.com/TheThirdOne/rars

Step 2: Under downloads section, click on continuous release

Step 3: Download rars_3897cfa.jar file

Step 4: Make sure you've at least Java 8 installed.

If you don't have java 8 installed, Don't worry :) Go to step 5

Step 5: Download Java 8 from this link : https://www.java.com/en/download/ and click on Download Java

After downloading, Install it.

Step 6: Add Java to your PATH environment variables

  • Search for environment variables in the search bar and then click open
  • Click on Environment Variables
  • Select Path and then click Edit
  • Go to This PC in your computer and then search for the javapath in your program files and then copy that path
  • Later in this section, click on New and then paste the path here and then clock OK

Step 7: Make sure you have git bash installed. If not please download and install it from this link: https://git-scm.com/downloads

Step 8: Go to the location where your .jar file is present (Downloaded in step 3) and then right click and open Git Bash Here

Step 9: Type the following command

java -jar rars_3897cfa.jar and press Enter

Step 10: Once you click enter you'll see this screen

Step 10: Once you click enter you'll see this screen

There you go :) You have successfully installed the RARS Simulator

Guide to use RARS Simulator: https://github.com/muneeb-mbytes/computerArchitectureCourse/wiki/Guide-for-using-RARS-Simulator