Skip to content

j999yp/riscv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple risc-v core by j999yp

  • 仅实现了RV32I指令集
  • 五级流水线(Fetch, Decode, Excute, Memory Access, Write Back)
  • 简单的分支预测(Fetch阶段实现)
branch taken should branch nop
2
× 5
× 5
× × 0
  • 指令和数据存放在同一内存里(冯诺依曼结构),包含指令读取接口、数据读取接口、数据存储接口,三者都为sync
  • Fetch使用三个时钟周期(fu---pc--->mem, mem---inst--->inst_buffer, inst_buffer---inst--->du)
  • Memory Access使用两个时钟周期(ex---addr--->mem, mem---data--->ma)
  • 实现了ex->ex, ma->ex, wb->ex的bypassing,不会导致流水线中断
  • 使用iverilog仿真,留出内存接口方便verilator仿真
  • 通过riscof合规性测试

参考文档

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published