Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/var7600/vhdl-testbench

A simple python script to generate a VHDL testbench template given an entity-architecture declaration passed as argument(s) as a file(s)
https://github.com/var7600/vhdl-testbench

vhdl vhdl-testbench

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# VHDL Testbench Generator
# Badges
[![unit-test python](https://github.com/Var7600/VHDL-TestBench/actions/workflows/python-app.yml/badge.svg)](https://github.com/Var7600/VHDL-TestBench/actions/workflows/python-app.yml)
---

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

# Demo

https://github.com/Var7600/VHDL-TestBench/assets/77991946/c12ecadf-ef14-4735-a7ea-1395e4b94f1f

# Usage

- download the python script

```bash
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**

```bash
> 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
```

2. **Windows**

```bash
> 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

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

# run unittest

```bash
python3 -m unittest tests\test_testbench_generator.py
```

# # Contributions

- pull request are welcome!

# License

**MIT License**