Lune

ICSE2026顶会

Synthesizing Hardware-Specific Instructions for Efficient Code Generation of Simulink

Zehong Yu, Zhuo Su, Rui Wang, Yu Jiang

摘要

Simulink has become a pivotal tool in embedded scenarios, offering a model-driven approach for embedded software development. Given the tight performance and resource constraints in embedded applications, it is crucial to ensure the efficiency of the code generated from Simulink models. Code generators implement various optimizations to enhance performance. However, they neglect the potential of hardware-specific instructions available in modern processors, such as saturation-type instructions, which accomplish complex operations in fewer cycles. Moreover, relying on state-of-the-art compilers to use these instructions is also not as effective as expectation, due to their complex semantics. This paper proposes Amica, an efficient code generator for Simulink models with hardware-specific instruction synthesis. The key insight of Amica is to leverage model semantics to effectively synthesize the appropriate instructions. Amica first converts the model into the dataflow graph and crafts a series of optimization rules represented as dataflow subgraph with constraints related to block parameters, data types, and other critical properties. Then, Amica iteratively matches these rules with dataflow graph to obtain the optimizable candidates. The candidate that maximizes latency reduction is chosen to update the dataflow graph. Finally, Amica synthesizes the appropriate instructions for optimizable blocks in accordance with instruction syntax and block properties. We implemented and evaluated Amica on benchmark Simulink models. Compared with the state-of-the-art code generators Simulink Embedded Coder, Mercury, and Frodo, the code generated by Amica is 1.29 × - 8.36 × faster in terms of execution time across different platforms. Besides, Amica reduces 6% - 53% assembly code size of the compiled programs, while performing similarly in terms of data segment size and BSS segment size.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Automatic Generation of Vectorizing Compilers for Customizable Digital Signal Processors 引用了 Vector instruction selection for digital signal processors using program synthesis
  • Automatic Generation of Vectorizing Compilers for Customizable Digital Signal Processors 引用了 Vectorization for digital signal processors via equality saturation
  • Fast Instruction Selection for Fast Digital Signal Processing 引用了 Vector instruction selection for digital signal processors using program synthesis
  • Fast Instruction Selection for Fast Digital Signal Processing 引用了 Vectorization for digital signal processors via equality saturation
  • Vector instruction selection for digital signal processors using program synthesis 引用了 Vectorization for digital signal processors via equality saturation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper8

  1. Vectorization for digital signal processors via equality saturationAlexa VanHattum, Rachit Nigam, Vincent T. Lee, James Bornholt 等ASPLOS 2021 · 57 次引用
  2. Automatic Generation of Vectorizing Compilers for Customizable Digital Signal ProcessorsSamuel Thomas, James BornholtASPLOS 2024 · 16 次引用
  3. Vector instruction selection for digital signal processors using program synthesisMaaz Bin Safeer Ahmad, Alexander J. Root, Andrew Adams, Shoaib Kamil 等ASPLOS 2022 · 13 次引用
  4. HCG: optimizing embedded code generation of simulink with SIMD instruction synthesisZhuo Su, Zehong Yu, Dongyan Wang, Yixiao Yang 等DAC 2022 · 10 次引用
  5. Fast Instruction Selection for Fast Digital Signal ProcessingAlexander J. Root, Maaz Bin Safeer Ahmad, Dillon Sharlet, Andrew Adams 等ASPLOS 2023 · 7 次引用

相关 Paper

  1. Efficient Code Generation for Data-Intensive Simulink Models via Redundancy EliminationZehong Yu, Zhuo Su, Yu Jiang, Aiguo Cui 等DAC 2024 · 3 次引用
  2. AccMoS: Accelerating Model Simulation for Simulink via Code GenerationYifan Cheng, Zehong Yu, Zhuo Su, Ting Chen 等DAC 2024 · 3 次引用
  3. AMOS: enabling automatic mapping for tensor computations on spatial accelerators with hardware abstractionSize Zheng, Renze Chen, Anjiang Wei, Yicheng Jin 等ISCA 2022 · 63 次引用
  4. Satune: synthesizing efficient SAT encodersHamed Gorjiara, Guoqing Harry Xu, Brian DemskyOOPSLA 2020 · 4 次引用
  5. SOFF: An OpenCL High-Level Synthesis Framework for FPGAsGangwon Jo, Heehoon Kim, Jeesoo Lee, Jaejin LeeISCA 2020 · 20 次引用
黄昏的海面,两侧是细线勾勒的悬崖