3

I have a modelsim project file (*.mpf), where it lists all the HDL files, and it provides a "compile_order" for each file. So, when I load the (.mpf) file, I can see that each one of my HDL files have a compoile_order number next to it. So far so good.

Now, on the GUI, I can run "compile all", and it will compile all my files in correct order, since the orders are already pre-determined.

I want to know that what is the tcl command line that is equivalent to the "compile all" in the GUI?

In other words, I want to be able to type a command and it compiles all the files, rather than I do "compile all" through the GUI.

Rudy01
  • 1,027
  • 5
  • 18
  • 32
  • If you can't find one, just write a .do script that compiles them one by one in the right order. –  Mar 28 '18 at 15:53
  • You can probably write a tcl script that parses the mpf. Find the `Project_File_` entries and compile them. – JHBonarius Mar 29 '18 at 09:13

1 Answers1

5

You're looking for the command project. You can use it in a "*.do" file this way :

project open MyProject.mpf
project compileall

For all others modelsim commands, you can look at the Modelsim Command Reference Manual. Project command is described in page 220.

grorel
  • 1,408
  • 15
  • 21