GithubHelp home page GithubHelp logo

cisen / rv-pc-riscv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kazuki-hr/rv-pc

0.0 0.0 0.0 275 KB

License: MIT License

Shell 0.54% C 11.31% Tcl 6.01% Verilog 75.03% Assembly 0.18% SystemVerilog 6.45% Makefile 0.47%

rv-pc-riscv's Introduction

RV-PC

RV-PC is a GUI-capable RISC-V computer system on low-end FPGA boards. It is based on RVSoC, a portable and Linux capable RISC-V computer system on an FPGA. Currently, only the Digilent Nexys4 DDR and the Nexys A7 board is supported.

The system diagram of RV-PC

Demo: https://youtu.be/Kt_iXVAjXcQ

Specification

  • RV32IMA instruction set
  • 5-stage pipelined processor core
  • Sv32 MMU
  • L0 instruction/data caches and the shared L1 cache
  • Linux / X Window System support
  • 100Mbps Ethernet / VGA display / microSD card/ USB mouse / PS2 keyboard support

Getting started

Recommended environment: Ubuntu 18.04 LTS

1. Copy the disk image file(initmem.bin) to the microSD card.

Warning: This can potentially cause data loss. Please do this at your own risk.

$ dd if=initmem.bin of=/dev/[Device file name of your SD card]

2.Insert the microSD card into the FPGA board, and connect a USB mouse, VGA display, PS/2 keyboard and (optionally) an Ethernet cable to the FPGA board.

Connect the USB mouse to the built-in USB connector on the board. PS/2 keyboards can be connected to the board by inserting a Pmod PS2 into the lower part of the Pmod JB port. The default resolution of the display is 640x480.

3. Create a Vivado project and generate bitstream.

You can create a Vivado project with the following command

$ vivado -mode batch -source main.tcl

or by selecting main.tcl in Tools -> Run Tcl Script in Vivado GUI.

Then open main/main.xpr with Vivado.

You can also use the pre-built m_main.bit.

4. Configure the FPGA.

If you use RV-PC by connecting it to a host PC, you can perform JTAG configuration. If the RV-PC is to be used standalone, you have to perform Quad-SPI configuration.

Building the disk image file

The method of building the disk image file is almost the same as the one for RVSoC.
The only differences are:

  • Instead of rvsoc_patch.zip, devicetree_104mhz.zip and initmem_gen.zip, use the corresponding directories in diskimage/ in this repository.
  • Change the BBL configure option from --with-arch=rv32imac to --with-arch=rv32ima

You can use diskimage/run.sh.

License

RV-PC is released under the MIT License, see LICENSE.txt.

Other projects

RVSoC, a portable and Linux capable RISC-V computer system on an FPGA
RVCore, an optimized RISC-V soft processor of five-stage pipelining

rv-pc-riscv's People

Contributors

kazuki-hr 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.