• 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. importing spice model into cadence virtuoso ic design

Stats

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

importing spice model into cadence virtuoso ic design

Hazem Al Indari
Hazem Al Indari over 4 years ago

Hello,

I need to use adg1436 spice model in my simulation, I tried to add a new cell with cell view of type spice, but I get tens of parsing errors when I try to save it.

Can you please explain for me how can I use spice models in Virtuoso?

This is the spice model am using: https://www.analog.com/en/license/spice-models?mediaPath=media/en/simulation-models/spice-models/ADG1436.cir&modelType=spice-models

and here is the parsing error am getting:

Warning from parser in `ADG1436'.

".../breakoutboard/adg1436/spiceText/spice.spc", line 78: Warning: Illegal scale factor suffix `h' in numerical literal `11h'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 79: Warning: Illegal scale factor suffix `l' in numerical literal `11l'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 79: Warning: Illegal scale factor suffix `l' in numerical literal `11l'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 80: Warning: Parameter `<', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 80: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 80: Warning: Parameter `<', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 80: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 82: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 82: Warning: Parameter `<', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 82: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 106: Warning: Illegal scale factor suffix `b' in numerical literal `111b'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 108: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 108: Warning: Parameter `<', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 109: Warning: Illegal scale factor suffix `c' in numerical literal `111c'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 110: Warning: Found an unquoted ambiguous expression that contains the `*' character. Therefore, the part of the expression after `-14--0.528753713125263' will be treated as a comment.

".../breakoutboard/adg1436/spiceText/spice.spc", line 110: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 110: Warning: Parameter `<', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 112: Warning: Illegal scale factor suffix `d' in numerical literal `111d'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 122: Warning: Illegal scale factor suffix `i' in numerical literal `11i'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 122: Warning: Illegal scale factor suffix `j' in numerical literal `11j'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 122: Warning: Illegal scale factor suffix `i' in numerical literal `11i'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 123: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 124: Warning: Illegal scale factor suffix `j' in numerical literal `11j'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 149: Warning: Illegal scale factor suffix `b' in numerical literal `211b'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 151: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 151: Warning: Parameter `<', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 152: Warning: Illegal scale factor suffix `c' in numerical literal `211c'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 153: Warning: Found an unquoted ambiguous expression that contains the `*' character. Therefore, the part of the expression after `-14--0.528753713125263' will be treated as a comment.

".../breakoutboard/adg1436/spiceText/spice.spc", line 153: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 153: Warning: Parameter `<', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 155: Warning: Illegal scale factor suffix `d' in numerical literal `211d'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 165: Warning: Illegal scale factor suffix `i' in numerical literal `21i'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 165: Warning: Illegal scale factor suffix `j' in numerical literal `21j'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 165: Warning: Illegal scale factor suffix `i' in numerical literal `21i'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 167: Warning: Illegal scale factor suffix `j' in numerical literal `21j'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 177: Warning: Illegal scale factor suffix `h' in numerical literal `12h'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 178: Warning: Illegal scale factor suffix `l' in numerical literal `12l'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 178: Warning: Illegal scale factor suffix `l' in numerical literal `12l'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 179: Warning: Parameter `<', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 179: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 179: Warning: Parameter `<', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 179: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 181: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 181: Warning: Parameter `<', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 181: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 205: Warning: Illegal scale factor suffix `b' in numerical literal `121b'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 207: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 207: Warning: Parameter `<', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 208: Warning: Illegal scale factor suffix `c' in numerical literal `121c'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 209: Warning: Found an unquoted ambiguous expression that contains the `*' character. Therefore, the part of the expression after `-14--0.528753713125263' will be treated as a comment.

".../breakoutboard/adg1436/spiceText/spice.spc", line 209: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 209: Warning: Parameter `<', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 211: Warning: Illegal scale factor suffix `d' in numerical literal `121d'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 221: Warning: Illegal scale factor suffix `i' in numerical literal `12i'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 221: Warning: Illegal scale factor suffix `j' in numerical literal `12j'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 221: Warning: Illegal scale factor suffix `i' in numerical literal `12i'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 222: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 223: Warning: Illegal scale factor suffix `j' in numerical literal `12j'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 248: Warning: Illegal scale factor suffix `b' in numerical literal `221b'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 250: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 250: Warning: Parameter `<', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 251: Warning: Illegal scale factor suffix `c' in numerical literal `221c'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 252: Warning: Found an unquoted ambiguous expression that contains the `*' character. Therefore, the part of the expression after `-14--0.528753713125263' will be treated as a comment.

".../breakoutboard/adg1436/spiceText/spice.spc", line 252: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 252: Warning: Parameter `<', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

".../breakoutboard/adg1436/spiceText/spice.spc", line 254: Warning: Illegal scale factor suffix `d' in numerical literal `221d'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 264: Warning: Illegal scale factor suffix `i' in numerical literal `22i'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 264: Warning: Illegal scale factor suffix `j' in numerical literal `22j'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 264: Warning: Illegal scale factor suffix `i' in numerical literal `22i'.  Ignored.

".../breakoutboard/adg1436/spiceText/spice.spc", line 266: Warning: Illegal scale factor suffix `j' in numerical literal `22j'.  Ignored.

  • Cancel
Parents
  • FormerMember
    FormerMember over 4 years ago

    Dear Hazem Al Indar,

    Hazem Al Indari said:

    and here is the parsing error am getting:

    Warning from parser in `ADG1436'.

    I looked through your post and did not find an error statement. There are multiple warnings that I believe you need to address, but there was no error. Did I overlook the error? It appears there are several syntax issues in your SPICE file as the statements are not consistent with SPICE. I think you will need to modify these lines. For example, referring to your first set of warnings regarding lines 78 - 80,

    ".../breakoutboard/adg1436/spiceText/spice.spc", line 78: Warning: Illegal scale factor suffix `h' in numerical literal `11h'.  Ignored.

    ".../breakoutboard/adg1436/spiceText/spice.spc", line 79: Warning: Illegal scale factor suffix `l' in numerical literal `11l'.  Ignored.

    ".../breakoutboard/adg1436/spiceText/spice.spc", line 79: Warning: Illegal scale factor suffix `l' in numerical literal `11l'.  Ignored.

    ".../breakoutboard/adg1436/spiceText/spice.spc", line 80: Warning: Parameter `<', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

    ".../breakoutboard/adg1436/spiceText/spice.spc", line 80: Warning: Parameter `>', specified for primitive `bsource', has been ignored because it is an invalid instance parameter. Specify a valid instance parameter and rerun the simulation. Type `parser -h bsource' to get more information on valid instance parameters.

    the syntax provided in the file listing is:

    * VOLTAGE SUPPLY REQUIREMENT

    S116 11h 3 11k 6 VON
    S117 11l 11k 11l 6 VON
    Ech119 11l 6 VALUE = { IF((V(5)<=-0.5 & V(5)>=-16.5) & (V(13)<=16.5 & V(13)>=4.5), 5 , 0.01 ) }

    However, the "S" component is not a valid SPICE independent source name.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 4 years ago in reply to FormerMember

    Dear Hazem Al Indar,

    I apologize, but my incomplete reply was posted when I logged into the forum..

    In addition, SPICE syntax only supports capital letters and the node names you specify in lines 78 and 79 and 80 contain lowercase letters "h" and "l".

    I would suggest you consider editing the file and making its syntax SPICE compatible. A quick reference to the syntax of a SPICE file is at URL:

    https://web.stanford.edu/class/ee133/handouts/general/spice_ref.pdf

    Hence, examine each warning and address the warning by modifying the line(s) referred in the warning. Although these are not errors, my concern is that the response of the circuit represented by the SPICE file will not be what it is intended to provide.

    Does this help at all?

    Shawn

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to ShawnLogan

    I think the main issue is that this model looks more like PSPICE than Berkeley SPICE. Shawn's not quite correct about SPICE only supporting capital letters (that's not true - it's case insensitive). However, normally SPICE would either have numerical node names, or alphanumeric - but in that case they can't start with a number.

    Anyway, if you create the view as a pspice view, you get far fewer problems (only 4) and those are easily fixed by substituting 11j for j11 (for example) throughout the file. That said, it's a bit odd why it complains just about 11j and not about all the other suffixed nodes in the netlist (I think this would be worth raising with customer support).

    It's unclear to me what dialect of SPICE the models are intended for - I couldn't see that on the ADI site.

    Regards,

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Frank Wiedmann
    Frank Wiedmann over 4 years ago in reply to Andrew Beckett

    I would guess that the model is intended for Analog's LTspice, which says in its manual: "Nodes names may be arbitrary character strings."

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to Frank Wiedmann
    Frank Wiedmann said:
    I would guess that the model is intended for Analog's LTspice, which says in its manual: "Nodes names may be arbitrary character strings."

    Frank,

    That's quite likely, I agree. I also found that if you actually try to simulate with this model (using the pspice_include), then further errors occur, so it would definitely need the original poster to follow up with customer support to address any support needs. First it would be best for the original poster to find out what dialect it really is intended for.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to Frank Wiedmann
    Frank Wiedmann said:
    I would guess that the model is intended for Analog's LTspice, which says in its manual: "Nodes names may be arbitrary character strings."

    Frank,

    That's quite likely, I agree. I also found that if you actually try to simulate with this model (using the pspice_include), then further errors occur, so it would definitely need the original poster to follow up with customer support to address any support needs. First it would be best for the original poster to find out what dialect it really is intended for.

    Andrew

    • Cancel
    • Vote Up +1 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