Code Monkey home page Code Monkey logo

mrisc32-simulator's Introduction

MRISC32 simulator

This repository contains a simulator for the MRISC32 ISA, and some relevant tools.

Simulator

The MRISC32 simulator is a C++ program that can run MRISC32 binaries. See sim/README.md.

Building programs

There is a GNU toolchain capable of compiling and linking C and Assembly source code programs for MRISC32. For futher information see mrisc32/mrisc32-gnu-toolchain.

To build assembly language programs that can be used by the simulator or the VHDL testbench (core_tb), do the following:

$ mrisc32-elf-as -o my-program.o my-program.s
$ mrisc32-elf-ld -o my-program.elf my-program.o
$ mrisc32-elf-objcopy -O binary my-program.elf my-program.bin

The final .bin file can be loaded into the simulator, for instance.

Debug trace inspector

Debug traces from the simulator or the VHDL test bench can be inspected using mrisc32-trace-tool.py. It can be useful for finding differences between different simulation runs.

Syntax Highlighting

MRISC32 Assembly Language

gedit / GtkSourceView

Copy or symlink tools/support/gtksourceview/mr32asm.lang to ~/.local/share/gtksourceview-3.0/language-specs/.

For GtkSourceView 4 (e.g. used in gedit in Ubuntu 19.04 and later), copy to ~/.local/share/gtksourceview-4/language-specs/ instead.

mrisc32-simulator's People

Contributors

mbitsnbites avatar toothbrush7777777 avatar

Watchers

 avatar

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.