Thursday, June 20, 2013

How to store Quartus project in VCS (on git example)

Recently I returned to write vhdl code again and faced against problem how to share project among other developers. Of course we need to track any changes and have ability to store project settings (like chip version, pin, etc). Quartus creates bunch of binary and log files, so what should we store and that not.

Now I'm using Quartus v13. So let's donwload the manual. On the page 8 you can see file formats for Quartus. On page 973 you can see sample Make file (Example 2-6). Ofcourse we can check clean section to understand what we need and what we don't need in VCS.

Script for cleaning work directory:
#!/bin/sh

rm -rf *.rpt
rm -rf *.chg
rm -rf *.log
rm -rf *.htm
rm -rf *.eqn
rm -rf *.pin
rm -rf *.sof
rm -rf *.pof
rm -rf *.summary
rm -rf *.done
rm -rf *.smsg
rm -rf *.qws
rm -rf *.jdi
rm -rf *db



And .gitignore file for GIT VCS, to hide in git show unneded files:
#  cat .gitignore
*.rpt
*.chg
*.log
*.htm
*.eqn
*.pin
*.sof
*.pof
*.summary
*.done
*.smsg
*.qws
*.jdi
*db

No comments:

Post a Comment