Skip to content

A simple python script to generate a VHDL testbench template given an entity-architecture declaration passed as argument(s) as a file(s)

License

Notifications You must be signed in to change notification settings

Var7600/VHDL-TestBench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VHDL Testbench Generator

Badges

unit-test python

A python script to generate a VHDL testbench template given an entity-architecture declaration passed as file(s) argument(s).

Demo

demo.mp4

Usage

  • 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

    1. 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
      1. 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

    1. with one VHDL file

    2. with multiples VHDL files in arguments

      python3 testbench_generator.py examples\Decoder3_8.vhdl examples\Mux2_1.vhdl

run unittest

python3 -m unittest tests\test_testbench_generator.py

# Contributions

  • pull request are welcome!

License

MIT License

About

A simple python script to generate a VHDL testbench template given an entity-architecture declaration passed as argument(s) as a file(s)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages