Hi, is it possible to create a parameterized class from another parameterized class? If yes, how do we create objects of the newly parameterized class while changing the parameters? when i create an extended class object below, a still has only 6 bits instead of 20 that i give while creating the extended class object
class baseclass #(int size = 5);
......
bit[size-1] a;
endclass
class extendedclass #(int secondsize = 10) extends baseclass#(.size(6));
endclass
module tb;
extendedclass #(20) myextendedclassobject;
endmodule