This repo offers support to anyone who wants to start handling Xilinx Vivado projects via Tcl scripts. This is very convenient since it allows to automatize the processes of, but not limited to, project initialization, syhnthesis, implementation, and bistream generation.
Everything has been tested in Xilinx Vivado 2021.2.
To clone this repo open your terminal and run:
git clone https://github.com/MattiaDif/Tcl-Vivado.git
All the .vhd code are just example files, they have not been tested and/or validated.
The /code folder includes:
- /src folder: example adder.vhd and top_level.vhd file
- /sim folder: example adder_tb.vhd file
- /xdc folder: constraint file of Digilent Arty A7
- init_prj.tcl --> Tcl scipt for Vivado project initialization
- bistream_prj.tcl --> Tcl script for bistream generation
- sim_prj.tcl --> Tcl script for lunching simulation
- Open Xilinx Vivado
- Open the Tcl console (usually found at the bottom of the Vivado window)
- Locate the script using the command:
cd "path_to_your_script"
- Source the script using this command to initialize the project:
source "path_to_your_script/init_prj.tcl"
- Source the script using this command to generate bitstream:
source "path_to_your_script/bitstream_prj.tcl"
- Source the script using this command to lunch a simulation:
source "path_to_your_script/sim_prj.tcl"
If you use this repo, please cite:
"Di Florio, M. Tcl-Vivado (Version 0.2) [Computer software]. https://github.com/MattiaDif/Tcl-Vivado"
To contribute refers to the dev branch!