Giter VIP home page Giter VIP logo

bit-rars's Introduction

README

BIT-RARS : RISC-V Simulator in Java

1. Introduction

BIT-RARS is a RISC-V simulator for teaching designed by Yueyan Zhao based on MARS, a MIPS simulator in Java.

2. Supported Instructions

The basic instructions set RV32I.
Directives and macro are supported.
A few pseudo-instructions are supportet. we noticed that it's not enough and will be enriched in the future version.

3. Installing and Running

Java JRE 1.6 or above is required. Download jar file in directory .\bin and Run it from console

$ java -jar Rars.jar 

1
There are mainly four sections in the main UI.
The first and second section are menu and tool bar.
The third section is "Edit/Excute" section, in which you can edit your code or watch the simulation result.
The fourth section is a console to display the output and reports of assembling and simulation.

Here is an exmaple to show you how to use the simulator:
Click File→Open, and follow the instructions in section 4→(2) to find the examples. Copy and paste the example in the edit page.
2 3

Go to Run→Assemble to assemble the asm code. You will see the execute page, in which there are source code, basic format of each code, binary code, code address(section 1), the memory(section 2) of and registers(section 3).
4
5
Then all the work have been done. Just use run, step and other command in the tool bar(next to the assemble button) to run the code and watch the outcomes.

About the source code:

The main class is in Rars.java and other source codes are in help, images and rars, in case anyone want to compile or read the code

4. Examples

(1. Open Rars.jar, find Help→Rars→Examples, where two example are presented.
(2. Open directory .\asm_examples. More examples will be found to implement Bubblesort and calculate fibonacci.

5. Future Work

More pseudo-instrucions to be added.
Syscall will be adjusted to follow the general use of register in Risc-V

Please feel free to contact us([email protected]), if you have any questions about this project.

bit-rars's People

Contributors

pinkcatfly avatar jiweixing avatar

Stargazers

 avatar  avatar liseri avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

bit-rars's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.