Hi, I am beginner in UVM.
Let’s consider a case where I have two classes as mentioned below.
class a; class b;
int x; int y;
endclass endclass
module top;
a ah;
b bh;
initial begin
ah = new();
end
endmodule
Here what happends internally when the new constructer is called…?
- How will the tool know that the new constructer is for the class a only…?
- How will the execution happen left to write or right to left.
The new constructer does the following
Initially the new construct will create the object and then the object address is allocated to the handels the finally the default values are initialised.
But how does the tool know exactely that it is belonging to the class a , is it based on the handel…?