#########################################################################################################
## This is an example .gitignore file for Xilinx ISE and Vivado by Pionway.com
## please treat it as an example as it might not be complete.
## If there is any need to update,please contact ranliang@pionway.com
## Version 2.0
#########################################################################################
#Project directory structure:
#Work_dir
#|--RTL
#|--Testbenches
#|--Constraints
#|--ipcore_dir
#|--IPI-BDs
#|--HLS
#|--DSP
#|--Scripts
#|--Debug
#|--Doc
#|--.gitignore
#|--.readme.txt
#Ignore all files
*
#Keep all folders
!*/
#Keep the gitignore, readme.txt file in the root directory of the project
!.gitignore
!readme.txt
#Keep the project root directory, project file and TCL file
!*.xise
!*.xpr
!*.tcl
#Keep the source files in the RTL directory and all its subdirectories
!RTL/**/*.v
!RTL/**/*.h
!RTL/**/*.vh
!RTL/**/*.tf
!RTL/**/*.vhd
!RTL/**/*.vhdl
#Keep the source files in the testbenches directory and all its subdirectories
!Testbenches/**/*.v
!Testbenches/**/*.h
!Testbenches/**/*.vh
!Testbenches/**/*.tf
!Testbenches/**/*.vhd
!Testbenches/**/*.vhdl
!Testbenches/**/*.wcfg
#Keep the constraint files
!Constraints/*.ucf
!Constraints/*.xdc
#Keep all file trees in ipcore_dir directory
!ipcore_dir/*
#Keep all file trees in IPI-BDS directory
!IPI-BDs/*
#Keep all source files and library files in HLS directory and all its subdirectories
!HLS/**/*.c
!HLS/**/*.cpp
!HLS/**/*.h
!HLS/**/*.a
#Keep all file trees in DSP directory
!DSP/*
#Keep all script files in scripts directory
!Scripts/**/*.tcl
#Keep all the chipscope files in the debug directory
!Debug/**/*.cdc
#Keep all file trees in doc directory
!Doc/*
#Keep HDL_OUT all file trees in out directory
!HDL_OUT/*