A python script to generate a VHDL testbench template given an entity-architecture declaration passed as file(s) argument(s).
demo.mp4
-
download the python script
git clone https://github.com/Var7600/VHDL-TestBench.git cd VHDL-TestBench
-
you can launch the script without a argument to see the Help and example of usages
-
Linux/MAC
> chmod +x testbench_generator.py > ./testbench_generator.py Usage: python3 testbench_generator.py [VHDL FILE]. . . generate testbench template of VHDL FILE(s) to current working directory Examples: python3 testbench_generator.py adder.vhdl mux.vhdl
- Windows
> python3 testbench_generator.py Usage: python3 testbench_generator.py [VHDL FILE]. . . generate testbench template of VHDL FILE(s) to current working directory Examples: python3 testbench_generator.py adder.vhdl mux.vhdl
-
-
you can launch it with multiples VHDL files in arguments
-
with one VHDL file
-
with multiples VHDL files in arguments
python3 testbench_generator.py examples\Decoder3_8.vhdl examples\Mux2_1.vhdl
-
python3 -m unittest tests\test_testbench_generator.py
- pull request are welcome!
MIT License