Error when trying to view the source of the Verilog File in Modelsim

3,720 views
Skip to first unread message

Giovanni Scabbia

unread,
Jan 30, 2014, 3:32:31 PM1/30/14
to modelsim-pe-s...@googlegroups.com
Hello Everyone!

I've just started to learn how to program in Verilog and to use Modelsim. I got stuck while I was following the tutorial in the part where it explains how to do a debug...

When it tells me to View the Files of my module and to open the module itself to put a break-point before debugging, Modelsim doesn't let me do it...

When I try to View the Source of my file (Counter.v) I receive this error:

# wrong # args: should be "load file ?pkg? ?interp?"

I have already tried to view the source directly from the VSIM prompt and I receive the same answer. I also tried to change the privileges of the files (only read), but it doesn't change...

Does anybody know how to solve it? Debugging it's a major resource... it's not something that you can avoid...

Thank you very much for your help!

Giovanni

Larry

unread,
Jan 30, 2014, 3:57:04 PM1/30/14
to modelsim-pe-s...@googlegroups.com
You didn't mention HOW you were trying to open the source file.

What I do is go to the sim tab and RMB on the design unit I'm interested in and select either view declaration or view instantiation.  This will open the appropriate file in the source window.  You should be able to scroll down and place a breakpoint by using the LMB to click just to the right of a red line number (executable line).  If you wish to edit the file then you will need to RMB on the source file and unselect the "read only" parameter at the bottom of the menu.

Giovanni Scabbia

unread,
Jan 30, 2014, 4:03:14 PM1/30/14
to Larry, modelsim-pe-s...@googlegroups.com
Hello Larry!

Thank you for your help! I was just double-clicking on the module name on the file list. I also have tried with right-click > view source but I had the same results...

I just tried your solution and it gives me the same error.

I guess there is something wrong with my software or with the installation... 

I didn't mention that I'm using the modelsim student edition. Can be this the problem?

Thanks!

Giovanni


2014-01-30 Larry <laru...@gmail.com>:

--
You received this message because you are subscribed to a topic in the Google Groups "ModelSim PE Student Edition" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/modelsim-pe-student-edition/LnTE2axThuM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to modelsim-pe-student...@googlegroups.com.
To post to this group, send email to modelsim-pe-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/modelsim-pe-student-edition.
For more options, visit https://groups.google.com/groups/opt_out.

Larry

unread,
Jan 30, 2014, 5:11:37 PM1/30/14
to modelsim-pe-s...@googlegroups.com, Larry
There must be something wrong with your install.  I just downloaded the new 10.3 version of PE student edition and compiled/simulated the verilog basicsimulation example and everything worked as expected.  I was able to open the source file and place a breakpoint as I described earlier.


2014-01-30 Larry <laru...@gmail.com>:
To unsubscribe from this group and all its topics, send an email to modelsim-pe-student-edition+unsub...@googlegroups.com.

Giovanni Scabbia

unread,
Jan 30, 2014, 6:33:20 PM1/30/14
to Larry, modelsim-pe-s...@googlegroups.com
Thank you very much for your effort!

I'll try to re-install it!

Have a good day!


2014-01-30 Larry <laru...@gmail.com>:
To unsubscribe from this group and all its topics, send an email to modelsim-pe-student...@googlegroups.com.

aemkay

unread,
Feb 11, 2014, 5:12:26 AM2/11/14
to modelsim-pe-s...@googlegroups.com
Hello everyone,

I'm facing the same problem! I'm running ModelSim PE Student Edition 10.3 on Windows 7 x64. Everytime i try to open a file (.vhd or .vhdl) in ModelSim (doubleclick or leftcklick->edit) the same error appears:

# wrong # args: should be "load file ?pkg? ?interp?"

I reinstalled ModelSim, but still the same error. For now, I'm editing the files in Sublime Text and compile and simulate them in ModelSim, that works for me, but it's a cumbersome solution...

Can anyone help me?

holzi

unread,
Oct 25, 2014, 8:20:59 AM10/25/14
to modelsim-pe-s...@googlegroups.com
Hi,

I had the same problem. Installing the program to C:\ (NO SUBFOLDERS) worked for me. 

Somehow the program does not support whitespaces in the installation directory??


dlp

unread,
Nov 6, 2014, 7:17:27 AM11/6/14
to modelsim-pe-s...@googlegroups.com
Yes, you are correct regarding blank spaces.

KO

unread,
Sep 9, 2015, 11:17:52 AM9/9/15
to ModelSim PE Student Edition
Hi holzi!

Thanks very much! It worked finally.

arnau....@gmail.com

unread,
Oct 6, 2016, 5:31:29 PM10/6/16
to ModelSim PE Student Edition, to.a...@googlemail.com
Great! It works!! Thanks a lot!

El dissabte, 25 octubre de 2014 14:20:59 UTC+2, holzi va escriure:
Message has been deleted

Mustafa Berk AKBÜLBÜL

unread,
May 6, 2020, 8:39:32 AM5/6/20
to ModelSim PE Student Edition
It worked. Thank you.

25 Ekim 2014 Cumartesi 15:20:59 UTC+3 tarihinde holzi yazdı:
Reply all
Reply to author
Forward
0 new messages