Update the .gitignore

This commit is contained in:
Jeremy Shen
2026-05-27 16:51:56 +08:00
parent ac7e054345
commit d1d389aa93
+68 -8
View File
@@ -1,16 +1,76 @@
# Lattice Diamond 实现输出目录
# 根目录 .gitignore 已覆盖大部分 pattern,此处仅确保 impl1/ 被忽略
impl1/
# ============================================================
# Lattice Diamond .gitignore
#
# Strategy:
# 1. Ignore all junk with broad glob patterns
# 2. Negate ONLY the files Lattice Diamond needs to open a project
# ============================================================
# 中间文件/排序文件(含绝对路径,跨机器不可移植)
# ---------- Build output ----------
impl1/
*_tcr.dir/
tb_RelayConTop
# ---------- Auto-generated junk ----------
# Lattice intermediate / absolute-path files
*.lst
*.naf
*.tcl
# 明确保留: Lattice Diamond 打开项目必需的文件(覆盖根目录忽略规则)
# QuestaSim / VCS simulation junk
*.ado
*.adf
*.cr.mti
*.mdo
*.mpf
*.tops
*.dmp
*.vcd
vsim.wlf
transcript
hdlparser.log
# HTML reports
*.html
*.htm
# Generated XML
promote.xml
reportview.xml
# Reveal debug (re-generatable)
debug.rvl
debug.rvs
# ---------- Per-project sub-directories ----------
# Diamond GUI configs
*.ini
*.cfg
# CPLD work directories (simulation artifacts)
work/
# ---------- Negate: Lattice Diamond opens project ONLY with these ----------
# Verilog / SystemVerilog / VHDL source
!*.v
!*.sv
# Lattice project definition
!*.lpf
!*.ldf
!*.sty
!*.ccl
!*.tfi
# Bitstream and programming
!*.bit
!*.jed
!*.svf
!*.rva
!*.trc
!*.bit
!*.jed
!*.xcf
!tb_RelayConTop/
# Simulation project files (.spf is needed by Diamond's sim engine)
!*.spf
_math_real.vhd