• 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 Design
  3. Equality operators in Spectre

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 125
  • Views 14089
  • 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

Equality operators in Spectre

svcher
svcher over 10 years ago

Hello,

What is a non-equality operator in Spectre?  Help says it is "!=".  However, this Spectre deck errors out:

simulator lang=spectre
opt options rawfmt=psfascii
v1 (1 0) vsource dc=x1
v2 (2 0) vsource dc=x2
parameters x = 0
parameters x1 = (x==0)
parameters x2 = (x!=0)
dc dc
save 1 2

The error message says:

Error found by spectre during circuit read-in.
    ERROR (SFE-874): "test.scs" 8: Unexpected equals "=". Expected close
        parenthesis.
    ERROR (SFE-683): "test.scs" 8: Badly formed parameters statement.

Line number 8 is the one where "x2" is defined.

Spectre version is "13.1.1.252.isr11 32bit -- 14 Aug 2014"

  Thank you for your help.

  • Cancel
Parents
  • svcher
    svcher over 10 years ago
    Thanks Andrew, I understand now that this is a feature, not a bug.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • svcher
    svcher over 10 years ago
    Thanks Andrew, I understand now that this is a feature, not a bug.
    • 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