Coder Social home page Coder Social logo

ironmanfan / xiangshan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openxiangshan/xiangshan

0.0 0.0 0.0 13.5 MB

Open-source high-performance RISC-V processor

Makefile 0.90% Scala 65.79% Tcl 15.29% Verilog 6.22% SystemVerilog 0.42% C 1.94% Python 3.52% C++ 5.84% Shell 0.09%

xiangshan's Introduction

XiangShan

XiangShan is an open-source high-performance RISC-V processor.

NOTE: XiangShan has not been officially released to the public open-source community. License and docs to be added later.

Copyright 2020-2021 by Institute of Computing Technology, Chinese Academy of Sciences.

Prepare environment

  • Set environment variable NEMU_HOME to the absolute path of the NEMU project.
  • Set environment variable NOOP_HOME to the absolute path of the XiangShan project.
  • Set environment variable AM_HOME to the absolute path of the AM project.
  • Install mill. Refer to the Manual section in this guide.
  • Run make init to initialize submodules.

Run simulation

  • Install Verilator, the open-source Verilog simulator.
  • Run make emu to build the C++ simulator ./build/emu with Verilator.
  • Refer to ./build/emu --help for run-time arguments of the simulator.
  • Refer to Makefile and verilator.mk for more information.

Example:

make emu CONFIG=MinimalConfig SIM_ARGS=--disable-log EMU_THREADS=2 -j10
./build/emu -b 0 -e 0 -i $AM_HOME/apps/coremark/build/coremark-riscv64-noop.bin

Generate Verilog

  • Run make verilog to generate verilog code. The output file is build/XSTop.v.
  • Refer to Makefile for more information.

xiangshan's People

Contributors

poemonsense avatar ljwljwljwljw avatar sashimi-yzh avatar augustuswilliswang avatar lemover avatar lingrui98 avatar njuallen avatar jinyue110 avatar linjuanz avatar zoujr avatar wakafa1 avatar fwzhang avatar yikezhou avatar bigwhitedog avatar wonicon avatar ict-tangdan avatar sequencer avatar sktt1ryze 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.