• 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. lxCheck but with useful return?

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 13177
  • 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

lxCheck but with useful return?

drdanmc
drdanmc over 8 years ago

Is there any way to run an XL Compliance check that returns the result in a form that could be used by a skill program?  For example one use is to write a program that checked each layout view in a library and created a web page with a XL compliance table.  lxCheck  just causes stuff to get written to CDS.log.  I guess I could use some horrible hack like

printf("XL_CHECK_START\n")

lxCheck(cv)

printf("XL_CHECK_STOP"\n")

and then try to parse that out of the CDS.log, but wow, that is a hack.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    Dan,

    Try this:

    procedure(CCFlxCheck(cv)
      let(((port outstring()))
        ; might not want to capture the warnings - if not, miss out the (woport port) bit
        let(((woport port) (poport port))
          lxCheck(cv)
        )
        prog1(
          getOutstring(port)
          close(port)
        )
      )
    )

    Then you can do:

    report=CCFlxCheck(cv)

    You'll get the text in a string - you could then use parseString(report "\n") to get a list of lines at the newline separators and so on.

    The above works by opening an output port which writes into a string, and then temporary redirects poport/woport to write to that port (this uses dynamic scoping so that when the stack unwinds the ports are correctly restored).

    No temporary files were harmed in the execution of this function ;-)

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • drdanmc
    drdanmc over 8 years ago
    Thanks! Works like a champ.

    -Dan
    • 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