connerohnesorge@conneroh.com~$ kubectl get post making-vivado-not-suck-at-git -o yaml

kind: Post
metadata:
name: making-vivado-not-suck-at-git
creationTimestamp:
lastUpdated:
spec:
title:

Making Vivado not suck at Git

Vivado is a great tool for prototyping and simulation, but it’s not really great for version control. I’ve been using Vivado for a while now inside of CPRE 488, and I’ve found that it’s really difficult to use Git with Vivado.

The Problem

Vivado creates a lot of files

Our Solution

You may need to modify the tcl script to include the correct files from a static location in the repo.

For example, in our case (zynq-hdmi-video-pipeline), we had to statically define places for:

Tree view of the hardware pipelined vivado folder structure (with some files removed for clarity)

.
├── Constraints
│   └── master.xdc
├── design_1.pdf
├── digital_camera_pipeline.tcl
├── hw
│   └── IP
│       ├── avnet_hdmi_in
│       ├── avnet_hdmi_out
│       ├── interfaces
│       ├── onsemi_vita_cam
│       └── onsemi_vita_spi
└── VHDL
    └── design_1_wrapper.vhd

Fixing Vivado Git

Add and Commit tcl script.

git add digital_camera_pipeline.tcl
git commit -m "added digital_camera_pipeline.tcl"

Upon new clone of repo, cd to repo directory and execute generate tcl script.

git clone https://github.com/connerohnesorge/zynq-hdmi-video-pipeline.git
# IN VIVADO TCL CONSOLE -> 
# On IAState Windows PC
# cd C:/Users/connero/Downloads/zynq-hdmi-video-pipeline/Vivado/digital_camera_pipeline

# IN VIVADO TCL CONSOLE -> 
# source digital_camera_pipeline.tcl
## OR
# TOOLS -> 
# Run Tcl Script (opens explorer then select tcl script)

Vivado Folder .gitignore

!*
.Xil/*
project_1/*
digital_camera/*
*.str