保留必要的文件有
.cpj / .ucf /.vhd / .v / .xise
特别注意:不可缺少的IPCORE内ngc文件
参考文章
http://blog.sina.com.cn/s/blog_b01e1c0a0101dgv4.html
https://blog.csdn.net/wordwarwordwar/article/details/53049133
https://blog.csdn.net/weixin_30608503/article/details/96411975
.gitignore文件
# Prerequisites
*.d
# Object files
*.o
*.ko
*.obj
*.elf
# Linker output
*.ilk
*.map
*.exp
# Precompiled Headers
*.gch
*.pch
# Libraries
*.lib
*.a
*.la
*.lo
# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib
# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex
# Debug files
*.dSYM/
*.su
*.idb
*.pdb
# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf
/planAhead*
/.Xil
/_ngo
/_xmsgs
/Chip
/iseconfig
/isim
/planAhead_run_1
/planAhead_run_2
/templates
/xlnx_auto_0_xdb
/xst
*.lso
*.prj
*.stx
*.xst
*.lso
*.wcfg
*.exe
*.log
*.xmsgs
*.syr
*.xst
*.html
*.xrpt
*.gise
*.tcl
*.wdb
*.bin
*.bld
*.cmd_log
*.debug
*.bgn
*.bit
*.ngd
*.ngr
*.ini
*.xml
*.txt
*.csv
*.drc
*.ncd
*.pad
*.par
*.pcf
*.ptwx
*.unroutes
*.ut
*.xpi
*.twx
*.xwbt
*.mrp
*.ngm
*.twr
*.zip
*.7z
*.cdc
*.blc
*.xdl