Skip to content

Softcore RISCV cpu implementation for python emulation, and Intel DE10-Lite FPGA

License

Notifications You must be signed in to change notification settings

kernyan/riscv_de10lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

riscv_de10lite

riscv uart implementation on de10 lite FPGA board

background

Part of project to build cpu chip to run KernOS

python emulation

  1. a python riscv emulator is first done to "extract" requirements for verilog implementation

FPGA components

  1. uart
  2. riscv cpu
  3. firmware

pins

  1. uart receive - PIN_V10 GPIO[0]
  2. uart transmit - PIN_W10 GPIO[1]

workflow

  1. Compile using riscv toolchain src/main.c into firmware.hex
  2. Compile using quartus toolchain riscv_cpu.v into riscv_cpu.sof
  3. Program using quartus across jtag into de10_lite board

compile

scripts/go.sh

limitations

  1. doesn't support floating point instructions
  2. doesn't support unaligned load/stores

todo

  1. reimplement uart module

reference

  1. geohot/tinygrad

About

Softcore RISCV cpu implementation for python emulation, and Intel DE10-Lite FPGA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published