Home > Community > Forums > Functional Verification > Question regarding reflection API

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

 Question regarding reflection API 

Last post Thu, Apr 3 2014 11:18 PM by myonlyscreen. 2 replies.
Started by myonlyscreen 27 Mar 2014 08:47 AM. Topic has 2 replies and 761 views
Page 1 of 1 (3 items)
Sort Posts:
  • Thu, Mar 27 2014 8:47 AM

    Question regarding reflection API Reply

     Hi all,

    I am trying to to set some vr_ad_reg fields with the  set_value()  method.

    This method require that the value will be passed as rf_value_holder struct , however I didn't find any good description or example on how to do so.

     I am asking for help on understanding how to do it, the CDNSHELP document on this subject is insufficient.

    Regards,

    EM.   

     

     

    • Post Points: 20
  • Fri, Mar 28 2014 5:50 AM

    • hannes
    • Top 150 Contributor
    • Joined on Fri, Nov 14 2008
    • Bracknell, Berkshire
    • Posts 48
    • Points 855
    Re: Question regarding reflection API Reply

    Hi EM,

    consider the following:

    var i: uint = 5;                                                                // a uint with a value 
    var type_holder:= rf_manager.get_type_by_name("uint");   // the rf type of uint
    var value_holder:=type_holder.create_holder(i.unsafe());    // this is the value holder of a uint with the value 5

    sn> print value_holder
      value_holder =
    rf_value_holder:
    type- uint
    value- 5

    Does that help?
    -hannes 
    • Post Points: 20
  • Thu, Apr 3 2014 11:18 PM

    Re: Question regarding reflection API Reply

     Hannes Thanks, it helped a lot.

    Regards,

    EM

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by myonlyscreen at 27 Mar 2014 08:47 AM. Topic has 2 replies.