• 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 SKILL
  3. string concatenation with cadence SKILL

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 142
  • Views 25215
  • 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

string concatenation with cadence SKILL

gte582
gte582 over 13 years ago
Hi, I wonder how to concatenate these strings with SKILL in IC5.10.41: 

VT
(“
/out
“)

So that I have a transient voltage net at the end such as
VT(“/out”)
which I can use the plot command to plot in a WaveScan window?
I mainly have difficulty to insert those double quotes inside
that string. 

Thanks,
  • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Why would you need to concatenate these? Can't you just do:

    signal="/out"
    plot(VT(signal))

    If for some odd reason you needed to build a string containing the expression above, you could do:

    signal="/out"
    expr=strcat("VT(\"" signal "\")")

    but I don't see why you'd need to do that. Usually it's because people are using the wrong approach and using evalstring() to do evaluation of an expression unnecessarily.

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • gte582
    gte582 over 13 years ago

    Thanks, Andrew. The first one did plot the signal correctly, but it shows VT(signal)

    as the curve name. How to show  VT("/out")  instead?

     

    For the second one, that is exactly what I confused about the capability

    of strcat function as it outputs VT(\"/out\") instead of VT("/out") ?!

      

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago
    You could use

    plot(VT(signal) ?expr list(signal))

    to show the signal name as the name of the signal.

    Andrew=
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • gte582
    gte582 over 13 years ago

    Yeah, but it will only show /out not VT("/out"), like you'd manually plot

    that transient signal, right? Thanks, 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago
    If you really want it to show that expression, you'll either need to pass the strcat I showed earlier:

    plot(signal ?expr list(strcat("VT(\"" signal "\")")))

    Or use:

    awvPlotWaveform(currentWindow() list(signal))

    If there's no existing window, you'll need to call newWindow() first.

    Note, I did no testing of these - this is from memory - so apologies if there are any typos.

    Andrew=
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • gte582
    gte582 over 13 years ago
    That works! Thanks, Andrew. 
    • 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