How virochanmourya/coreaccel-v works
CoreAccel-V is an FPGA RISC-V SoC demonstrated as a real-time ECG monitor. The main workflow samples an external ADC, filters the signal and detects/classifies beats in firmware, sends ECG/BPM/status telemetry over UART, and displays it in a host GUI. The graph also includes the documented CPU pipeline, DSP/MAC, TCM, and FPGA peripherals. Firmware excerpts show the active ECG processing and telemetry path; most RTL implementation details were not sampled, so their internal connections are omitted.
Main entry points: cpu_pipeline_top.sv RV32I Pipeline · main.c ECG Processing And Classification · mac_unit.sv DSP MAC · ads1115_driver.c ADC I2C Driver
Components 22
SoC RTL
- RV32I Pipeline
rtl/cpu_pipeline_top.sv - Pipeline Control
rtl/control_unit_pipe.sv - Hazard And Forwarding
rtl/hazard_detection_unit.sv - DSP MAC
rtl/mac_unit.sv - Tightly Coupled Memory
rtl/tcm_ram.sv - Instruction Memory
rtl/instruction_memory_pipe.sv - Data Memory
rtl/data_memory.sv - GPIO Peripheral
rtl/cpu_pipeline_top.sv - UART Transmitter
rtl/uart_tx.sv - Seven-Segment Display
rtl/seg_display.sv
Firmware
- ECG Processing And Classification
firmware/main.c - ADC I2C Driver
firmware/ads1115_driver.c - GPIO I2C Helpers
firmware/gpio.h - MAC Intrinsics
firmware/mac_intrinsics.h - UART Telemetry Driver
firmware/uart_driver.c - Display Driver
firmware/seg_driver.c
Host Monitor
- Serial Reader
gui/ecg_monitor.py - ECG Visualization And Status
gui/ecg_monitor.py
External I/O
- ECG Front End
- ADS1115 ADC
- Monitor User
- Host UART
Connections 21
- ECG Front End → ADS1115 ADC: analog signal
README.md - ADS1115 ADC → ADC I2C Driver: converts samples
- ECG Processing And Classification → ADC I2C Driver: reads samples
firmware/main.c - ADC I2C Driver → GPIO I2C Helpers: bit-bangs I2C
firmware/ads1115_driver.c - ECG Processing And Classification → ECG Processing And Classification: filters and classifies
firmware/main.c - ECG Processing And Classification → UART Telemetry Driver: sends ECG and status
firmware/main.c - ECG Processing And Classification → Display Driver: updates BPM display
firmware/main.c - UART Telemetry Driver → UART Transmitter: writes MMIO
firmware/uart_driver.c - Display Driver → Seven-Segment Display: writes MMIO
firmware/seg_driver.c - GPIO I2C Helpers → GPIO Peripheral: writes MMIO
firmware/gpio.h - UART Transmitter → Host UART: transmits telemetry
README.md - Host UART → Serial Reader: streams data
README.md - Serial Reader → ECG Visualization And Status: emits parsed samples
gui/ecg_monitor.py - ECG Visualization And Status → Monitor User: visualizes waveform and status
README.md - RV32I Pipeline → Pipeline Control: runs pipeline control
README.md - RV32I Pipeline → Hazard And Forwarding: uses forwarding and hazard detection
README.md - RV32I Pipeline → DSP MAC: dispatches custom DSP operations
README.md - DSP MAC → Tightly Coupled Memory: streams weights
README.md - RV32I Pipeline → Instruction Memory: fetches instructions
README.md - RV32I Pipeline → Data Memory: accesses data
README.md - MAC Intrinsics → DSP MAC: encodes custom instructions