Coder Social home page Coder Social logo

nobotro / fpga_riscv_cpu Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 2.0 99.67 MB

fpga verilog risc-v rv32i cpu

License: MIT License

Stata 0.47% HTML 17.31% Verilog 44.45% Standard ML 0.02% Scheme 0.24% SystemVerilog 2.09% Mathematica 0.21% HLSL 2.44% VHDL 0.22% Tcl 17.11% Shell 15.02% C 0.13% Python 0.25% Assembly 0.03%
risc-v riscv fpga-soc fpga-risc-v verilog rv32i rom-execution fpga altera quartus

fpga_riscv_cpu's Introduction

Note!!!

I have fixed some bugs on this cpu core.
please use more stable core from that repo https://github.com/nobotro/Risc-v-chip8

fpga_riscv_cpu

This repository contains an extremely simple implementation of the RV32I ISA. The project is entirely academic, it does not aim to be competitive against complex implementations. The rationale behind it was basically learning about RISC-V, the ISA, and processor design in general. If you want to deploy a RISC-V core, I strongly recommend using a fully-featured and tested core instead.

Current Design

  • Entirely written in Verilog.
  • Every opcode need one clock cycle to execute, except memory operations(store/load).
  • Used 1 port block ram ip for memory inteface
  • Not designed with multiple RISC-V harts .
  • The privileged ISA is not implemented.
  • FENCE, FENCE.I and CSR instructions are not implemented.

User Guide

  • "whole quartus project" directory contains Quartus 18.1 lite project file.
  • "extra" directory contains utils to compile c program rom and generate memory configuration ".mif" file from it.
    all.sh is main tool which make all stuffs(compile c code,generate mif file)
  • led2.c is rom which function is to write number from 0 to 15 in memory address 32. 32 is memory mapped io address,which is used to control leds and 7 segment display
  • rom.mif file is already generated memory configuration file from led2.c

Soc Demonstration

https://www.youtube.com/watch?v=oh5zmDeH0jg

fpga_riscv_cpu's People

Contributors

nobotro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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