Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class our_env extends uvm_env;
- `uvm_component_utils (our_env)
- //instantiate classes
- our_agent agnt; //initiated the agnt class we created
- //constructor
- function new(string name="our_env", uvm_component parent = null);
- super.new(name, parent); //to access all base class properties
- //build phase
- function void build_phase(uvm_phase phase);
- agnt = our_agent :: type_id :: create("agnt", this); //this is we created a new object
- endfunction
- endclass : our_env
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement