Git Product home page Git Product logo

riscv-core's Introduction

RISCV CORE - RV32I

RISC-V CPU Design using TL-Verilog in Makerchip IDE :

  • Design of a simple 32-bit RISC-V CPU using the base instruction set, RV32I (+5 stage pipeline).
  • Hardware description was done with TL-Verilog(Transaction Level Verilog) using Makerchip IDE, which gives a better sense of timing abstraction.
  • You can simulate this RISC-V processors on Linux using GCC Compiler toolchain and iVerilog tool, using Verilog output of Makerchip IDE.
  • Updates and new features will be added to the CPU; this file is a simple base microprocessor.

Verilog output and simulations

  • This repository includes Verilog files for macros used in TL-Verilog code and the main CPU code("RV32I CORE - Verilog" folder).
  • System-Verilog is also supported in Makerchip IDE; so you can add other functions to the CPU TL-Verilog file in repository.
  • You can use the .v output to run C codes on the cpu using iverilog software in Linux.

Program simulations

  • This RISC-V CPU executes a simple code in C (using iverilog software in Linux) as an example task.
  • You can see RISC-V assembly instructions running on the CPU in VIZ tab in Makerchip IDE after compiling the code.
  • The code is "sum of 1 to n" for n=100. It takes 561 clock cycles for 304 instructions, which gives us a CPI near 1.8 (close to standard RISC processors, nearly 1.4).
  • You can use run.sh to install RISC-V toolchain and GCC compiler. You need to install GCC compiler before running this shell-script(32/64bit). By using this toolchain you can compile C codes for RISC-V CPU to simulate them on iverilog software. You can also checkout assembly output of your code and use them for ABI.
  • picoRV32.v and testbench.v is an example code of RV32I processor in Verilog. You can check out the original repository in : https://github.com/YosysHQ/picorv32

Arvin Delavari - Faraz Ghoreishy / Iran University of Science and Technology

riscv-core's People

Contributors

arvindelavari avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rusoku

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.