APS - Agile Processor Specialization
Open-Source Hardware-Software Co-Design Framework for RISC-V ISAXs
News
-
2026-09-23 —
ScaleISA is accepted to ASPLOS 2027
Our work on customizing scalable instructions has been accepted to ASPLOS 2027. -
2026-07-11 —
Aquas is accepted to ICCAD 2026
Our work on enhancing domain specialization through holistic hardware-software co-optimization has been accepted to ICCAD 2026.
What is APS?
APS (Agile Processor Specialization) is an open-source framework for agile hardware-software co-design of domain-specific processors. It covers instruction finding, hardware synthesis, software compilation, and architecture integration for instruction-set extensions (ISAXs) on RISC-V platforms.
APS is both open-source and fully integrated, enhancing productivity across all audiences in hardware design and adoption for domain-specific acceleration.
APS’s Ecosystem
APS aims to build a comprehensive ecosystem based on the MLIR infrastructure, covering the entire hardware-software co-design flow. Our ultimate vision is to only take applications in the target domain as the inputs, and automatically generate the complete solution artifacts comprising optimized ISAXs, architecture designs, hardware implementation, and software stacks without any manual intervention.
Applications and instruction descriptions connect to hardware and software generation through the APS ecosystem.
Current Capabilities
- Instruction finding — ISAMORE / ScaleISA: Discover reusable custom instructions from application MLIR and select implementations under area and timing constraints. The APS ScaleISA driver connects discovery and selection to hardware and software generation.
- Hardware synthesis — Aquas: Lower CADL descriptions or adapted ScaleISA kernels through APS, scheduled TOR, CMT2, and FIRRTL to SystemVerilog. The flow includes loop transformations, array partitioning, SDC scheduling, and packaged BF16/FP32 hardware through HardFloat.
- Software compilation: Megg uses e-graph matching to compile applications against supplied CADL instructions. The ScaleISA software compiler lowers selected instruction calls to RV32 code with matching instruction encodings, operands, and CSR bindings.
- Architecture integration: Model memory bandwidth, latency, and outstanding requests; generate banked scratchpads and DMA adapters; and export matching accelerator RTL and Rocket/RoCC configuration. The native configuration exporter currently targets RV32 with one core.
- Validation and evaluation: Run compiled programs with generated accelerator RTL using Spike + Verilator, with independent software references for output validation. Full Rocket simulation provides processor-cycle measurements; selection-model estimates and accelerator cycles describe separate aspects of performance.
Explore the research areas for details and the publications for the research behind these components.
Get Started
# Clone the repository
git clone https://github.com/pku-liang/aps-mlir.git
cd aps-mlir
# Build the toolchain, including the ScaleISA release engine
pixi run build
# Set up Chipyard for Rocket integration
pixi run setup-chipyard
Follow the Documentation for installation and first-use workflows, or explore the APS repository. The examples index includes CADL, Megg, tutorial, and application-driven ScaleISA examples.
We hold tutorials to help new users get started with APS. See the Tutorial page for materials and event details.