Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kkinos/grvemu

RISC-V emulator for CLI written in Go.
https://github.com/kkinos/grvemu

cli emulator go riscv riscv-emulator

Last synced: 24 days ago
JSON representation

RISC-V emulator for CLI written in Go.

Awesome Lists containing this project

README

        

# grvemu

[![Go](https://github.com/kinpoko/grvemu/actions/workflows/go.yml/badge.svg)](https://github.com/kinpoko/grvemu/actions/workflows/go.yml)
![License](https://img.shields.io/github/license/kinpoko/grvemu?color=blue)

RISC-V emulator for CLI written in Go

For now, grvemu supports only rv32i.

grvemu can pass some [riscv-tests](https://github.com/riscv-software-src/riscv-tests) and run c program. If you want to try them, you can use [riscv-tools-and-tests-docker-for-grvemu](https://github.com/kinpoko/riscv-tools-and-tests-docker-for-grvemu).

## Install

```bash
go install github.com/kinpoko/grvemu@latest
```

## Usage

```bash
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 実装への第一歩,技術評論社