Grammar-Constrained Decoding and Header-Aware Retrieval for Industrial Code Synthesis
Integrate formal AST grammar constraints and peripheral header retrieval directly into LLM token generation to eliminate bit-width mismatches, syntax errors, and undefined hardware API symbol failures.