arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.13659cs.PLcs.AR
收藏

将硬件通信规范为程序

Specifying Hardware Communication as Programs

Cornell University(康奈尔大学)

Ernest Ng, Nikil V. Shyamsunder, Francis Pham, Adrian Sampson, Kevin Laeufer

AI总结:

提出一种DSL,将硬件通信协议规范为简洁的命令式程序,同一规范可用于驱动设计和监控事务,并自动从波形推断事务级跟踪。

摘要:

为了测试和调试硬件模块,通常需要编写两个程序:驱动程序,它将高级事务转换为模块输入和输出信号上的交互;以及监视器,它分析信号级执行轨迹并识别事务。这两个程序通常针对每个硬件协议单独实现,但这种分离需要手动工作并存在不一致的风险。我们提倡一种替代方法。我们提出一种DSL,用户在其中将硬件通信协议规范为简洁的命令式程序。关键在于,同一规范既可用于驱动设计,也可用于监控事务。我们介绍了一个工具的设计,该工具给定我们的DSL中的规范和波形,自动推断与波形一致的事务级跟踪。我们讨论了在真实世界互连(如Wishbone和AXI-Stream)上评估我们的DSL的计划。

英文摘要:

To test and debug hardware modules, it is common to write two programs. A driver maps high-level transactions to cycle-level I/O behavior, and a monitor looks at the low-level I/O trace and recovers transactions. Both programs bridge the same abstraction gap between RTL and functional models. Writing them separately risks inconsistency. ProtoLang is a DSL for specifying hardware protocols. The same ProtoLang program can both drive and monitor transactions. Users specify RTL communication protocols as succinct imperative programs. We present a novel reconstructor algorithm that, given a ProtoLang specification and a waveform, automatically infers a transaction-level trace consistent with the waveform. We demonstrate ProtoLang's utility via case studies focusing on the Wishbone and AXI-Stream interconnects, showing that ProtoLang can model complex protocol features such as burst mode. We highlight how our tools can identify protocol violation bugs in real-world implementations.

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

↑