• 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. errset command question

Stats

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

errset command question

boyg
boyg over 14 years ago

 

 Good day,

 I have a concern regarding errset command when used in calculator (CALC) commands; I want to contain CALC errors into a list. In the example below, when I invoke

 

                                  errset("clip(v("net31" ?result "timeSweeptran") 1u 2u)")

 

to "catch" the error using errset, the result is

 

                                 errrset("clip(v("net31" ?result "timeSweeptran") 1u 2u)")

                                 SYNTAX ERROR found at line 29 column 23 of file *civInPort*

                                 *Error* linread/read: syntax error encountered in input

 

I follow it with

 

                                  errset.errset

 

 to see the list that contains the error but the result is (nil). Here, I only want to get errors of CALC functions (cross, average, clip, abs). How do I solve this problem? Your suggestions and comments would be of great help. Thank you very much.

  • Cancel
  • boyg
    boyg over 14 years ago

     Good day,

     I have a concern regarding errset function when used in CALC functions; I want to contain CALC errors into a list. In the example below, when I invoke

     

                                      errset("clip(v("net31" ?result "timeSweeptran") 1u 2u)")

     

    to "catch" the error using errset, the result is

     

                                     errrset("clip(v("net31" ?result "timeSweeptran") 1u 2u)")

                                     SYNTAX ERROR found at line 29 column 23 of file *civInPort*

                                     *Error* linread/read: syntax error encountered in input

     

    I follow it with

     

                                      errset.errset

     

     to see the list that contains the error but the result is (nil). Here, I only want to get errors of CALC functions (cross, average, clip, abs). How do I solve this problem? Your suggestions and comments would be of great help. Thank you very much.

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

    First of all, please do not post the same question to more than one forum, because nobody knows which one has been answered - you're more likely to annoy people and reduce the chances of getting an answer. If the post is in the wrong place, I will tend to move it to the right place as forum moderator. So in this case I've joined your two posts...

    Two problems. In your example you spelt errset as errrset. The bigger problem is the fact that you've put the expression in quotation marks, and because of that you have ended up with incorrectly matched quotation marks and hence you're getting the syntax error during parsing - so the errset hasn't even been called at that stage. What you want is:

                                      errset(clip(v("net31" ?result "timeSweeptran") 1u 2u))

    Best Regards,

    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