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

C2HLSC:大语言模型能否弥合软件到硬件设计的鸿沟?

C2HLSC: Can LLMs Bridge the Software-to-Hardware Design Gap?

Luca Collini, Siddharth Garg, Ramesh Karri

AI总结:

本文研究利用大语言模型将常规C代码重构为HLS可综合格式,通过NIST 800-22、QuickSort和AES-128案例验证其在弥合软硬件设计鸿沟中的潜力。

摘要:

高层次综合(HLS)工具能够从C代码快速生成硬件设计,但其兼容性受到代码结构的限制。本文研究了大语言模型(LLMs)在将C代码重构为HLS兼容格式方面的应用。我们通过使用一个大语言模型将NIST 800-22随机性测试、QuickSort算法和AES-128的C代码改写为可被HLS综合的C代码,展示了若干案例研究。该大语言模型在用户提示的引导下迭代地转换C代码,实现诸如流式数据和硬件特定信号等功能。该评估展示了大语言模型在辅助硬件设计中将常规C代码重构为可被HLS综合的C代码的潜力。

英文摘要:

High Level Synthesis (HLS) tools offer rapid hardware design from C code, but their compatibility is limited by code constructs. This paper investigates Large Language Models (LLMs) for refactoring C code into HLS-compatible formats. We present several case studies by using an LLM to rewrite C code for NIST 800-22 randomness tests, a QuickSort algorithm and AES-128 into HLS-synthesizable c. The LLM iteratively transforms the C code guided by user prompts, implementing functions like streaming data and hardware-specific signals. This evaluation demonstrates the LLM's potential to assist hardware design refactoring regular C code into HLS synthesizable C code.

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

↑