Home > Community > Forums > Functional Verification > enum type dynamic array is giving an error with ius8.2-s006

Share

  • Email
  • Social Web
* 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: *

 enum type dynamic array is giving an error with ius8.2-s006 

Last post Mon, Aug 24 2009 3:03 PM by hilker. 1 replies.
Started by 123454321 11 Jun 2009 03:23 AM. Topic has 1 replies.
Page 1 of 1 (2 items)
Sort Posts:
  • Thu, Jun 11 2009 3:23 AM

    • 123454321
    • Not Ranked
    • Joined on Thu, Jun 11 2009
    • Posts 1
    • Points 20
    enum type dynamic array is giving an error with ius8.2-s006 Reply

     Hi,

    I am using ius 8.2-s006 for simulation of ovm2.0,but for below code i am getting error.in this code i have randomise the enum type variable rand_a with dynamic array range."  rand_a inside {cfg_inst.da}".


    typedef enum {CMD,DATA} enum_a;

    class cfg;
      enum_a da[;
    endclass

    class abc;
     
      rand enum_a rand_a;
      cfg cfg_inst ;

      constraint data_rand_a
      {
        rand_a inside {cfg_inst.da};
      }
    endclass

    module test();

    initial
    begin
      abc abc_inst;
      abc_inst =new();
      abc_inst.cfg_inst = new();
      abc_inst.cfg_inst.da = new[2];
      abc_inst.cfg_inst.da[0] = CMD;
      abc_inst.cfg_inst.da[1] = DATA;
      void'(abc_inst.randomize());
    end

    endmodule

    Error:

     ncsim: *F,INTERR: INTERNAL ERROR
    Observed simulation time : 0 FS + 0
    -----------------------------------------------------------------
    The tool has encountered an unexpected condition and must exit.
    Contact Cadence Design Systems customer support about this
    problem and provide enough information to help us reproduce it,
    including the logfile that contains this error message.

    • Post Points: 20
  • Mon, Aug 24 2009 3:03 PM

    • hilker
    • Not Ranked
    • Joined on Thu, Jun 4 2009
    • Plano, TX
    • Posts 2
    • Points 55
    Re: enum type dynamic array is giving an error with ius8.2-s006 Reply

     Hi 123454321,

    I've duplicated the error as well, and don't see where you should have a problem.  Please file a Service Request through SourceLink including your testcase so R&D can take a look.

    Regards,

    Bob

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by 123454321 at 11 Jun 2009 03:23 AM. Topic has 1 replies.