Giter Site home page Giter Site logo

rafi-emu's Introduction

rafi-emu

RAFI (RISCV Akifumi Fujita Implementation) is my hobby project to make a RISCV processor.

The main purpose of this emulator (rafi-emu) is to help debugging my HDL implementation. It's not a pragmatic emulator for general purposes.

This repository is archived and integrated into https://github.com/fjt7tdmi/rafi-1st .

Implemented features

  • RV32GC (RV32IMAFDC)
  • RV64GC (RV64IMAFDC)
  • RV32I privileged instructions with virtual memory
  • RV64I privileged instructions with virtual memory

Supported environment

  • Windows 10
  • Ubuntu 18.04

How to build

Install required modules

Windows 10

Install the following programs manually.

  • Visual Studio 2019
  • Boost (>= 1.65)
  • CMake (>= 3.8)
  • MSYS2 (CUI environment)
  • Python (>= 3.6)

Ubuntu 18.04

apt-get install cmake libboost-filesystem1.65.1 libboost-program-options1.65.1 libboost1.65-dev

Run build scripts

# Build googletest in git submodule
./script/build_gtest.sh

# Debug build
./script/build_debug.sh

# Release build
./script/build_release.sh

How to run unit tests

./script/run_unit_test.sh

How to run riscv-tests and linux

First, it's necessary to checkout prebuilt binaries. However, the prebuilt binaries repository is private because of a license issue now (Jan 2020). Sorry!

./script/checkout_prebuilt_binary.sh

Then, run riscv-tests or linux.

# Run riscv-tests
./script/run_riscv_tests.sh

# Boot linux (it will halt while running /init because of my bug :P)
./script/run_linux.sh

rafi-emu's People

Contributors

fjt7tdmi avatar

Stargazers

Timothy avatar  avatar

Watchers

James Cloos avatar  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.