Automated loop to rewrite C into synthesizable C for High-Level Synthesis
C2HLSC.py shows an example of a complete script that uses an LLM in the loop using feedback from catapult to go from generic C to synthesizable C. Paper C2HLSC
The script requires Catapult HLS and OpenAI apis installed.