Hi,
in this program,
“package my_pkg;
import abstract_pkg::;
class driver;
abstract_intf#(16) c_h;
task run;
forever begin
c_h.posedge_clock;
c_h.set_address(‘h1234);
end
endtask
endclass
endpackage
module testTop;
dut_itf #(8,16) i1();
DUT d1(.itf(i1));
TEST t1(.itf(i1));
endmodule
module TEST();
import my_pkg::;
driver d;
initial begin
d = (new);
d.c_h = itf.c;
d.run;
end
endmodule”
what these 2 lines explains,especially #(8,16)
for what # symbol is used.is it time delay…?
abstract_intf#(16) c_h;
dut_itf #(8,16) i1();
and
In interfacing,is there any condition that class should be inside “package”.