Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class our_agent extends uvm_agent;
- `uvm_component_utils(our_agent)
- our_sequencer seqr; //initiated sequencer, driver and monitor classes in agent acc. to hierarchy
- our_driver drv;
- our_monitor mon;
- //buildphase
- function void build_phase(uvm_phase phase)
- seqr = our_sequencer :: type_id :: create("seqr", this) //these are the components we will be writing code for
- drv = our_driver :: type_id :: create ("drv", this)
- mon = our_monitor :: type_id :: create ("mon", this)
- endfunction
- //connect phase
- function void connect_phase(uvm_phase phase);
- //necessary connections
- drv.seq_item_port.connect(seqr.seq_item_export) //made aconnection between the drivers port and sequencers export
- //run phase
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement