arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.22267cs.AR
收藏

Aquas: 通过基于MLIR的全面硬件软件协同优化提升领域专业化

Aquas: Enhancing Domain Specialization through Holistic Hardware-Software Co-Optimization based on MLIR

Peking University(北京大学)

Yuyang Zou, Youwei Xiao, Chenyun Yin, Yansong Xu, Yuhao Luo, Yitian Sun, Ruifan Xu, Renze Chen, Yun Liang

AI总结:

Aquas基于MLIR提出全面硬件软件协同设计框架,解决内存接口优化和定制指令扩展复杂性问题,通过内存接口模型和e-graph编译器实现高效加速,案例研究表明在四个领域实现高达15.61倍的加速性能。

摘要:

应用专用指令集处理器(ASIPs)基于RISC-V架构为各种应用提供专业化机会。现有框架大多围绕固定指令扩展接口设计,并依赖手动软件调整。然而,随着新兴领域复杂性增加,出现两大挑战:首先,内存访问仍是主要瓶颈,现有设计流程缺乏内存接口的架构意识,导致接口选择和 orchestration 不够优化。其次,定制指令扩展的语义复杂性,表现为非平凡的控制逻辑和不规则内存行为,阻碍传统编译器进行自动化和全面的卸载。我们提出Aquas,一个基于MLIR的全面硬件软件协同设计框架。Aquas提出一个内存接口模型,同时考虑接口特性和缓存效应,并基于此模型的接口感知合成流程,逐步优化输入规范并生成高效硬件实现。我们还提出基于e-graph的可重定向编译器方法,具有新的匹配引擎以实现高效的指令映射和卸载,使定制指令能力的使用更加稳健和有效。四个不同领域的案例研究显示,Aquas实现了显著的加速,达到最高15.61倍的加速,14.5%的面积开销和零频率退化,证明在领域加速方面比更强大的通用核心和向量扩展具有高度竞争力。

英文摘要:

Application-Specific Instruction-Set Processors (ASIPs) built on the RISC-V architecture offer specialization opportunities for various applications. Existing frameworks are largely designed around fixed instruction extension interfaces and rely on manual software adaptation. However, as emerging domains scale up in complexity, two major challenges arise. First, memory access remains a primary bottleneck as existing design flows lack architectural awareness of memory interfaces, leading to suboptimal interface selection and orchestration. Second, the semantic complexity of custom instruction extensions, characterized by non-trivial control logic and irregular memory behaviors, hinders the ability of conventional compilers to perform automated and comprehensive offloading. We present Aquas, a holistic hardware-software co-design framework built upon MLIR. Aquas proposes a memory interface model that jointly considers interface characteristics and cache effects, along with an interface-aware synthesis flow guided by this model that progressively optimizes the input specification and generates efficient hardware implementations. We also propose an e-graph-based retargetable compiler approach with a novel matching engine for efficient instruction mapping and offloading, enabling robust and effective utilization of custom instruction capabilities. Case studies across four diverse domains show that Aquas delivers substantial acceleration, achieving up to 15.61x speedup with 14.5% area overhead and zero frequency degradation, proving highly competitive in domain acceleration against more powerful general-purpose cores and vector extensions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑