anozaki / riscv-r32i-sim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

riscv simulation

I'm playing around with different simulator and language based VLD/Verilog. This is my attempt at getting RISC-V running on these different platform.

I've played with the following simulator so far.

Some future thing I would like to play with...

  • Simulator
    • VHDL - maybe add into Digital/Logisim
    • Verilog - to learn both world
  • Hardware
    • FPGA - Intel Cyclone V (Analague Pocket)
    • FPGA - iCE40 HX (Alchitry Cu)

Platforms

Digital

TODO

  • Pros
    • Pretty accurate simulation
    • Lot of components
    • Fast
    • Debug/Test interface
  • Cons
    • Interface does not feel natural
    • Little-bit of learning curve to get going

Logisim Evolution

TODO

  • Pros
    • Decent UI interface
    • Lot of components
    • Debug tools are great
  • Cons
    • Always running does make things hard at times

Turing Complete

  • r32i implementation
    • 32 registers (x0 to x31)

TODO

  • Pros
    • Easy to get started
    • UI interface is pretty smooth
    • Mouse interaction feels pretty natural
  • Cons
    • Simplifies circuit quite a bit
    • Limited components
    • Limited interaction with advanced component
    • Have to place wire everywhere (no tunnel)

Toolchain

Easiest is to use xpack and install the gcc toolchain.

xpm install

https://xpack.github.io/riscv-none-elf-gcc/

Compile

mkdir build
cd build
cmake ..
make

Acknowledgement/Resources

Some resource I used to get this project up and running.

About

License:MIT License


Languages

Language:Verilog 48.6%Language:VHDL 19.4%Language:Tcl 13.4%Language:Shell 13.0%Language:Stata 2.4%Language:CMake 2.0%Language:Python 0.6%Language:C 0.4%Language:Assembly 0.3%Language:Fortran 0.0%