• 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. Writing lists to file

Stats

  • Replies 2
  • Subscribers 151
  • Views 388
  • Members are here 0

Writing lists to file

blankman
blankman 1 month ago

Hi,

I have a question in relation to storing captured data to file for recall.

Brief background: I have 2 procedures, one stores the list of layers in the Layer Palette that are visible, and the other recalls those layers and sets them visible, ie for storing of custom layer visibility sets. (aware that this feature already exists within Virtuoso, coding as part of a larger project)

Question I have: when the layers set is stored, and then Virtuoso is closed and reopened, the layers set is lost. What I want to do is store the layers list to file, so that any stored list is permanently stored irrespective of whether the tool is closed.  

I also want to be able to store 5 different lists of layers, ie for storing of 5 different custom layer visibility sets at a time.

Having not approached a task like this before in skill, I am wondering if there is any examples of this I could reference, or any advice how to go about accomplishing this? 

Thanks very much in advance

  • Sign in to reply
  • Cancel
  • Andrew Beckett
    Andrew Beckett 1 month ago

    I'd suggest just writing out some kind of list structure into the file using pprint(theList filePort) or even just fprintf(filePort "%L\n" theList).

    You can then read it back in using lineread or read - these will use the SKILL parser to read in the list structure even if spread over multiple lines. 

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Aurel B
    Aurel B 1 month ago in reply to Andrew Beckett

    The following functions might be a bit simpler to use:

    writeTable and readTable

    In more recent versions, there is also:

    jsonSave and jsonReadFile

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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.

© 2026 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information