Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

modelsim script for compile all

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.

like image 511
Rudy01 Avatar asked Mar 23 '26 06:03

Rudy01


1 Answers

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.

like image 80
grorel Avatar answered Mar 26 '26 00:03

grorel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!