Code Monkey home page Code Monkey logo

grvemu's Introduction

grvemu

Go License

RISC-V emulator for CLI written in Go

For now, grvemu supports only rv32i.

grvemu can pass some riscv-tests and run c program. If you want to try them, you can use riscv-tools-and-tests-docker-for-grvemu.

Install

go install github.com/kinpoko/grvemu@latest

Usage

grvemu -h
RISC-V emulator for cli written in Go

Usage:
  grvemu [binary file] [flags]

Flags:
  -a, --arch string   architecture (default "rv32i")
  -d, --debug         debug mode
  -e, --eof uint32    end of binary
  -h, --help          help for grvemu
  -t, --test          display global pointer

Reference

西山悠太朗,井田健太,2021,RISC-V と Chisel で学ぶ はじめての CPU 自作 オープンソース命令セットによるカスタム CPU 実装への第一歩,技術評論社

grvemu's People

Contributors

kkinos avatar

Stargazers

 avatar  avatar cbluth avatar Niwaka avatar Sena SUZUKI avatar Takehiro Ogura avatar Masanori Tani avatar

Watchers

 avatar

grvemu's Issues

Any test cases?

Hello,

I am interested in RISC-V emulators for possible use in an embedded project and in particular, I am wondering about RV128 implementation to see what that might take to get working with the Risc-V 128-bit instruction set so as to be able to assess the much larger address space.

I was able to compile your code on my Windows 10 with Golang 1.19.3 and it seemed to run, but I did not have any test cases that I could find in your code to give it a try.

Ultimately, I would like to build out a binary tree implementation with 128-bit implementation, if possible.

Do you have any thoughts on this?

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.