.gitignore for ModelSim

18 ignore rules for ModelSim, ready to copy into your repository.

HDL simulation software

The complete .gitignore for ModelSim

# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:28:53 UTC
# Technologies: ModelSim

### ModelSim ###
# Backup file
*.bak
[_@]*
*.mti
*.dat
*.dbs
*.psm
*.cmp
*.jpg
*.html
*.bsf
wlf*
*.wlf
*.vstf
*.ucdb
cov*/
transcript*
sc_dpiheader.h
vsim.dbg

What these ModelSim rules actually ignore

Every pattern below, and why it belongs in your .gitignore.

General

Pattern What it ignores
[_@]* ignore ModelSim generated files and directories (temp files and so on)
*.bak Backup file
*.mti ignore compilation output of ModelSim
*.dat General
*.dbs General
*.psm General
*.cmp General
*.jpg General
*.html General
*.bsf General
wlf* ignore simulation output of ModelSim
*.wlf General
*.vstf General
*.ucdb General
cov*/ General
transcript* General
sc_dpiheader.h General
vsim.dbg General

How to use this .gitignore for ModelSim

  1. Copy the ModelSim rules above, or download the file directly.
  2. Create a file named .gitignore at the root of your Git repository and paste the rules into it.
  3. If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
  4. Commit the .gitignore so everyone on the team shares the same rules.

Other EDA .gitignore templates

See every EDA template