arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.08198cs.ARcs.PF
收藏

面向高层次综合的具有推测性分配的高频加载-存储队列

A High-Frequency Load-Store Queue with Speculative Allocations for High-Level Synthesis

Robert Szafarczyk, Syed Waqar Nabi, Wim Vanderbauwhede

AI总结:

本文提出一种基于移位寄存器的新型加载-存储队列,通过推测性地址分配提升动态调度HLS的流水线并行性,无需流水线重放,平均加速11倍(vs静态)和5倍(vs动态),且资源使用更少。

摘要:

动态调度的高层次综合(HLS)能够使用加载-存储队列(LSQ),这些队列可以在电路运行时消除数据冒险,从而提高具有不可预测内存访问的代码的吞吐量。然而,与没有LSQ的静态调度电路相比,吞吐量的提高是以较低的时钟频率和更高的资源使用为代价的。较低的频率常常抵消了相对于静态调度的任何吞吐量改进,而资源使用在大队列规模下变得过于昂贵。本文提出了一种在HLS中实现动态调度内存操作的方法,而不会显著增加时钟周期和资源使用。我们提出了一种基于移位寄存器的新型LSQ,利用HLS中可以将队列大小专门化到目标代码的机会。我们展示了一种将地址推测性分配到我们的LSQ的方法,显著提高了以前无法从LSQ中受益的代码中的流水线并行性。与传统的加载值推测形成鲜明对比的是,我们不需要流水线重放,并且在推测错误时没有开销。在一组具有数据冒险的基准测试中,我们的方法相对于静态HLS实现了平均11倍的加速,相对于使用先前工作中最先进的LSQ的动态HLS实现了5倍的加速。我们的LSQ还使用了几倍少的资源,可扩展到具有数百个条目的队列,并支持片上和片外内存。

英文摘要:

Dynamically scheduled high-level synthesis (HLS) enables the use of load-store queues (LSQs) which can disambiguate data hazards at circuit runtime, increasing throughput in codes with unpredictable memory accesses. However, the increased throughput comes at the price of lower clock frequency and higher resource usage compared to statically scheduled circuits without LSQs. The lower frequency often nullifies any throughput improvements over static scheduling, while the resource usage becomes prohibitively expensive with large queue sizes. This paper presents a method for achieving dynamically scheduled memory operations in HLS without significant clock period and resource usage increase. We present a novel LSQ based on shift-registers enabled by the opportunity to specialize queue sizes to a target code in HLS. We show a method to speculatively allocate addresses to our LSQ, significantly increasing pipeline parallelism in codes that could not benefit from an LSQ before. In stark contrast to traditional load value speculation, we do not require pipeline replays and have no overhead on misspeculation. On a set of benchmarks with data hazards, our approach achieves an average speedup of 11$\times$ against static HLS and 5$\times$ against dynamic HLS that uses a state of the art LSQ from previous work. Our LSQ also uses several times fewer resources, scaling to queues with hundreds of entries, and supports both on-chip and off-chip memory.

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

↑