Multiple .v Files

604 views
Skip to first unread message

Al Williams

unread,
Apr 6, 2014, 11:08:55 AM4/6/14
to eda-pla...@googlegroups.com
Hi Victor,

Nice job on EDA Playground -- very impressed with it (and thanks for the retweet on the Dr. Dobb's article). 

I don't know if I didn't notice it before or if you recently added it, but I see you can now add multiple files with the tabs along the top. However, that doesn't seem to work for me.


As opposed to the original where I appended the two files into one: http://www.edaplayground.com/x/3a5 -- that works fine.
Am I doing something wrong?

By the way, an observation: When you copy a project (like I just did) it gets the same name and you have to go find the list and see which one was created last. Might be nice to change the name from XXX to Copy of XXX or something.

Again, great work. One of my favorite Web apps, if not my favorite!

Victor Lyuboslavsky

unread,
Apr 6, 2014, 11:40:03 AM4/6/14
to eda-pla...@googlegroups.com
Al,

Thank you for mentioning EDA Playground in your blog.

For multiple files, EDA Playground is not smart enough to compile all the files because it does not know the proper compilation order. It only/always compiles design.sv and testbench.sv
So, you must use include statements to pull in the other files, like `include "counter5.v"
Working example: http://www.edaplayground.com/x/3Lw

Regarding changing the name on copy, it is a good suggestion, and I'd like to hear whether others think this is a good idea as well. Anyone?
A major use for Copy is to make a copy of someone else's playground. In that case you probably don't want the name to be changed. And what if the user didn't want the name changed (like they modified the description to indicate the changes)? There are a couple use cases here that may not benefit from this change.

Feel free to let me know any other issues/suggestions.

Regards,
Victor

Al Williams

unread,
Apr 6, 2014, 11:49:34 AM4/6/14
to eda-pla...@googlegroups.com
Thanks Victor, 

I thought about doing an include but thought I'd ask.

As for the name change, yes, I suppose it does depend on why you are copying it. I guess my opinion, though, is still that it confused me I didn't know if it had made a copy and switched me to it or if it made a copy and kept me on the original. That was important because I'd already put a shared link out to the world and didn't want to break that version. Perhaps a popup that says "You are now working on the copy" (or the other way, if that's what happens) with a box to "Do not show again" for those who would find that annoying. Not a big deal either way, of course.

Thanks again,

Al W.

Victor Lyuboslavsky

unread,
Apr 6, 2014, 1:06:46 PM4/6/14
to eda-pla...@googlegroups.com
I agree. It it not completely clear. The only quick way to tell is to look at the HTML path in the navigation bar -- it will change after the copy is loaded.
Reply all
Reply to author
Forward
0 new messages