Xilinx 的 .gitignore
适用于 Xilinx 的 82 条忽略规则,可直接复制到您的仓库。
FPGA开发工具
Xilinx 的完整 .gitignore
# 由 LFGitignore - https://lfgitignore.com 生成
# 创建:2026-10-31 22:58:50 UTC
# 技术:Xilinx
### Xilinx ###
*.jou
# Eclipse 工作区元数据
.metadata
# Eclipse 项目文件
.project
*.debug
*.str
# 临时文件
*.tmp
*.rst
# ZIP 存档
*.zip
*.os
*.html
*.js
# 日志档案
*.log
*.pb
*.dcp
*.hwdef
*.vds
*.veo
*.wdf
*.vdi
*.dmp
*.rpx
*.rpt
*_stub.v
*_stub.vhdl
*_funcsim.v
*_funcsim.vhdl
# 缓存文件
*.cache
*.data
*.ipdefs
.Xil
*.sdk
*.hw
*.ip_user_files
*_synth_*
.jobs
*/*.runs/synth*/*.xml
*/*.runs/synth*/*.txt
*/*.runs/synth*/*.sh
*/*.runs/synth*/*.tcl
*/*.runs/synth*/*.bat
*/*.runs/synth*/*.xdc
!*/*.runs/synth*/*utilization*.rpt
*.runs/synth*/*.xml
*.runs/synth*/*.txt
*.runs/synth*/*.sh
*.runs/synth*/*.tcl
*.runs/synth*/*.bat
*.runs/synth*/*.xdc
!*.runs/synth*/*utilization*.rpt
*/*.runs/impl*/*.xml
*/*.runs/impl*/*.html
*/*.runs/impl*/*.txt
*/*.runs/impl*/*.sh
*/*.runs/impl*/*.tcl
*/*.runs/impl*/*.bat
!*/*.runs/impl*/*utilization*.rpt
*.runs/impl*/*.xml
*.runs/impl*/*.html
*.runs/impl*/*.txt
*.runs/impl*/*.sh
*.runs/impl*/*.tcl
*.runs/impl*/*.bat
!*.runs/impl*/*utilization*.rpt
*/*/bd/*/hdl
*/*/*/bd/*/hdl
*/*/bd/*/*.xdc
*/*/*/bd/*/*.xdc
*/*/bd/*/ip/*/*.xdc
*/*/*/bd/*/ip/*/*.xdc
*/*/bd/*/ip/*/*/
*/*/*/bd/*/ip/*/*/
*/*/bd/*/ip/*/*.vhd
*/*/*/bd/*/ip/*/*.vhd
*/*/bd/*/ip/*/*.xml
*/*/*/bd/*/ip/*/*.xml
*.c
*.h
*.vho
*/*/bd/*/ip/*/*.tcl
*/*/*/bd/*/ip/*/*.tcl
hw_handoff
ipshared
这些 Xilinx 规则实际上忽略了什么
以下列出了每个忽略模式及其加入 .gitignore 的原因。
通用
| 模式 | 忽略的内容 |
|---|---|
.metadata |
Eclipse 工作区元数据 |
.project |
Eclipse 项目文件 |
*.jou |
[home] |
*.debug |
通用 |
*.str |
通用 |
*.tmp |
临时文件 |
*.rst |
通用 |
*.zip |
ZIP 存档 |
*.os |
通用 |
*.html |
通用 |
*.js |
通用 |
*.log |
日志档案 |
*.pb |
通用 |
*.dcp |
通用 |
*.hwdef |
通用 |
*.vds |
通用 |
*.veo |
通用 |
*.wdf |
通用 |
*.vdi |
通用 |
*.dmp |
通用 |
*.rpx |
通用 |
*.rpt |
通用 |
*_stub.v |
通用 |
*_stub.vhdl |
通用 |
*_funcsim.v |
通用 |
*_funcsim.vhdl |
通用 |
*.cache |
缓存文件 |
*.data |
通用 |
*.ipdefs |
通用 |
.Xil |
通用 |
*.sdk |
通用 |
*.hw |
通用 |
*.ip_user_files |
通用 |
*_synth_* |
## IP 综合 |
.jobs |
通用 |
*/*.runs/synth*/*.xml |
## 项目综合 |
*/*.runs/synth*/*.txt |
通用 |
*/*.runs/synth*/*.sh |
通用 |
*/*.runs/synth*/*.tcl |
通用 |
*/*.runs/synth*/*.bat |
通用 |
*/*.runs/synth*/*.xdc |
通用 |
!*/*.runs/synth*/*utilization*.rpt |
通用 |
*.runs/synth*/*.xml |
通用 |
*.runs/synth*/*.txt |
通用 |
*.runs/synth*/*.sh |
通用 |
*.runs/synth*/*.tcl |
通用 |
*.runs/synth*/*.bat |
通用 |
*.runs/synth*/*.xdc |
通用 |
!*.runs/synth*/*utilization*.rpt |
通用 |
*/*.runs/impl*/*.xml |
## 项目实现 |
*/*.runs/impl*/*.html |
通用 |
*/*.runs/impl*/*.txt |
通用 |
*/*.runs/impl*/*.sh |
通用 |
*/*.runs/impl*/*.tcl |
通用 |
*/*.runs/impl*/*.bat |
通用 |
!*/*.runs/impl*/*utilization*.rpt |
通用 |
*.runs/impl*/*.xml |
通用 |
*.runs/impl*/*.html |
通用 |
*.runs/impl*/*.txt |
通用 |
*.runs/impl*/*.sh |
通用 |
*.runs/impl*/*.tcl |
通用 |
*.runs/impl*/*.bat |
通用 |
!*.runs/impl*/*utilization*.rpt |
通用 |
*/*/bd/*/hdl |
## 模块设计 |
*/*/*/bd/*/hdl |
通用 |
*/*/bd/*/*.xdc |
通用 |
*/*/*/bd/*/*.xdc |
通用 |
*/*/bd/*/ip/*/*.xdc |
通用 |
*/*/*/bd/*/ip/*/*.xdc |
通用 |
*/*/bd/*/ip/*/*/ |
通用 |
*/*/*/bd/*/ip/*/*/ |
通用 |
*/*/bd/*/ip/*/*.vhd |
通用 |
*/*/*/bd/*/ip/*/*.vhd |
通用 |
*/*/bd/*/ip/*/*.xml |
通用 |
*/*/*/bd/*/ip/*/*.xml |
通用 |
*.c |
通用 |
*.h |
通用 |
*.vho |
通用 |
*/*/bd/*/ip/*/*.tcl |
通用 |
*/*/*/bd/*/ip/*/*.tcl |
通用 |
hw_handoff |
通用 |
ipshared |
通用 |
如何将此 .gitignore 用于 Xilinx
- 复制上面的Xilinx规则,或者直接下载文件。
- 在 Git 仓库根目录创建名为 .gitignore 的文件,并将规则粘贴进去。
- 如果其中一些文件已被跟踪,请运行 git rm -r --cached . 然后再次提交 - Git 仅将忽略规则应用于未跟踪的文件。
- 提交 .gitignore 以便团队中的每个人都共享相同的规则。