The application discloses a kind of FPGA excitation generation
system and method based on semantic understanding and knowledge enhancement,
system includes demand structured
processing unit,
knowledge retrieval and matching unit, test intention generation unit, code synthesis and check unit and feedback closed-
loop control unit.Method includes: the
joint analysis of multi-source test demand containing text and image is carried out, and
standardization demand description text is generated;Through
semantic vector coding and key word and
semantic vector double-channel weight fusion retrieval strategy, the most similar historical
test code and its function abstract are obtained from
verification code
knowledge base;Large
language model is called to generate test function description text and initial FPGA
test code in stages;
Syntax check and format normalization
processing are carried out to initial code;Through man-
machine interaction, receive correction instruction and trigger iteration regeneration.The application effectively improves the analysis ability to multi-
modal hardware test demand, enhances the reuse level to historical
verification asset, improves the accuracy and
engineering usability of generated
test code, significantly reduces the cost of manual writing.