• 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. Question regarding reflection API

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 65
  • Views 13592
  • 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

Question regarding reflection API

myonlyscreen
myonlyscreen over 11 years ago

 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.   

 

 

  • Cancel
  • hannes
    hannes over 11 years ago

    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 
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • myonlyscreen
    myonlyscreen over 11 years ago

     Hannes Thanks, it helped a lot.

    Regards,

    EM

    • 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