paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Sequential Specifications for Precise Hardware Exceptions

面向精确硬件异常的串行规约
ASPLOS Proceedings of the 31st ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 12025匹配度 2/10 · 该论文研究硬件描述语言 PDL 的扩展,用于从高层串行规约综合出支持精确异常的流水线,属于语言与体系结构/编译代码生成方向,与用户关注的静态分析、LLM/Agent、浮点程序分析和贝叶斯程序分析均无直接关联。引用 1 inbox
Yulun Yao, Drew Zagieboylo, Andrew C. Myers, G. Edward Suh
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:提出 XPDL 语言扩展,可由高层串行规约自动综合出支持陷阱与中断的精确异常流水线实现。

现代处理器因流水线而天然并行,实现困难。PDL 等硬件描述语言提出将高层串行规约编译为高效流水线实现,从而简化设计空间探索与推理,但此前工作不支持操作系统所需的硬件异常(陷阱、中断)。这类特性本质上是非串行的,往往需要冲刷流水线、写控制状态寄存器(CSR)或复位流水线状态,难以给出串行规约。本文提出 XPDL,扩展 PDL 以支持硬件异常,使精确异常的处理逻辑可从高层规约综合得到,同时保持 PDL 的优良性质。作者用 RISC-V 处理器设计进行评估,表明 XPDL 能灵活支持各类异常,对 CPI 没有影响,在频率和面积上仅有少量开销,并论证其实现保持了 PDL 的“一次一条指令”语义。

问题
PDL 这类从串行规约综合流水线硬件的方案无法表达操作系统必需的硬件异常(陷阱、中断),因为异常本质上是非串行的,需要冲刷流水线、写 CSR 或复位流水线状态。
方法
提出 XPDL,对 PDL 进行语言扩展,使精确异常的流水线处理逻辑可以从高层串行规约中综合出来,并论证其保持 PDL 的一次一条指令语义。
评估
在 RISC-V 处理器设计上实现并测试,结果显示 XPDL 可灵活支持异常,不增加 CPI,频率与面积开销很小。
原文摘要(Abstract)

Modern processors are difficult to implement because pipelining makes them inherently parallel. A promising new approach, demonstrated in the PDL hardware description language, is to compile a high-level sequential specification into an efficient pipelined implementation. This high-level approach makes design-space exploration and reasoning easier. However, previous work on this approach does not support features needed for operating systems: hardware exceptions like traps and interrupts. The inherently non-sequential nature of these features makes it challenging to give them a sequential specification. They often require flushing the pipeline, writing to control state registers (CSRs), or resetting pipeline state. In this work, we develop XPDL, which extends PDL to support hardware exceptions. With this extension, logic for precise exceptions can be synthesized from a high-level specification, while maintaining the appealing properties of PDL. Using RISC-V processor designs, we demonstrate that XPDL flexibly supports exceptions with no impact on CPI (Cycles per Instructions), and minor overhead over frequency and area, and argue that the implementation preserves the one-instruction-at-a-time semantics of PDL.

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@inproceedings{YaoZMS26,
  title = {Sequential Specifications for Precise Hardware Exceptions},
  author = {Yulun Yao and Drew Zagieboylo and Andrew C. Myers and G. Edward Suh},
  booktitle = {ASPLOS},
  year = {2025},
  doi = {10.1145/3760250.3762233}
}