• 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. clipboard text access from icfb

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 143
  • Views 15541
  • 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

clipboard text access from icfb

swdesigner
swdesigner over 14 years ago

Hello,

         Is there any way to accomplish something like this :

Is there any way, within icfb (say schematic editor), to be able to access text in the xwindows clipboard?

Here is my end goal :

I want to select text in my text editor (such as NEdit - outside icfb)

Then, in my schematic editor, I want to execute a bindkey that will :

search for instance name matching the selected tex
zoom to the instance


Any ideas will be great.

Thanks!

  • Cancel
  • skillUser
    skillUser over 14 years ago

    Hi SWDesigner,

    To my knowledge there is no programmatic (API) interface to any clipboard or copy-paste buffer in SKILL.  However there appears to be a Linux command called "xclip" that may provide such access externally, and then perhaps this could be invoked/interacted with using the ipcBeginProcess and related commands in SKILL.

    That's all I have, hope it helps!

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • swdesigner
    swdesigner over 14 years ago

    That's a good start. I see that

    xclip -o

    captures what has been selected. Let me see if I can hash something together..

    Now it boils down to capturing the output of a shell command in a string. Is ipcBeginProcess the only way?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 14 years ago

    I think that ipcBeginProcess() could be the best if not the only way to capture output from an external process/script/command, so you will need to write a little code around using "xclip".

    Good luck!

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • swdesigner
    swdesigner over 14 years ago

    I confirmed that

    cid = ipcBeginProcess("xclip -o")

    text = ipcReadProcess(cid)

    captures text outside of Cadence that has been selected.

    Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 14 years ago

    Excellent, glad to hear it!

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • swdesigner
    swdesigner over 14 years ago

    Unfortunately, text in the Calculator tool is not being captured.

    Any ideas? Sometimes, I want to go to the level where the net defined in the calculator tool is.

    Eg, I want a bindkey to take me where VT("/xtop/XSD1/XLGC/net203") is, but my clipboard access isn't working..

    If the text is somewhere outside cadence, it works (yes, it doesn't even work for text in the entry field of the CIW...

    Any help would be great.

    Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    It's probably best to get the input buffer from the calculator by using calGetBuffer() rather than trying to do it via the clipboard.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • swdesigner
    swdesigner over 14 years ago

    Hmmm, I'm really interested in working with text that could be anywhere in xwindows. Sometimes, it just happens to be in the calculator buffer...

    Funny thing is, in an xterm, if I do

    xclip -o

    when I have the calculator buffer text selected, I get the correct output. Yet, cadence isn't able to capture it...

    • 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