1
\$\begingroup\$

A Quartus project generates huge number of files as we proceed with design compilation and debug automatically.

Provided that I wish to add my Quartus project to a Git repository and not just the hdl files, what are the files that I must add? The objective is that when we clone the repository, we can just open the project and click compile to compile the design. Nothing else needs to be "fixed" in this time.

Git is used for version control by the way.

\$\endgroup\$
2
\$\begingroup\$

You can get Quartus to generate a TCL file (click "Project → Generate TCL file for Project...") that will set up your project from scratch, including any generated IP you're using. So ultimately, all you need to save is that script, the Quartus Project File (.qpf) and all of your HDL source files. Building from a fresh clone is more than a single step, however:

  • Open the project (the .qpf file)
  • execute the setup script ("source" the .tcl file)
  • click "Compile"
\$\endgroup\$
  • \$\begingroup\$ I shall have a look once I go back home in a few days. There is also the question on how the qsys design shall be version controlled via this tcl script. Qsys is for all intents and purposes an addon which generates its own files. \$\endgroup\$ – quantum231 Apr 3 at 18:49
  • \$\begingroup\$ Yes, Qsys is its own can of worms, but there's a limited set of files (one per generated IP, IIRC) that you need to save, and there's a Qsys command to regenerate all of them -- and it works most of the time. \$\endgroup\$ – Dave Tweed Apr 3 at 19:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.