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.

2
  • If you can't find one, just write a .do script that compiles them one by one in the right order. Commented Mar 28, 2018 at 15:53
  • You can probably write a tcl script that parses the mpf. Find the Project_File_ entries and compile them. Commented Mar 29, 2018 at 9:13

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.