How pulp-platform/croc works
Croc is an educational RISC-V system-on-chip, with a CVE2-based compute domain and an extensible user domain. Its principal use path is software running on the core, accessing memory-mapped peripherals over OBI and communicating through UART; JTAG is the documented boot mechanism. The graph also preserves the documented debug, timer, GPIO, DMA, SRAM, and user-domain capabilities. Hardware connections are based on the README’s architecture and memory map; most RTL was not excerpted, so internal wiring beyond those statements is not asserted.
Main entry points: obi_xbar.sv OBI interconnect · croc_domain.sv Croc domain · uart.c UART driver · croc_soc.sv Croc SoC
Components 22
Compute and memory
- Croc domain
rtl/croc_domain.sv - Core wrapper
rtl/core_wrap.sv - CVE2 core
rtl/cve2/cve2_core.sv - SRAM banks
rtl/tech_cells_generic/tc_sram_impl.sv
SoC connectivity
- Croc SoC
rtl/croc_soc.sv - OBI interconnect
rtl/obi/obi_xbar.sv - User domain
rtl/user_domain.sv
Memory-mapped peripherals
- JTAG debug
rtl/riscv-dbg/dm_top.sv - Boot ROM
rtl/bootrom/bootrom.sv - CLINT
rtl/clint/clint.sv - SoC control
rtl/soc_ctrl/soc_ctrl_regs.sv - UART
rtl/obi_uart/obi_uart.sv - GPIO
rtl/gpio/gpio.sv - OBI timer
rtl/obi_timer/obi_timer.sv - Optional DMA
rtl/idma/croc_idma.sv
Firmware interfaces
- UART driver
sw/lib/src/uart.c - Print library
sw/lib/src/print.c - CLINT driver
sw/lib/src/clint.c - GPIO driver
sw/lib/src/gpio.c - Timer driver
sw/lib/src/obi_timer.c - DMA driver
sw/lib/src/idma.c
Other components
- Firmware
sw/helloworld.c
Connections 21
- Firmware → UART driver: initializes and writes
sw/helloworld.c - Firmware → Print library: formats output
sw/helloworld.c - Print library → UART driver: writes characters
sw/lib/src/uart.c - UART driver → UART: accesses registers
- CLINT driver → CLINT: accesses registers
- GPIO driver → GPIO: accesses registers
- Timer driver → OBI timer: accesses registers
- DMA driver → Optional DMA: accesses registers
- Croc SoC → Croc domain: includes domain
README.md - Croc SoC → User domain: connects domains
README.md - Croc domain → CVE2 core: contains core
README.md - Croc domain → SRAM banks: contains SRAM
README.md - Croc domain → OBI interconnect: uses interconnect
README.md - OBI interconnect → JTAG debug: routes address map
README.md - OBI interconnect → Boot ROM: routes address map
README.md - OBI interconnect → CLINT: routes address map
README.md - OBI interconnect → SoC control: routes address map
README.md - OBI interconnect → UART: routes address map
README.md - OBI interconnect → GPIO: routes address map
README.md - OBI interconnect → OBI timer: routes address map
README.md - OBI interconnect → Optional DMA: routes address map
README.md