Go to file
Yu Jin 503f84cf39 fix&chore: litex ci, build 2025-07-26 20:50:49 +08:00
.github/workflows fix&chore: litex ci, build 2025-07-26 20:50:49 +08:00
abstract-machine chore&feat: 1 cycle mul/div, optim pipe(load), pmu 2025-07-22 13:30:35 +08:00
docs feat: nemu rvc support, diff using upstream spike 2025-07-16 22:57:14 +08:00
fpga fix&chore: litex ci, build 2025-07-26 20:50:49 +08:00
nanos-lite feat: boot openSBI, Linux, pa4 2025-04-21 22:33:00 +08:00
navy-apps feat: pa4.2 2025-01-14 14:40:33 +08:00
nemu fix&chore: litex ci, build 2025-07-26 20:50:49 +08:00
nsim fix&chore: litex ci, build 2025-07-26 20:50:49 +08:00
rtl_scala feat: rsb of bpu, atomic extension 2025-07-20 08:31:49 +08:00
rtl_sv fix&chore: litex ci, build 2025-07-26 20:50:49 +08:00
.gitignore fix&chore: litex ci, build 2025-07-26 20:50:49 +08:00
Dockerfile feat: rv32c support, decouple l1i$ fetch&hit 2025-07-18 06:09:27 +08:00
Makefile docs&build: npc 2025-05-20 14:54:27 +08:00
README.md fix&chore: litex ci, build 2025-07-26 20:50:49 +08:00
env.sh fix&chore: litex ci, build 2025-07-26 20:50:49 +08:00
setup.sh fix&chore: litex ci, build 2025-07-26 20:50:49 +08:00

README.md

Raptor Project

build & eval Ubuntu macOS Github

New Processor Core (NPC) with RISC-V ISA. Hardware generation is done using SystemVerilog and Chisel (Scala).

Candidate ip core name: raptor-0.1.0-falcon (rt-f).

Microarchitecture

Core Documentation

Build Setup

Suggest install tmux for better terminal management. [surfer]1 for wave viewer. [colima]2 for Linux container.

./setup.sh

# Optional: install espresso if you need
wget https://github.com/chipsalliance/espresso/releases/download/v2.4/arm64-apple-macos11-espresso

Build and Run

# 0. environment variables at project root directory
source ./env.sh

# 1. build and run NEMU
cd $NEMU_HOME && make riscv32_linux_defconfig && make && make run

# 2. build and run NPC
cd $NSIM_HOME/ssrc && make verilog
cd $NSIM_HOME && make menuconfig && make ARCH=riscv32e-npc run

# 3. build and run the program you want

## n. running nanos-lite on nemu
cd $NAVY_HOME && make ISA=$ISA fsimg
cd $NAVY_HOME/apps/menu && make ISA=$ISA install
cd $YSYX_HOME/nanos-lite && make ARCH=$ISA-nemu update run
cd $YSYX_HOME/nanos-lite && make ARCH=$ISA-nemu run
## n.vme running nanos-lite on nemu with VME
cd $YSYX_HOME/nanos-lite && make ARCH=$ISA-nemu update run FLAGS="-b" VME=1

## n+1. running busybox on nemu (Linux required)
cd $NAVY_HOME/apps/busybox && colima ssh # login to Linux container
make ARCH=riscv32-nemu install

## 2n. running microbench/coremark on npc
cd $YSYX_HOME/am-kernels/benchmarks/coremark && \
    make ARCH=riscv32e-npc run FLAGS="-b -n"
cd $YSYX_HOME/am-kernels/benchmarks/microbench && \
    make ARCH=riscv32e-npc run FLAGS="-b -n"
# FLAGS="-b -n" is optional, -b is for batch mode, -n is for no wave trace

## fpga. running on gowin-tang-nano-20k
### follow `fpga/gowin-tang-nano-20k/README.md`

## package all sv files into one
cd nsim && make pack

Run OpenSBI & Linux Kernel

See Linux Kernel

Reference