Hi,
below is a small improvement to the truss script. It will first test for PROJECT_HOME being set. If not set, it will set it to the current path.
That allows to switch projects by just cd into the directory, which might be benfitial for beginners like me with small projects.
Index: truss/bin/truss
===================================================================
--- truss/bin/truss (revision 6)
+++ truss/bin/truss (working copy)
@@ -6,6 +6,7 @@
use Cwd;
if (!defined ($ENV{TRUSS_HOME})) {croak "Error! \$TRUSS_HOME not defined. Needed by script (to load included files)";}
+if (!defined ($ENV{PROJECT_HOME})) {$ENV{PROJECT_HOME} = cwd;}
require "$ENV{\"TRUSS_HOME\"}/bin/truss_usage.pl";
require "$ENV{\"TRUSS_HOME\"}/bin/truss_switches.pl";
This has nothing to do with this subject, but I was wondering whether it would benefit to simplify the forum. There are so many groups, I always have to look where a subject would fit in. I don’t know how other users feel about this?
Cheers,
Guenter

#1 by robert on March 9th, 2007
We will definitely add that to the truss script!
The truss script is written by me and I’m in no way a Perl expert. I like the flags it has but would like to see some more thought go into it. If you have other ideas for improvement please let us know!
I agree that there are too many groups in the forum. I will reduce the number over the weekend. My hope as to upgrade the forum to a more powerful one but keep running out of time/energy. Reducing the number of forums would make sense. Have any ideas for what groups would make sense (also with us having both SystemVerilog and C++)?
/Robert
#2 by guenter on March 9th, 2007
How about:
- methodology; independent of the used language, this would also talk abou the book(s)
- teal/truss C++; related to the C++ code, improvements, bugs, help, etc
- teal/truss SystemVerilog; related to the SystemVerilog libraries, improvements, bugs, help, etc
- book(s) errata
- general; all that does not fit in any of the others
Guenter
#3 by mike on March 9th, 2007
Hi Guenter,
Cool, that’s a good reduction.
Can you send me the new truss script? I know you’ve also made corrections to icarus that we need to integrate.
Take care,
Mike