Bug when loading chips?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug when loading chips?

Brendan Jackman
I'm trying to work my way through Project 1 on the computer and I have problems loading chips into the simulator. The message box at the bottom of the window gives me the right error messages if my HDL scripts are invalid (bleddy 0-based indexing catches me out every. single. time!), but when they're valid it simply says "Loading chip..." in black.
I can't say that it's a definite pattern, but it seems only to happen with .hdl files that I've edited (i.e the "skeletal" ones that come in Project1.zip).

I'm running Java Runtime Environment 6 on Win7 by the way.
Any tips would be greatly appreciated.
Reply | Threaded
Open this post in threaded view
|

Re: Bug when loading chips?

culchie
I never came across that particular problem where it hangs on loading.
Are you able to reproduce the bug?
Reply | Threaded
Open this post in threaded view
|

Re: Bug when loading chips?

Brendan Jackman
Yep, it's still happening (if that's what you meant by "reproduce the bug"?). I've just noticed I failed to mention that it only hangs when loading chips as a result of the "load xx.hdl" lines in .tst files.

Anyway I found that moving the hdl, tst and cmp files to their parent directory eliminated the problem so maybe it's one of those "wtf" bugs that slip through testing and turn out to be a typo or one of those tiny little errors that only mess things up in very specific circumstances! Worth reporting anyway I suppose.
Reply | Threaded
Open this post in threaded view
|

Re: Bug when loading chips?

drnealaggarwal
I too have this problem and the sim won't load only those files that I've edited. I'm working on an Ubuntu 11.10 machine and editing files using Vim. I've gone through my code with a fine tooth comb but can't see anything wrong. The unedited files load fine. Rebooting does not help.
Reply | Threaded
Open this post in threaded view
|

Re: Bug when loading chips?

cadet1620
Administrator
Can you set your editor to use Windows(MSDOS) line endings \r\n to see if this is the problem?

Another common cause of simulator hangs opening HDL files is due to a recursive loop in chip usage. For example if your Not.hdl uses a Not chip in its PARTS section. The problem can be more hidden if, for instance chip A uses chip B which uses chip A.

If you can't get this working, please email me a couple of the files that won't open, as attachments, not cut-and-pasted into the mail.  cadet1620 a t pobox d o t com.

--Mark
Reply | Threaded
Open this post in threaded view
|

Re: Bug when loading chips?

drnealaggarwal
Thanks for the help Mark

It was an infinite (recursive) loop as you've suggested. Editing with Vim is fine, no need to set any MSDOS line endings.

Working now.

Neal