Coder Social home page Coder Social logo

simplyfive's Introduction

simplyfive

This is a simple 32-bit RISC-V soft processor core implementation, specifically RV32I, in Verilog using nMigen. This is my first attempt at developing a modern CPU: please don't expect it to be perfect. It's a personal learning experience.

I hope to one day get it up to RV32G compatibility, or at least RV32IMAC so it can boot a proper operating system.

Todo

This is a work in progress. Here's what needs to be implemented:

  • Instruction fetch
  • Instruction decode
  • Instruction execution:
    • lui
    • auipc
    • jal
    • jalr
    • beq
    • bne
    • blt
    • bge
    • bltu
    • bgeu
    • lb
    • lh
    • lw
    • lbu
    • lhu
    • sb
    • sh
    • sw
    • addi
    • slti
    • sltiu
    • xori
    • ori
    • andi
    • slli
    • srli
    • srai
    • add
    • sub
    • sll
    • slt
    • sltu
    • xor
    • srl
    • sra
    • or
    • and
    • More to add to this list...
  • Memory and register writeback
  • Register file
  • Handling data, control, and other hazards
  • CSRs
  • Exceptions and interrupts
  • PMP and MMU
  • Supervisor and User modes
  • M, A, C extensions
  • Branch prediction
  • Instruction and data cache

Copyright, license, and contact

Copyright © Chris Williams, 2020. See LICENSE for distribution and use of source code and binaries.

Please email me if you have any questions or issues to raise, wish to get involved, have source to contribute, or have found a security flaw. You can, of course, submit pull requests or raise issues via GitHub, though please consider disclosing security-related matters privately. Please include simplyfive in the subject line if you do email in any case.

simplyfive's People

Contributors

diodesign avatar

Watchers

 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.