Giter Club home page Giter Club logo

risc_v_single_cycle_processor's Introduction

RISC_V_Single_Cycle_Processor

My implementation of the 32-bit RISC-V Single Cycle Processor

Reference Textbook:
Digital Design and Computer Architecture: RISC-V Edition by Sarah L. Harris and David Harris

The Single Cycle Processor Design Specification:

image

Instructions implemented

Type Instructions Implemented
R ADD, SUB, SLL, SLT, SLTU, XOR, SRL, SRA, OR, AND ADD, SUB, SLT, SLTU, XOR, SRL, SRA, OR, AND
I JALR, LB, LH, LW, LBU, LHU, ADDI, SLTI, SLTIU, XORI, ORI, ANDI, SLLI, SRLI, SRAI LB, LH, LW, LBU, LHU, ADDI, SLTI, SLTIU, XORI, ORI, ANDI, SLLI, SRLI, SRAI
S SB, SH, SW SB, SH, SW
B BEQ, BNE, BLT, BGE, BLTU, BGEU BEQ
U LUI, AUIPC LUI, AUIPC
J JAL

(25 instructions work currently) (~ JALR, BNE, BLT, BGE, BLTU, BGEU, JAL)

Directory Structure

├── LICENSE
├── README.md
├── rtl
│   ├── ALU_decoder.v
│   ├── ALU_Mux.v
│   ├── ALU.v
│   ├── ALU.v~
│   ├── Control_Unit.v
│   ├── Core_Datapath.v
│   ├── Data_Memory.v
│   ├── Extend.v
│   ├── Instruction_Memory.v
│   ├── Main_Decoder.v
│   ├── PC_Mux.v
│   ├── PC_Plus_4.v
│   ├── PC_Target.v
│   ├── PC.v
│   ├── Register_File.v
│   ├── Result_Mux.v
│   ├── Single_Cycle_Core.v
│   └── Single_Cycle_Top.v
└── tb
    ├── ALU_Decoder_tb.v
    ├── ALU_Mux_tb.v
    ├── ALU_tb.v
    ├── Control_Unit_tb.v
    ├── Core_Datapath_tb.v
    ├── Data_Memory_tb.v
    ├── Extend_tb.v
    ├── Instruction_Memory_tb.v
    ├── Main_Decoder_tb.v
    ├── PC_Mux_tb.v
    ├── PCPlus4_tb.v
    ├── PC_Target_tb.v
    ├── PC_tb.v
    ├── Register_File_tb.v
    ├── Register_tb.v
    ├── Result_Mux_tb.v
    ├── Single_Cycle_Core_tb.v
    └── Single_Cycle_TB.v

risc_v_single_cycle_processor's People

Contributors

govardhnn avatar

Stargazers

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