Skip to content

My implementation of the RISC-V Single Cycle Processor, based on the Textbook - Digital Design and Computer Architecture: RISC-V Edition by Sarah Harris and David Harris

License

Notifications You must be signed in to change notification settings

govardhnn/RISC_V_Single_Cycle_Processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

My implementation of the RISC-V Single Cycle Processor, based on the Textbook - Digital Design and Computer Architecture: RISC-V Edition by Sarah Harris and David Harris

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published