I have a package that contains some template classes. When I try to import these classes and specialize them in a module, I get a compilation error. Here's a simple example:
// in file a.sv
class b#(int width = 5);
// in file d.sv
b#(6) b1; // this line gives compilation error
// the commands I'm using to compile
irun -svpp a.sv
irun -svpp d.sv
Can you please tell me what I'm doing wrong?
Avidan,As long as you're using svpp (and currently that's the only option if using type parameters) your template classes and their specializations have to reside in the same scope - either a package or a module. Zeev.