• 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. Custom IC Design
  3. Accessing analog voltages in hierarchy from Verilog AMS

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 125
  • Views 10126
  • 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

Accessing analog voltages in hierarchy from Verilog AMS

amacSS
amacSS over 3 years ago

Hi, I'm trying to access a voltage outside a Verilog AMS module; is it possible?

I tried with V(net) without success; the net is at top level.

Also V(TESTBENCH_NAME.net) does not work.

Using $cds_get_analog_value(net) or $cds_get_analog_value(TESTBENCH_NAME.net) also results in:

ERROR (VALUEFETCH-001) $cds_get_analog_value() failed: No hierarchical name specified.

Any idea?

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    If using $cds_get_analog_value or $cgav then you need to put the name in quotation marks "TESTBENCH_NAME.net" for example. I think you should be able to use a top-level name from a lower scope. This is described in How to use cds_get_analog_value in AMS Designer?

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • amacSS
    amacSS over 3 years ago in reply to Andrew Beckett

    I tried also with quotes but get a different error:

    ERROR (VALUEFETCH-004) $cds_get_analog_value() failed: Failed to fetch the value of TOP_SIM_TM2.TBUF. Please check for correctness the name of the item, whether the item whose value is being requested is owned by the analog solver and whether the specified quantity is valid for the item.

    The examples you link always get a net on sub-cells, so I'm wondering if this is a constraint.

    In my case the verilog-ams is not the top cell.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Saloni Chhabra
    Saloni Chhabra over 3 years ago in reply to amacSS

    Are you sure TOP_SIM_TM2.TBUF falls in electrical/analog domain? Perhaps you can first run a simulation saving this net and plot its value to make sure it is analog.

    Regards,

    Saloni

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • amacSS
    amacSS over 3 years ago in reply to Saloni Chhabra

    Yes, it is saved and correctly shown as an analog waveform.

    In fact the purpose was to measure it at specific times in order to automate what is now a visual check.

    • 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