Sequential Specifications for Precise Hardware Exceptions
Yulun Yao, Drew Zagieboylo, Andrew C. Myers, G. Edward Suh
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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext f2dd6c62-82df-45fd-80cd-f7672cad5317Builds on5
- Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher et al.USENIX Security 2018 · 1,456 citations
- PDL: a high-level hardware design language for pipelined processorsDrew Zagieboylo, Charles Sherk, Gookwon Edward Suh, Andrew C. MyersPLDI 2022 · 9 citations
- Modular Hardware Design of Pipelined Circuits with HazardsMinseong Jang, Jungin Rhee, Woojin Lee, Shuangshuang Zhao et al.PLDI 2024 · 4 citations
- Wavefront Threading Enables Effective High-Level SynthesisBlake Pelton, Adam Sapek, Ken Eguro, Daniel Lo et al.PLDI 2024 · 4 citations
- Imprecise Store ExceptionsSiddharth Gupta, Yuanlong Li, Qingxuan Kang, Abhishek Bhattacharjee et al.ISCA 2023 · 4 citations
Related papers
- DiAG: a dataflow-inspired architecture for general-purpose processorsDong Kai Wang, Nam Sung KimASPLOS 2021 · 8 citations
- A Language Approach to Fine-Grained Microarchitectural ObservationGuokai Chen, Sergi Soler Arrufat, Clément Pit-Claudel, Thomas BourgeatOOPSLA 2026
- VerilogLAVD: LLM-Aided Pattern Generation for Verilog CWE DetectionXiang Long, Yingjie Xia, Li Kuang, Yao Wan et al.ACL 2026
- Wire sorts: a language abstraction for safe hardware compositionMichael Christensen, Timothy Sherwood, Jonathan Balkind, Ben HardekopfPLDI 2021 · 13 citations
- Modular Hardware Design with Timeline TypesRachit Nigam, Pedro Henrique Azevedo de Amorim, Adrian SampsonPLDI 2023 · 16 citations
