Home > Community > Forums > Functional Verification > Virtual interface in UVM

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Virtual interface in UVM 

Last post Wed, Jun 27 2012 1:32 AM by whiteriver. 1 replies.
Started by joys 26 Jun 2012 04:12 AM. Topic has 1 replies and 3376 views
Page 1 of 1 (2 items)
Sort Posts:
  • Tue, Jun 26 2012 4:12 AM

    • joys
    • Not Ranked
    • Joined on Thu, Jun 7 2012
    • Posts 3
    • Points 60
    Virtual interface in UVM Reply

    HI , 

     

    I am wondering who is calling assign_vi virtual function while connecting interface of different members under Agent?

    // Assign the virtual interfaces of the agent's children

      function void assign_vi(virtual interface ubus_if vif);

        monitor.vif = vif;

        if (is_active == UVM_ACTIVE) 

          driver.vif = vif;

      endfunction : assign_vi

     

     

    thanks

    joys 

    Filed under:
    • Post Points: 20
  • Wed, Jun 27 2012 1:32 AM

    • whiteriver
    • Not Ranked
    • Joined on Mon, Apr 19 2010
    • Posts 6
    • Points 45
    Re: Virtual interface in UVM Reply

    the testbench environment is:

      class dut_tb extends uvm_env;

    ...

        specific_uvc_env env_name; // declaration of specific uvc environment

    ...

        // UVM connect() phase

        function void connect();

          env_name.agent.assign_vi(tb.specific_if); // call the assign_vi function with the dut interface as argument

        endfunction

     endclass

     

     

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by joys at 26 Jun 2012 04:12 AM. Topic has 1 replies.