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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Collini, Luca, Garg, Siddharth, Karri, Ramesh
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913790171283456
author Collini, Luca
Garg, Siddharth
Karri, Ramesh
author_facet Collini, Luca
Garg, Siddharth
Karri, Ramesh
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2406_09233
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle C2HLSC: Can LLMs Bridge the Software-to-Hardware Design Gap?
Collini, Luca
Garg, Siddharth
Karri, Ramesh
Hardware Architecture
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.
title C2HLSC: Can LLMs Bridge the Software-to-Hardware Design Gap?
topic Hardware Architecture
url https://arxiv.org/abs/2406.09233