Hi Marco.Originally posted in cdnusers.org by stephenh
At the moment, classes must be declared within a package, module or program.
They're not permitted to "float" at the top level, hence the message you saw.
I'd suggest you put any global classes into a package, and import that into whichever unit requires them.
This makes for tidier encapsulation anyway :-)
One last point, if you're using SystemVerilog, you'd do best to keep to the latest version, as that will have the best feature set. Currently the latest version is IUS6.1s2.