written in python3
To install dependencies
pip3 install -r requirements.txt
or
pip install -r requirements.txt
depending on system installation
python3 generator.py
or
python generator.py
depending on system installation
Usage: generator.py [OPTIONS]
Options:
--size INTEGER Number of tests to generate [default: 100]
--limit INTEGER Maximum row/col size [default: 128]
--help Show this message and exit.
test_values.txt
will contain all details about every single generated test, for debugging.
ram_content.txt
is the file that will be read by Vivado to load the ram values
Example:
python generator.py --size 1000 --limit 16
You can directly import the gen_testbench_reset.vhd
(or gen_testbench_no_reset.vhd
) file as source in Vivado, then modify this file to match the folder containing the generated ram files. Instruction on how to modify it are included in the .vhd file itself.
Pretty print function by Daniele Locatelli
Importing RAM from outside feature by Davide Mornatta
Original testbench code by Mark Zampedroni here