Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

How to check the executable line in Modelsim Altera Starter Edition

Hello,

I noticed that the Modelsim ase has 10,000 executable line limitation. How to know the executable line in my design so that it will not exceed 10,000 line executable line?

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi, as suggested my ti_me, [http=http://cloc.sourceforge.net/]CLOC[/http] counts lines of code but of the entire VHDL files in the directory (even custom backup, useless code...), not the current design and its subdesign

    If ModelSim Altera Starter Edition limits "executable lines", it means that it knows how many lines are compiled but no warning or notification except that Simulation become suddently slower.

    Hope a ModelSim designer read this.

    Tis is a minor problem.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Its the total number of lines in your source code. It doesnt get to a certain point and stop - it just doesnt start or gives a performance hit if the project is too big from the start.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you for reply.

    If i understand correctly, we cannot rely on the total number of lines in the source code to check the executable line of our design. The reason is because it maybe possible to have more than one executable line in single line of source code. For example, "clk,reset:in std_logic;" contains 2 executable lines eventhough it is written in a single line. Also, how it ignores the comment & empty lines if we look at the total number of lines in source codes?

    Do Moldesim ase provide the feature to check the executable line? I need this information because I worry my design will over 10,000 executable line in case i want to add more logic for my design in future.

    Thanks for help.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You get a warning from ModelSim when then 10,000 lines limit is exceeded. It still works, but with a huge perfomance hit.

    There is a document at Altera web site that describes exactly what is the meaning of an "executable line". Basically, any line where you could put a breakpoint is considered executable.

    I don't know if there is a simple, easy way to tell how many lines you currently have.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi vjAlter

    I found easy way: It's called CLOC (count lines of code). The Application is available at sourceforge.

    It's a nice tool that analyzes directories, single files or zipped files. It recognizes the code languages by reading the file endings. Firstly, it searches after code-files. Then, it counts the lines while it differentiates between comment lines, blank lines and code lines. The only feature you don't have, is a "live-check".

    I also need to know, what the meaning of "executable line" is. Can you please forward me the link to the mentioned Altera document?