I'm not familiar with uvm, but trying to understand and studying.
I found the below code when I leaning the UVM.
typedef class driver;
typedef class monitor;
class env; driver d0;
monitor mon0;
function init_drvr ();
d0 = new (); // initialize endfunction
function init_mon ();
mon0 = new (); // initialize endfunction endclass
endfunction
endclass
Especially
typedef class driver;
typedef class monitor;
Probably it seems like declare something, but why those typedef is in there?
Would you please let me know why do we use
typedef class driver;
typedef class monitor;
and how to understand this grammar?