• 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. PCB Design
  3. Having a problem with simulating a comparator

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 165
  • Views 16278
  • Members are here 0
More Content
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

Having a problem with simulating a comparator

maxwellc
maxwellc over 13 years ago

 Hello all,

 I've followed the standard steps in creating a part to use for simulation from a manufacturer-provided SPICE file. However, I am running into errors that state "Extra text on line" and "Invalid number", although I have changed nothing from the provided SPICE file. Can someone take a look and see where the problem may be? I've attached the SPICE file for reference (please note that I changed the file type from .txt to .lib before using Model Editor).

Note from Moderator - the attachment violated copyrighted material, so has been removed. Instead you can download it from here.

 
**** 12/15/11 10:55:48 ******* PSpice Lite (April 2011) ******* ID# 10813 ****

 ****     CIRCUIT DESCRIPTION


******************************************************************************




** Creating circuit file "Test Pulse.cir"
** WARNING: THIS AUTOMATICALLY GENERATED FILE MAY BE OVERWRITTEN BY SUBSEQUENT SIMULATIONS

*Libraries:
* Profile Libraries :
* Local Libraries :
.LIB "../../../comparator adcmp601.lib"
* From [PSPICE NETLIST] section of C:\OrCAD\OrCAD_16.5_Lite\tools\PSpice\PSpice.ini file:
.lib "nomd.lib"

*Analysis directives:
.TRAN  0 5ms 0
.PROBE V(alias(*)) I(alias(*)) W(alias(*)) D(alias(*)) NOISE(alias(*))
.INC "..\SCHEMATIC1.net"



**** INCLUDING SCHEMATIC1.net ****
* source TEST PULSE
X_U1         N00193 N00186 5 +5V 0 1 ADCMP601
V_V1         N00193 0 
+SIN 2.5 1 50K 0 0 0
V_V2         N00186 0 DC 2.5 
V_V3         +5V 0 DC 5 

**** RESUMING "Test Pulse.cir" ****
.END

INFO(ORPSIM-15423): Unable to find index file "comparator adcmp601.ind" for library file "comparator adcmp601.lib".

INFO(ORPSIM-15422): Making new index file "comparator adcmp601.ind" for library file "comparator adcmp601.lib".

Index has 16 entries from 1 file(s).


**** EXPANSION OF SUBCIRCUIT X_U1 ****
X_U1.c0 X_U1.17 0 5e-13
X_U1.c1 X_U1.19 0 2e-13
X_U1.c2 N00193 0 2e-13
X_U1.c3 N00186 0 2e-13
X_U1.dp 0 +5V X_U1.DESD
X_U1.e0 X_U1.18 0 X_U1.17 0 4 X_U1.e0 0.3
--------------------------------------$
ERROR(ORPSIM-16371): Extra text on line
+ min -0.3
X_U1.e1 X_U1.20 0 X_U1.19 0 1 X_U1.e1 0.3
--------------------------------------$
ERROR(ORPSIM-16371): Extra text on line


**** EXPANSION OF SUBCIRCUIT X_U1.xb ****
X_U1.xb.d0 X_U1.xb.201 X_U1.xb.202 X_U1.xb.DSIM1
X_U1.xb.d1 X_U1.xb.201 X_U1.xb.203 X_U1.xb.DSIM1
X_U1.xb.d2 X_U1.xb.205 X_U1.xb.206 X_U1.xb.DSIM1
X_U1.xb.d3 X_U1.xb.202 X_U1.xb.204 X_U1.xb.DSIM1
X_U1.xb.d4 X_U1.xb.203 X_U1.xb.204 X_U1.xb.DSIM1
X_U1.xb.d5 X_U1.xb.207 X_U1.xb.208 X_U1.xb.DSIM1
X_U1.xb.e0 X_U1.xb.203 0 X_U1.13 0 1
X_U1.xb.e1 X_U1.xb.202 0 X_U1.12 0 1
X_U1.xb.e2 X_U1.xb.205 0 X_U1.xb.201 0 1
X_U1.xb.e3 X_U1.xb.208 0 X_U1.xb.204 0 1
X_U1.xb.e4 X_U1.xb.210 0 +5V X_U1.xb.209 1 X_U1.xb.e4 1.6
------------------------------------------------------$
ERROR(ORPSIM-16371): Extra text on line
+ min 0.6
X_U1.xb.e5 X_U1.xb.219 0 X_U1.xb.211 X_U1.xb.207 5 X_U1.xb.e5 1
--------------------------------------------------------------$
ERROR(ORPSIM-16371): Extra text on line
+ min 0
X_U1.xb.g0 0 +5V X_U1.xb.212 X_U1.xb.213 0.0015 X_U1.xb.g0 0.0003
-----------------------------------------------------------$
ERROR(ORPSIM-16371): Extra text on line
+ min 0
X_U1.xb.g1 X_U1.15 0 X_U1.xb.212 X_U1.xb.213 0.001 X_U1.xb.g1 0.0002
--------------------------------------------------------------$
ERROR(ORPSIM-16371): Extra text on line
+ min 0
X_U1.xb.g2 X_U1.16 0 X_U1.xb.214 X_U1.xb.215 0.001 X_U1.xb.g2 0.0002
--------------------------------------------------------------$
ERROR(ORPSIM-16371): Extra text on line
+ min 0
X_U1.xb.g3 X_U1.16 0 X_U1.xb.214 X_U1.xb.216 -0.001 X_U1.xb.g3 0
---------------------------------------------------------------$
ERROR(ORPSIM-16371): Extra text on line
+ min -0.0002
X_U1.xb.g4 0 X_U1.14 poly 2 X_U1.xb.219 X_U1.xb.220 X_U1.xb.217
+ X_U1.xb.218 0 0 0 0 0.002 max
----------------------------$
ERROR(ORPSIM-16152): Invalid number
+ 1e-4 min 0 g5
-------------$
ERROR(ORPSIM-16152): Invalid number
+ 6 5 poly 2 219 220 217 218 0 0 0 0 0.002 max 5e-05 min 0 i0
-----------------------------------------------------------$
ERROR(ORPSIM-16152): Invalid number
+ 0 201 dc 0.001 i1
-----------------$
ERROR(ORPSIM-16152): Invalid number
+ 204 0 dc 0.001 i5
-----------------$
ERROR(ORPSIM-16152): Invalid number
+ 206 0 dc 0.001 i6
-----------------$
ERROR(ORPSIM-16152): Invalid number
+ 0 207 dc 0.001 r0
-----------------$
ERROR(ORPSIM-16152): Invalid number
+ 206 218 1 r1
------------$
ERROR(ORPSIM-16152): Invalid number
+ 220 0 1 v0
----------$
ERROR(ORPSIM-16152): Invalid number
+ 209 0 dc 1.9 v1
---------------$
ERROR(ORPSIM-16152): Invalid number
+ 211 0 dc 1.6 v2
---------------$
ERROR(ORPSIM-16152): Invalid number
+ 217 210 dc 0.2 v3
-----------------$
ERROR(ORPSIM-16152): Invalid number
+ 212 207 dc 0.025 v4
-------------------$
ERROR(ORPSIM-16152): Invalid number
+ 213 0 dc 1.6 v5
---------------$
ERROR(ORPSIM-16152): Invalid number
+ 214 207 dc 0.025 v6
-------------------$
ERROR(ORPSIM-16152): Invalid number
+ 215 0 dc 0.6 v7
---------------$
ERROR(ORPSIM-16152): Invalid number


**** EXPANSION OF SUBCIRCUIT X_U1.xh ****
X_U1.xh.c0 X_U1.xh.410 X_U1.xh.409 3.4e-11
X_U1.xh.c1 X_U1.xh.401 0 1e-12
X_U1.xh.d0 0 X_U1.xh.404 X_U1.xh.DSIM1
X_U1.xh.d1 X_U1.xh.401 5 X_U1.xh.DSIM3
X_U1.xh.e0 X_U1.xh.402 X_U1.xh.405 X_U1.xh.405 X_U1.xh.403 1
X_U1.xh.e1 X_U1.xh.412 0 X_U1.17 0 20 X_U1.xh.e1 0.3
-------------------------------------------------$
ERROR(ORPSIM-16371): Extra text on line
+ min -0.3
X_U1.xh.f1 +5V 0 X_U1.xh.v1 7 X_U1.xh.f1 0.0007
-----------------------------------------$
ERROR(ORPSIM-16371): Extra text on line
+ min 0
X_U1.xh.f2 0 0 X_U1.xh.v2 8 X_U1.xh.f2 0.0008
---------------------------------------$
ERROR(ORPSIM-16371): Extra text on line
+ min 0
X_U1.xh.g0 X_U1.xh.408 X_U1.17 X_U1.xh.410 X_U1.xh.409 0.01
+ X_U1.xh.g0 0.0003
-------------$
ERROR(ORPSIM-16371): Extra text on line
+ min -0.0003
X_U1.xh.g1 X_U1.xh.411 0 X_U1.xh.414 0 0.01 X_U1.xh.g1 3e-4
-------------------------------------------------------$
ERROR(ORPSIM-16371): Extra text on line
+ min 0
X_U1.xh.h0 X_U1.xh.413 0 X_U1.xh.v0 1000 X_U1.xh.h0 0.030
----------------------------------------------------$
ERROR(ORPSIM-16371): Extra text on line


**** EXPANSION OF SUBCIRCUIT X_U1.xo ****
X_U1.xo.c0 1 X_U1.xo.507 8.8e-13
X_U1.xo.c2 X_U1.xo.505 X_U1.xo.504 6e-14
X_U1.xo.c3 X_U1.xo.503 X_U1.xo.504 6e-14
X_U1.xo.d0 X_U1.xo.504 X_U1.xo.503 X_U1.xo.DSIM2
X_U1.xo.d1 X_U1.xo.505 X_U1.xo.504 X_U1.xo.DSIM2
X_U1.xo.d2 X_U1.xo.506 X_U1.xo.505 X_U1.xo.DSIM1
X_U1.xo.d3 X_U1.xo.503 X_U1.xo.501 X_U1.xo.DSIM1
X_U1.xo.e0 X_U1.xo.506 0 X_U1.xo.508 0 1
X_U1.xo.e1 +5V X_U1.xo.501 X_U1.xo.502 0 1
X_U1.xo.e2 X_U1.xo.507 0 +5V 0 0.5
X_U1.xo.g0 0 X_U1.xo.505 X_U1.21 0 -0.0042667 X_U1.xo.g0 0.00032
---------------------------------------------------------$
ERROR(ORPSIM-16371): Extra text on line
+ min -0.00032
X_U1.xo.g1 X_U1.xo.503 0 X_U1.21 0 0.0042667 X_U1.xo.g1 0.00032
--------------------------------------------------------$
ERROR(ORPSIM-16371): Extra text on line
+ min -0.00032
X_U1.xo.g2 +5V 0 X_U1.21 0 -0.0085333 X_U1.xo.g2 0.00064
-------------------------------------------------$
ERROR(ORPSIM-16371): Extra text on line
+ min 0
X_U1.xo.g3 0 0 X_U1.21 0 0.0085333 X_U1.xo.g3 0.00064
----------------------------------------------$
ERROR(ORPSIM-16371): Extra text on line


**** EXPANSION OF SUBCIRCUIT X_U1.xv ****
X_U1.xv.e0 X_U1.xv.302 0 X_U1.13 0 1
X_U1.xv.e1 X_U1.xv.304 0 X_U1.12 0 1
X_U1.xv.g0 X_U1.17 0 poly 1 X_U1.xv.303 0 0 1.71e-06 -3.3e-07 max
--------------------------------------------------------------$
ERROR(ORPSIM-16152): Invalid number
+ 3e-06 min -1e-06 g1
-------------------$
ERROR(ORPSIM-16152): Invalid number
+ 2 0 4 301 6.667e-07 max 2e-06 min 0 r0
--------------------------------------$
ERROR(ORPSIM-16152): Invalid number
+ 302 303 1000 r1
---------------$
ERROR(ORPSIM-16152): Invalid number
+ 303 304 1000 v0
---------------$
ERROR(ORPSIM-16152): Invalid number

  • Cancel
Parents
  • oldmouldy
    oldmouldy over 13 years ago

    Almost certainly due to having a circuit node(s) named +5V, + is a reserved character in SPICE, and therefore PSpice, for "add" or "continuation", name your node VCC, or similar, and assign a 5V source to it. See page 82 of the pspug.pdf in the doc\pspug directory of the installation for assigning of Net Alias.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • oldmouldy
    oldmouldy over 13 years ago

    Almost certainly due to having a circuit node(s) named +5V, + is a reserved character in SPICE, and therefore PSpice, for "add" or "continuation", name your node VCC, or similar, and assign a 5V source to it. See page 82 of the pspug.pdf in the doc\pspug directory of the installation for assigning of Net Alias.

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

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