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

数据包处理流水线的高级综合

High-Level Synthesis for Packet-Processing Pipelines

Xiangyu Gao, Divya Raghunathan, Ruijie Fang, Tao Wang, Xiaotong Zhu, Anirudh Sivaraman, Srinivas Narayana, Aarti Gupta

摘要:

针对高速分组处理流水线编译高级程序是一个具有挑战性的组合优化问题。编译器必须配置管道的资源以匹配程序的高级语义,同时将程序的所有计算打包到管道的有限资源中。最先进的方法处理这个问题的各个方面。然而,它们错过了有效产生全球高质量成果的机会。我们认为,高级综合(HLS),以前应用于ASIC/FPGA设计,是正确的框架,分解成更小的块与模块化的解决方案的管道编译问题。我们设计了一个基于HLS-based编译器,工作在三个阶段。转换重写程序以使用更丰富的管道资源,避免稀缺资源。合成将复杂的事务代码分解为流水线计算单元的配置。分配将程序的计算和内存映射到硬件资源。我们原型这些想法在编译器,CaT,它的目标是Tofino管道和一个周期准确的模拟器的Verilog硬件模型的RMT管道。CaT可以处理现有编译器目前无法在管道上运行的程序,比现有编译器更快地生成代码,同时使用更少的管道资源。

英文摘要:

Compiling high-level programs to target high-speed packet-processing pipelines is a challenging combinatorial optimization problem. The compiler must configure the pipeline's resources to match the high-level semantics of the program, while packing all of the program's computation into the pipeline's limited resources. State of the art approaches tackle individual aspects of this problem. Yet, they miss opportunities to efficiently produce globally high-quality outcomes. We argue that High-Level Synthesis (HLS), previously applied to ASIC/FPGA design, is the right framework to decompose the compilation problem for pipelines into smaller pieces with modular solutions. We design an HLS-based compiler that works in three phases. Transformation rewrites programs to use more abundant pipeline resources, avoiding scarce ones. Synthesis breaks complex transactional code into configurations of pipelined compute units. Allocation maps the program's compute and memory to the hardware resources. We prototype these ideas in a compiler, CaT, which targets the Tofino pipeline and a cycle-accurate simulator of a Verilog hardware model of an RMT pipeline. CaT can handle programs that existing compilers cannot currently run on pipelines, generating code faster than existing compilers, while using fewer pipeline resources.

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

↑