• 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. Warning when calling dbLayerEnclose in SKILL++.

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 142
  • Views 13468
  • 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

Warning when calling dbLayerEnclose in SKILL++.

cessej
cessej over 14 years ago

I've got warning when calling dbLayerEnclose in SKILL++. Does anyone knows how to make this function available for SKILL++?

*Warning* (dbLayerEnclose): calling NLambda from Scheme code - dbLayerEnclose(cv list("marker" "annotate") layerA layerB)

Thank you.

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    This is a bit of an oddity - I can't see why dbLayerEnclose is an nlambda - none of the other layer functions are. So I filed CCR 891034 to get this changed (if possible).

    You can workaround it by doing this:

    (defmacro MYdbLayerEnclose (cv layer dbList1 dbList2)
      `(inSkill
         (let ((nullPort (outfile "/dev/null")))
           (prog1
             (let ((woport nullPort))
               (dbLayerEnclose (inScheme ,cv) (inScheme ,layer)
                               (inScheme ,dbList1) (inScheme ,dbList2))
               )
             (close nullPort)
             )
           )
         )
      )

    It's a bit convoluted, in order to swallow the warning in all releases, but you should then be able to use MYdbLayerEnclose() instead of dbLayerEnclose in SKILL++ code.

    Regards,

    Andrew.

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

    A rather belated append - but it came up today in a discussion with a customer. My suggested workaround above doesn't work very well:

    1. There's no real need to swallow the warnings, because the warnings wouldn't appear because it's evaluated in SKILL mode because of the inSkill.
    2. It doesn't properly handle arguments being passed which are lexically scoped rather than global

    Instead, this can be simply worked around by creating:

    (inSkill
      (defun MYdbLayerEnclose (cv layer dbList1 dbList2)
        (dbLayerEnclose cv layer dbList1 dbList2)
      )
    )

    not sure why I didn't do it that way in the first place! A macro is completely unnecessary in this case. Of course, it's a shame that we haven't fixed this after 11 years, so I chased that too.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to Andrew Beckett

    A rather belated append - but it came up today in a discussion with a customer. My suggested workaround above doesn't work very well:

    1. There's no real need to swallow the warnings, because the warnings wouldn't appear because it's evaluated in SKILL mode because of the inSkill.
    2. It doesn't properly handle arguments being passed which are lexically scoped rather than global

    Instead, this can be simply worked around by creating:

    (inSkill
      (defun MYdbLayerEnclose (cv layer dbList1 dbList2)
        (dbLayerEnclose cv layer dbList1 dbList2)
      )
    )

    not sure why I didn't do it that way in the first place! A macro is completely unnecessary in this case. Of course, it's a shame that we haven't fixed this after 11 years, so I chased that too.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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