Hello. I'm new to PSPICE (Orcad 10) and am having trouble with
invalid expressions in subckts. As part of the .out file it says
"Error - missing or invalid expression" and points to V(0#) where
the 0# is node in the original .subckt file. Why is the original node
"V(IN)" lost?
I didn't create the original subckt but used a conversion program to
convert an IBIS model to SPICE that created many subcircuits and
models.
Thanks in advance for any guidance!
*** EXPANSION OF SUBCIRCUIT X_U2 ****
X_U2.C_COMP X_U2.DIE 0 3e-012
X_U2.R_COMP X_U2.DIE 0 1e+012
X_U2.G1 X_U2.DIE 0 VALUE
{(V(IPD)*V(XVKDR.VKDR)*((V(0#)>=2.02)*(V(1#)>=2.02))+V(
+ IPD)*V(XVKDF.VKDF)*(((V(0#)>=2.02)*(V(1#)>=2.02)==0)))}
-------------------------$
ERROR -- Missing or invalid expression
X_U2.G2 X_U2.DIE VCC0 VALUE
{(V(IPU)*V(XVKUR.VKUR)*((V(0#)>=2.02)*(V(1#)>=2.02))+V(
+ IPU)*V(XVKUF.VKUF)*(((V(0#)>=2.02)*(V(1#)>=2.02)==0)))}
----------------------------$
ERROR -- Missing or invalid expression
In the original
The original from the library looks likes this:
..SUBCKT SDRDAT_A16_MAXVCC IN EN OUT VCC VEE
C_COMP DIE VEE 3.3e-012
R_COMP DIE VEE 1e+012
G1 DIE VEE VALUE =
{(V(IPD)*V(XVKDR.VKDR)*((V(IN)>=2.02)*(V(EN)>=2.02))+V(IPD)*V(XVKDF.VKDF)*(((V(IN)>=2.02)*(V(EN)>=2.02)==0)))}
G2 DIE VCC VALUE =
{(V(IPU)*V(XVKUR.VKUR)*((V(IN)>=2.02)*(V(EN)>=2.02))+V(IPU)*V(XVKUF.VKUF)*(((V(IN)>=2.02)*(V(EN)>=2.02)==0)))}
The schematic netlist is pretty simple with just the subcircuit and
power supply.
**** INCLUDING SCHEMATIC1.net ****
* source IMPORTTRY
V_V1 VCC0 0 3.3Vdc
X_U2 IN0 EN0 OUT0 VCC0 0 SDRDAT_A16_TYPVCC
V_VIN IN0 0 0Vdc
V_V2 EN0 0 2.2Vdc
R_R1 0 OUT0 50
invalid expressions in subckts. As part of the .out file it says
"Error - missing or invalid expression" and points to V(0#) where
the 0# is node in the original .subckt file. Why is the original node
"V(IN)" lost?
I didn't create the original subckt but used a conversion program to
convert an IBIS model to SPICE that created many subcircuits and
models.
Thanks in advance for any guidance!
*** EXPANSION OF SUBCIRCUIT X_U2 ****
X_U2.C_COMP X_U2.DIE 0 3e-012
X_U2.R_COMP X_U2.DIE 0 1e+012
X_U2.G1 X_U2.DIE 0 VALUE
{(V(IPD)*V(XVKDR.VKDR)*((V(0#)>=2.02)*(V(1#)>=2.02))+V(
+ IPD)*V(XVKDF.VKDF)*(((V(0#)>=2.02)*(V(1#)>=2.02)==0)))}
-------------------------$
ERROR -- Missing or invalid expression
X_U2.G2 X_U2.DIE VCC0 VALUE
{(V(IPU)*V(XVKUR.VKUR)*((V(0#)>=2.02)*(V(1#)>=2.02))+V(
+ IPU)*V(XVKUF.VKUF)*(((V(0#)>=2.02)*(V(1#)>=2.02)==0)))}
----------------------------$
ERROR -- Missing or invalid expression
In the original
The original from the library looks likes this:
..SUBCKT SDRDAT_A16_MAXVCC IN EN OUT VCC VEE
C_COMP DIE VEE 3.3e-012
R_COMP DIE VEE 1e+012
G1 DIE VEE VALUE =
{(V(IPD)*V(XVKDR.VKDR)*((V(IN)>=2.02)*(V(EN)>=2.02))+V(IPD)*V(XVKDF.VKDF)*(((V(IN)>=2.02)*(V(EN)>=2.02)==0)))}
G2 DIE VCC VALUE =
{(V(IPU)*V(XVKUR.VKUR)*((V(IN)>=2.02)*(V(EN)>=2.02))+V(IPU)*V(XVKUF.VKUF)*(((V(IN)>=2.02)*(V(EN)>=2.02)==0)))}
The schematic netlist is pretty simple with just the subcircuit and
power supply.
**** INCLUDING SCHEMATIC1.net ****
* source IMPORTTRY
V_V1 VCC0 0 3.3Vdc
X_U2 IN0 EN0 OUT0 VCC0 0 SDRDAT_A16_TYPVCC
V_VIN IN0 0 0Vdc
V_V2 EN0 0 2.2Vdc
R_R1 0 OUT0 50