This repository provides a simple VHDL template for students, offering a starting point for RTL simulation or Field-Programmable Gate Array (FPGA) implementation. Whether you are new to VHDL or looking for a quick setup, this template aims to streamline the process of creating and organizing VHDL projects with Git.
To use this VHDL template, follow the instructions based on your operating system: Linux or Windows.
Before using the Make tool you need to export Vivado to the path doing:
source ./<pathToXilinxInstallation>/Vivado/<version>/settings64.sh
-
Open a terminal and navigate to the repository directory.
-
Run the following command to create and open the Vivado project:
make
-
Vivado will be launched, and a new project named 'VHDL_project' will be created and opened.
Run the help command to display the available make rules:
make help
-
Create a folder named 'build' in the repository directory.
-
Open Vivado and navigate to the 'build' folder using the TCL Console on the botton left:
cd C:\<pathToRepository>/build/
-
In the Vivado Tcl Console, execute the following command to create the project:
source ../scripts/create_project.tcl
-
Vivado closes after the project is created.
-
Reopen Vivado and open the project named 'VHDL_project'.
The template follows a structured layout to enhance organization and ease of use. Key directories include:
- rtl: Contains VHDL source files.
- tb: Includes simulation-related files.
- scripts: Holds scripts for project creation and any additional automation.
- build: Used for project-related files and outputs.
Feel free to modify the template based on your project requirements.
- Create the new file in the corresponding folder (
rtl/
,tb/
, orconstr/
). - Include the file in
scripts/create_project.tcl
. - Do
make clean
(Linux) or delete thebuild/
folder. - Rebuild the project.