Home > Community > Forums > Functional Verification > IUS 11.1 and extern/import tasks inside an SV-interface?

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: *

 IUS 11.1 and extern/import tasks inside an SV-interface? 

Last post Wed, May 9 2012 11:29 AM by cubicle82. 0 replies.
Started by cubicle82 09 May 2012 11:29 AM. Topic has 0 replies and 3236 views
Page 1 of 1 (1 items)
Sort Posts:
  • Wed, May 9 2012 11:29 AM

    • cubicle82
    • Top 500 Contributor
    • Joined on Tue, Jan 27 2009
    • Aliso Viejo, CA
    • Posts 21
    • Points 360
    IUS 11.1 and extern/import tasks inside an SV-interface? Reply

    I'm trying to figure out a way to give my packaged classes indirect access to tasks that are declared as hierarchical-pahs.

    Basically, I need a standard class definition that can access multiple instances of some module-instance within my testbench. Example:

    module legacy_module_1;

    task xxx;

    endtask

    endmodule : legacy_module_1

    ///////////////////

    module testbench;

    legacy_module_1 instace_a();

    legacy_module_1 instace_b();

    endmodule : testbench

    package pkg_a;

    class cls_1;

        // cls_1 needs ability to call instace_*.task_x();

     endclass : cls_1

     

    ...classes in packages cannot contain hierarchical-references to anything outside of the package (so that rules out the easiest route.)

    Next, I thought I would create an SV-interface, then declare extern tasks/functions inside the interface (i.e. 'proxy tasks', which then call instance_*.task_x() ) And create interface-ports on legacy_module_*, as hookup points.

    But IUS 11 doesn't support it:

            extern task x;
                      |
    ncvlog: *E,SVNIMP (ptclass2.sv,3|11): SystemVerilog construct not yet implemented:  extern tasks within an interface.

     

    I also tried the alternate approach of 'importing' a task inside a modport declaration, but it seems IUS11 doesn't support that either.

     

    I'm stumped... 

    • Post Points: 5
Page 1 of 1 (1 items)
Sort Posts:
Started by cubicle82 at 09 May 2012 11:29 AM. Topic has 0 replies.