Hello All,
I have declared all Parameters inside a Class.Now i want to use this parameters inside the interface,how can i do it…???
Class A;
parameter x=8;
parameter y=16l
endclass
interface intf()
logic [x-1:0] addr; // x is parameter inside the class ,
logic [y-1:0] data; // now i want to use it in this interface .
// How can i do it???
endinterface
In Modules ,Before using class properties or methods , we will create an object of class using function new and access the class members using its handle.
Then what can be done in the above case???
Please guide me,
Regards ,
Murali.A