• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. Error- uninitialized virtual interface object

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 66
  • Views 9961
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error- uninitialized virtual interface object

akshay jog
akshay jog over 15 years ago
hi, I have following error when simulating some ovm code "uninitialized virtual interface object" Can some one explain to me , what does this error mean and how to fix it?? after this error message it shows me the line in my code so pasting that part of code as well //***************************** virtual task reset_signals(); @(negedge vmif.i_aresetn); // error at this line----------------------- //write address signals vmif.i_awid_m
  • Cancel
  • avidane
    avidane over 15 years ago

    Hi,

    A virtual interface is actually an uninitialized pointer that must always be connected to some real interface instance before it can be used. In your case you most probably didn't initalize the virtual interface.

    interface x();

    bit y; 

    endinteface

     

    module y();

    class z;

    virtual interface x x_vif; 

    endclass

    // actual interface instance 

    x x_if();

    initial

      begin

        z z_i = new();

        z_i.x_vif = x_if;

      end

    endmodule

     

    Avidan Efody

    Verifigen

    www.specman-verification.com 

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information