VeriGen: A Large Language Model for Verilog Code Generation. Thakur, S., Ahmad, B., Pearce, H., Tan, B., Dolan-Gavitt, B., Karri, R., & Garg, S. ACM Transactions on Design Automation of Electronic Systems, 29(3):1–31, May, 2024.
Paper doi abstract bibtex In this study, we explore the capability of Large Language Models (LLMs) to automate hardware design by automatically completing partial Verilog code, a common language for designing and modeling digital systems. We fine-tune pre-existing LLMs on Verilog datasets compiled from GitHub and Verilog textbooks. We evaluate the functional correctness of the generated Verilog code using a specially designed test suite, featuring a custom problem set and testing benches. Here, our fine-tuned open-source CodeGen-16B model outperforms the commercial state-of-the-art GPT-3.5-turbo model with a 1.1% overall increase. Upon testing with a more diverse and complex problem set, we find that the fine-tuned model shows competitive performance against state-of-the-art gpt-3.5-turbo, excelling in certain scenarios. Notably, it demonstrates a 41% improvement in generating syntactically correct Verilog code across various problem categories compared to its pre-trained counterpart, highlighting the potential of smaller, in-house LLMs in hardware design automation. We release our training/evaluation scripts and LLM checkpoints as open-source contributions.
@article{thakur_verigen_2024,
title = {{VeriGen}: {A} {Large} {Language} {Model} for {Verilog} {Code} {Generation}},
volume = {29},
issn = {1084-4309, 1557-7309},
shorttitle = {{VeriGen}},
url = {https://dl.acm.org/doi/10.1145/3643681},
doi = {10.1145/3643681},
abstract = {In this study, we explore the capability of Large Language Models (LLMs) to automate hardware design by automatically completing partial Verilog code, a common language for designing and modeling digital systems. We fine-tune pre-existing LLMs on Verilog datasets compiled from GitHub and Verilog textbooks. We evaluate the functional correctness of the generated Verilog code using a specially designed test suite, featuring a custom problem set and testing benches. Here, our fine-tuned open-source CodeGen-16B model outperforms the commercial state-of-the-art GPT-3.5-turbo model with a 1.1\% overall increase. Upon testing with a more diverse and complex problem set, we find that the fine-tuned model shows competitive performance against state-of-the-art gpt-3.5-turbo, excelling in certain scenarios. Notably, it demonstrates a 41\% improvement in generating syntactically correct Verilog code across various problem categories compared to its pre-trained counterpart, highlighting the potential of smaller, in-house LLMs in hardware design automation. We release our training/evaluation scripts and LLM checkpoints as open-source contributions.},
language = {en},
number = {3},
urldate = {2024-07-18},
journal = {ACM Transactions on Design Automation of Electronic Systems},
author = {Thakur, Shailja and Ahmad, Baleegh and Pearce, Hammond and Tan, Benjamin and Dolan-Gavitt, Brendan and Karri, Ramesh and Garg, Siddharth},
month = may,
year = {2024},
keywords = {\#nosource},
pages = {1--31},
}
Downloads: 0
{"_id":"asaZzpnvT5KYWFotE","bibbaseid":"thakur-ahmad-pearce-tan-dolangavitt-karri-garg-verigenalargelanguagemodelforverilogcodegeneration-2024","author_short":["Thakur, S.","Ahmad, B.","Pearce, H.","Tan, B.","Dolan-Gavitt, B.","Karri, R.","Garg, S."],"bibdata":{"bibtype":"article","type":"article","title":"VeriGen: A Large Language Model for Verilog Code Generation","volume":"29","issn":"1084-4309, 1557-7309","shorttitle":"VeriGen","url":"https://dl.acm.org/doi/10.1145/3643681","doi":"10.1145/3643681","abstract":"In this study, we explore the capability of Large Language Models (LLMs) to automate hardware design by automatically completing partial Verilog code, a common language for designing and modeling digital systems. We fine-tune pre-existing LLMs on Verilog datasets compiled from GitHub and Verilog textbooks. We evaluate the functional correctness of the generated Verilog code using a specially designed test suite, featuring a custom problem set and testing benches. Here, our fine-tuned open-source CodeGen-16B model outperforms the commercial state-of-the-art GPT-3.5-turbo model with a 1.1% overall increase. Upon testing with a more diverse and complex problem set, we find that the fine-tuned model shows competitive performance against state-of-the-art gpt-3.5-turbo, excelling in certain scenarios. Notably, it demonstrates a 41% improvement in generating syntactically correct Verilog code across various problem categories compared to its pre-trained counterpart, highlighting the potential of smaller, in-house LLMs in hardware design automation. We release our training/evaluation scripts and LLM checkpoints as open-source contributions.","language":"en","number":"3","urldate":"2024-07-18","journal":"ACM Transactions on Design Automation of Electronic Systems","author":[{"propositions":[],"lastnames":["Thakur"],"firstnames":["Shailja"],"suffixes":[]},{"propositions":[],"lastnames":["Ahmad"],"firstnames":["Baleegh"],"suffixes":[]},{"propositions":[],"lastnames":["Pearce"],"firstnames":["Hammond"],"suffixes":[]},{"propositions":[],"lastnames":["Tan"],"firstnames":["Benjamin"],"suffixes":[]},{"propositions":[],"lastnames":["Dolan-Gavitt"],"firstnames":["Brendan"],"suffixes":[]},{"propositions":[],"lastnames":["Karri"],"firstnames":["Ramesh"],"suffixes":[]},{"propositions":[],"lastnames":["Garg"],"firstnames":["Siddharth"],"suffixes":[]}],"month":"May","year":"2024","keywords":"#nosource","pages":"1–31","bibtex":"@article{thakur_verigen_2024,\n\ttitle = {{VeriGen}: {A} {Large} {Language} {Model} for {Verilog} {Code} {Generation}},\n\tvolume = {29},\n\tissn = {1084-4309, 1557-7309},\n\tshorttitle = {{VeriGen}},\n\turl = {https://dl.acm.org/doi/10.1145/3643681},\n\tdoi = {10.1145/3643681},\n\tabstract = {In this study, we explore the capability of Large Language Models (LLMs) to automate hardware design by automatically completing partial Verilog code, a common language for designing and modeling digital systems. We fine-tune pre-existing LLMs on Verilog datasets compiled from GitHub and Verilog textbooks. We evaluate the functional correctness of the generated Verilog code using a specially designed test suite, featuring a custom problem set and testing benches. Here, our fine-tuned open-source CodeGen-16B model outperforms the commercial state-of-the-art GPT-3.5-turbo model with a 1.1\\% overall increase. Upon testing with a more diverse and complex problem set, we find that the fine-tuned model shows competitive performance against state-of-the-art gpt-3.5-turbo, excelling in certain scenarios. Notably, it demonstrates a 41\\% improvement in generating syntactically correct Verilog code across various problem categories compared to its pre-trained counterpart, highlighting the potential of smaller, in-house LLMs in hardware design automation. We release our training/evaluation scripts and LLM checkpoints as open-source contributions.},\n\tlanguage = {en},\n\tnumber = {3},\n\turldate = {2024-07-18},\n\tjournal = {ACM Transactions on Design Automation of Electronic Systems},\n\tauthor = {Thakur, Shailja and Ahmad, Baleegh and Pearce, Hammond and Tan, Benjamin and Dolan-Gavitt, Brendan and Karri, Ramesh and Garg, Siddharth},\n\tmonth = may,\n\tyear = {2024},\n\tkeywords = {\\#nosource},\n\tpages = {1--31},\n}\n\n","author_short":["Thakur, S.","Ahmad, B.","Pearce, H.","Tan, B.","Dolan-Gavitt, B.","Karri, R.","Garg, S."],"key":"thakur_verigen_2024","id":"thakur_verigen_2024","bibbaseid":"thakur-ahmad-pearce-tan-dolangavitt-karri-garg-verigenalargelanguagemodelforverilogcodegeneration-2024","role":"author","urls":{"Paper":"https://dl.acm.org/doi/10.1145/3643681"},"keyword":["#nosource"],"metadata":{"authorlinks":{}}},"bibtype":"article","biburl":"https://api.zotero.org/users/4645877/collections/5QADJUWI/items?key=OGCZ3uLZZq4lLIXadnuJrB1J&format=bibtex&limit=100","dataSources":["Wsv2bQ4jPuc7qme8R"],"keywords":["#nosource"],"search_terms":["verigen","large","language","model","verilog","code","generation","thakur","ahmad","pearce","tan","dolan-gavitt","karri","garg"],"title":"VeriGen: A Large Language Model for Verilog Code Generation","year":2024}