This is the code repository for RISC-V Architecture and DSP Processor Design, First Edition, published by Packt.
Zhang Zhiwei
RISC-V is reshaping processor innovation with its open and extensible instruction set architecture. But how are high-performance RISC-V digital signal processors (DSPs) designed in practice? This book explores that question through SpringCore, a RISC-V DSP architecture developed for real-time embedded control systems. Using SpringCore as a case study, the book introduces the architecture of a modern DSP processor and explains key digital design techniques used in its implementation. You will explore DSP architecture concepts, design custom ISA extensions for fixed-point and floating-point acceleration, and examine an 8-stage pipelined processor with hazard handling, zero-overhead loops, Harvard memory architecture, protection mechanisms, and interrupt handling. The book also covers the surrounding software ecosystem, including an LLVM-based toolchain, debugging with OpenOCD and JTAG, development with an Eclipse-based IDE, and simulation support using tools such as gem5. Finally, it demonstrates how the SpringCore architecture is implemented in the FDM320RV335 DSP chip, which runs at 150 MHz and integrates peripherals such as an ADC and a PWM for real-time industrial control. By the end, you will understand key DSP hardware architecture and custom ISA design principles through the practical example of SpringCore.
- Understand DSP design principles and the RISC-V architecture
- Design custom ISA extensions for DSP acceleration
- Build an 8-stage pipelined RISC-V processor
- Implement high-performance MAC and multiplier units
- Design Harvard memory systems with protection mechanisms
- Optimize interrupt handling for real-time control
- Extend the LLVM backend for the SpringCore processor
- Develop software using Eclipse IDE and OpenOCD debugging
- Introduction to Digital Signal Processors
- RISC-V Architecture
- SpringCore Architecture
- SpringCore Pipeline Design
- Memory Access Structure
- Arithmetic Units
- Exception and Interrupt Mechnasims
- Debugging Unit Design
- Software Development Environment
- SpringCore-based DSP Chips
Zhang Zhiwei Zhang Zhiwei is a Ph.D., Researcher, and Doctoral Supervisor at the Institute of Automation, Chinese Academy of Sciences (CAS). He serves as Deputy Director of the National Engineering Research Center for Specialized IC Design and leads the Digital Signal Processor research group. With nearly 20 years of experience in DSP architecture and chip development, he has led more than 10 national-level semiconductor projects. His expertise spans DSP microarchitecture, high-performance processor design, and physical implementation, with multiple products deployed at scale.