Skip to content

About

Large Language Model-powered Verilog Testbench Generator

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

LLM-VeriBench

LLM-VeriBench is an automated Verilog testbench generator powered by large language models (LLMs). This project uses transformer-based models, fine-tuned with LoRA (Low-Rank Adaptation), to generate complete and functional testbenches for verifying a 16-bit Arithmetic Logic Unit (ALU) module and Stall Unit in a MIPS Processor.

Features

  • Promt-to-Verilog Pipeline: Converts high-level functional descriptions into fully-synthesized Verilog testbenches.
  • LLM Integration: Uses DeepSeek Coder-7B Instruct with PEFT (LoRA) fine-tuning to guide test generation.
  • Intelligent Verification: Covers edge cases like carry flags, overflow detection, parity, and zero flags—based solely on natural language feature prompts.
  • Performance Logging: Tracks token usage, generation time, and presence of critical constructs (like always blocks).
  • Structured Outputs: Testbenches are auto-saved in .v format and logged in a CSV for easy evaluation.

Technologies Used

Installation

1. Clone the Repository

https://github.com/avanig1834/LLM-VeriBench.git
cd ALU

2. Install Dependencies

Ensure you have python 3.8+ installed

pip install torch transformer peft

About

Large Language Model-powered Verilog Testbench Generator

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages