This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

INA241A: Spice model does not work

Part Number: INA241A
Other Parts Discussed in Thread: TINA-TI

When trying to simulate the part in Simetrix I get the following error:

There are errors in the circuit. Simulation aborted

INA241A1.lib (422): .SUBCKT VBIAS_GEN_INA241A1 VBIAS GND VS GND

*** ERROR *** Duplicate nodes in sub-circuit definition

  • Hi Paul.

    why not simulating the INA241 in TINA-TI? The Spice model is optimized for TINA-TI. TINA-TI is super simple and is free:

    https://www.ti.com/tool/TINA-TI

    Kai

  • Hello Paul, 

    This is a syntax difference between Simetrix and Cadence/TINA. It seems you can’t have duplicate names for two different nodes. It should be a simple fix in the net list by deleting the extra GND or renaming it to something else. I will test and let you know by tomorrow. 

    Sincerely,

    Peter

  • Hey Paul,

    If you change the second instance of "GND" to something else (it actually does not matter what you choose, I chose "Vee"), then the model will work in Simetrix.

    I am going to fix this Simetrix bug for this model and other one with same bug.

    Sincerely,

    Peter

  • Hi Peter,

    Sorry, I am not familiar with modifying SPICE models. There are references to GND throughout the model - which ones do I need to change ?

    .SUBCKT INA241A1-%REF% IN+ IN- VS OUT GND REF1 REF2

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

    .MODEL R_NOISELESS RES (T_ABS=-273.15)

    C_C10 GND N2880223 1E-15

    C_C11 N2880633 GND 1E-15

    C_C12 GND N2879943 1E-15

    C_C13 N2880405 GND 1E-15

    C_C14 GND N2879805 1E-15

    C_C15 N2880317 GND 1E-15

    C_C16 GND N2879773 1E-15

    C_C33 VS_B 0 1E-15

    C_C35 N2883225 GND 1E-15

    C_C36 VICM_2 GND 2E-5

    C_C37 VSENSE_2 GND 5E-5

    C_C38 VS_B2 0 1E-8

    C_C39 VBIAS GND 2E-5

    C_C7 N2881925 GND 1E-15

    C_C8 GND N2879341 1E-15

    C_C9 GND N2880573 1E-15

    C_CC CLAMP GND 202E-9

    C_C_VIMON GND VIMON 1E-9

    C_C_VIMON1 GND VIMON2 0.01E-9

    C_C_VOUT_S GND VOUT_S 0.1E-9

    E_E24 N2883709 IN- CMR GND -0.5

    E_E25 N2882163 VN CMR GND 0.5

    E_E27 N2882177 N2882173 PSR GND 0.5

    E_E28 N2883725 N2883719 PSR GND -0.5

    E_E3 N2883221 GND OUT GND 1

    E_E34 N2882173 N2882163 RVR GND 0.5

    E_E35 N2883719 N2883709 RVR GND -0.5

    G_G12 VGROSS GND CLAMP GND -1E-3

    G_G15 CLAW_CLAMP GND N2930269 GND -1E-3

    G_G16 CL_CLAMP GND CLAW_CLAMP GND -1E-3

    G_G36 N2878395 0 VS 0 -1

    G_G61 N2878447 GND GND IN- -1

    G_G62 VICM GND IN+ N2878447 -0.5

    G_G66 ACL GND CL_CLAMP GND -1

    G_G67 VSENSE GND IN+ IN- -1

    G_G79 VS GND VIMON2 GND 1E-3

    G_G8 VS_CLP GND N2879341 GND -1E-3

    G_G80 REF_B GND REF1 N2884731 -0.5

    G_G81 N2884731 GND GND REF2 -1

    G_G82 N2881941 VBIAS N2881925 N2883225 -1E-5

    G_G83 VBIAS N2883615 N2883225 N2881925 1E-5

    G_G84 N2883879 GND VSENSE_2 GND 1

    G_G9 GND_CLP GND N2880573 GND -1E-3

    I_IOS IN+ GND DC 50E-9

    I_I_Q VS GND DC 3.2E-3

    R_R107 N2878395 0 R_NOISELESS 1

    R_R110 N2878395 VS_B R_NOISELESS 1E-3

    R_R147 N2878447 GND R_NOISELESS 1

    R_R148 VICM GND R_NOISELESS 1

    R_R153 GND VCM_MIN R_NOISELESS 1E9

    R_R154 VCM_MAX GND R_NOISELESS 1E9

    R_R155 GND N2884287 R_NOISELESS 1

    R_R156 N2883225 N2884287 R_NOISELESS 1E-3

    R_R157 GND ACL R_NOISELESS 1

    R_R158 VSENSE GND R_NOISELESS 1

    R_R160 VS GND 1E8 TC=0,0

    R_R211 N2884731 GND R_NOISELESS 1

    R_R212 REF_B GND R_NOISELESS 1

    R_R213 ACL N2884563 50K TC=0,0

    R_R214 ACL N2884563 50.003K TC=0,0

    R_R215 REF2 REF_MID 50.003K TC=0,0

    R_R216 REF1 REF_MID 50.00K TC=0,0

    R_R217 VIMON2 VIMON R_NOISELESS 100

    R_R218 VICM VICM_2 R_NOISELESS 1E-3

    R_R219 VSENSE_2 VSENSE R_NOISELESS 1E-3

    R_R220 VS_B VS_B2 R_NOISELESS 1E-3

    R_R221 N2878127 VBIAS R_NOISELESS 1E-3

    R_R222 N2883879 GND R_NOISELESS 1

    R_R27 GND N2881911 R_NOISELESS 1

    R_R28 N2881925 N2881911 R_NOISELESS 1E-3

    R_R29 N2879319 VS_B R_NOISELESS 1E3

    R_R30 N2879341 N2879319 R_NOISELESS 1E-3

    R_R31 VS_CLP GND R_NOISELESS 1E3

    R_R32 N2880557 GND R_NOISELESS 1E3

    R_R33 N2880573 N2880557 R_NOISELESS 1E-3

    R_R34 GND_CLP GND R_NOISELESS 1E3

    R_R35 GND VS_CLP R_NOISELESS 1E9

    R_R36 N2880195 GND R_NOISELESS 1

    R_R37 N2880223 N2880195 R_NOISELESS 1E-3

    R_R38 N2880633 N2880619 R_NOISELESS 1E-3

    R_R39 GND N2880619 R_NOISELESS 1

    R_R40 GND GND_CLP R_NOISELESS 1E9

    R_R41 GND N2879019 R_NOISELESS 1E9

    R_R42 N2879915 GND R_NOISELESS 1

    R_R43 N2879943 N2879915 R_NOISELESS 1E-3

    R_R44 N2880405 N2880391 R_NOISELESS 1E-3

    R_R45 GND N2880391 R_NOISELESS 1

    R_R46 GND N2881027 R_NOISELESS 1E9

    R_R49 GND N2878913 R_NOISELESS 1E9

    R_R50 N2879777 GND R_NOISELESS 1

    R_R51 N2879805 N2879777 R_NOISELESS 1E-3

    R_R52 N2880317 N2880303 R_NOISELESS 1E-3

    R_R53 GND N2880303 R_NOISELESS 1

    R_R54 GND N2880939 R_NOISELESS 1E9

    R_R55 N2879773 VGROSS R_NOISELESS 1E-3

    R_R60 GND N2881961 R_NOISELESS 1E6

    R_R61 GND CLAMP R_NOISELESS 1E6

    R_R62 GND VGROSS R_NOISELESS 1E3

    R_R65 GND CLAW_CLAMP R_NOISELESS 1E3

    R_R66 GND CL_CLAMP R_NOISELESS 1E3

    R_R81 GND N2883193 R_NOISELESS 1E9

    R_R82 VIMON N2883193 R_NOISELESS 100

    R_R83 GND N2883221 R_NOISELESS 1E9

    R_R84 VOUT_S N2883221 R_NOISELESS 100

    R_RLN N2883615 N2882223 R_NOISELESS 106K

    R_RLP N2881941 N2881947 R_NOISELESS 106K

    V_VCM_MAX VCM_MAX GND 120

    V_VCM_MIN VCM_MIN GND -15

    V_V_GRN N2880939 GND -29.5

    V_V_GRP N2878913 GND 27.1

    V_V_ISCN N2881027 GND -25

    V_V_ISCP N2879019 GND 17

    X_AOL_1 N2881947 N2882223 GND N2881961 AOL_1_INA241A1

    X_AOL_2 N2881961 GND GND CLAMP AOL_2_INA241A1 PARAMS: GAIN=1E-2 IPOS=1.62 INEG=-1.62

    X_CLAWN GND VIMON2 GND N2880557 CLAWN_INA241A1

    X_CLAWP VIMON2 GND N2879319 VS_B CLAWP_INA241A1

    X_CLAW_AMP VS_CLP GND_CLP VOUT_S GND N2880195 N2880619 CLAMP_AMP_LO_INA241A1

    X_CLAW_SRC N2880223 N2880633 CLAW_CLAMP GND CLAW_SRC_INA241A1 PARAMS: GAIN=1 IPOS=5.42E-2 INEG=-5.9E-2

    X_CL_AMP N2879019 N2881027 VIMON GND N2879915 N2880391 CLAMP_AMP_LO_INA241A1

    X_CL_SRC N2879943 N2880405 CL_CLAMP GND CL_SRC_INA241A1 PARAMS: GAIN=1 IPOS=1.08E-1 INEG=-1.18E-1

    X_DC_REJ_SUB_CMR VICM GND N2877867 GND DC_REJ_SUB_INA241A1 PARAMS: DC_REJ=154 R=1

    X_DC_REJ_SUB_PSR VS_B GND N2878761 GND DC_REJ_SUB_INA241A1 PARAMS: DC_REJ=125 R=1

    X_GR_AMP N2878913 N2880939 N2879773 GND N2879777 N2880303 CLAMP_AMP_HI_INA241A1

    X_GR_SRC N2879805 N2880317 CLAMP GND GR_SRC_INA241A1 PARAMS: GAIN=1 IPOS=3.23 INEG=-3.23

    X_H3 OUT N2883729 N2883193 GND 08_COMPLETE_A1_H3_INA241A1

    X_P1_27 VGROSS GND N2883141 GND P1_INA241A1 PARAMS: GAIN=1 FP=10E6 R=1E6

    X_P1_28 N2883141 GND N2883147 GND P1_INA241A1 PARAMS: GAIN=1 FP=11E6 R=1E7

    X_P1_29 N2883147 GND N2883153 GND P1_INA241A1 PARAMS: GAIN=1 FP=11E6 R=5E7

    X_P1_30 N2883153 GND N2883159 GND P1_INA241A1 PARAMS: GAIN=1 FP=11E6 R=1E8

    X_P1_31 N2883159 GND N2930269 GND P1_INA241A1 PARAMS: GAIN=1 FP=11E6 R=1E8

    X_PZ1_17 N2886878 GND N2886886 GND GND PZ1_INA241A1 PARAMS: GAIN=1 FP=9K FZ=31E3 R=1E4

    X_PZ1_18 N2886886 GND N2886892 GND GND PZ1_INA241A1 PARAMS: GAIN=1 FP=9K FZ=32K R=1E5

    X_PZ1_19 N2886892 GND N2886898 GND GND PZ1_INA241A1 PARAMS: GAIN=1 FP=9K FZ=32K R=5E5

    X_U108 REF_B GND N2884927 GND DC_REJ_SUB_INA241A1 PARAMS: DC_REJ=115 R=1

    X_U113 REF_MID N2881947 GAIN_RES_DRIFT_INA241A1 PARAMS: G_RES=475.048K DRIFT_RES_ROOM=1000 RES_DRIFT=5E-4 POL=1

    X_U119 N2878127 GND VS_B GND VBIAS_GEN_INA241A1

    X_U120 N2884563 N2882223 GAIN_RES_DRIFT_INA241A1 PARAMS: G_RES=475.048K DRIFT_RES_ROOM=1000 RES_DRIFT=5E-4 POL=1

    X_U121 N2884927 GND RVR GND P1_INA241A1 PARAMS: GAIN=1 FP=10E6 R=1E6

    X_U122 VICM_2 VS_B2 GND IN+ GND IB_VCM_VS_INA241A1 PARAMS: M_TR=14.264E-6 M_PRE=0.13E-6 M_POST=0.0035E-6 M_VTR_VS_START=-0.27 M_VTR_VS_END=-0.2428 C_VTR_VS_START=-6.96 C_VTR_VS_END=-3.745 M_INEG_VS=-1.1233E-6 C_INEG_VS=-0.157E-6 IPOS_IBCM=35E-6

    X_U123 VICM_2 VS_B2 GND IN- GND IB_VCM_VS_INA241A1 PARAMS: M_TR=14.264E-6 M_PRE=0.13E-6 M_POST=0.0035E-6 M_VTR_VS_START=-0.27 M_VTR_VS_END=-0.2428 C_VTR_VS_START=-6.96 C_VTR_VS_END=-3.745 M_INEG_VS=-1.1233E-6 C_INEG_VS=-0.157E-6 IPOS_IBCM=35E-6

    X_U124 IN+ GND VSENSE_2 IBP_VSENSE_A1_INA241A1

    X_U125 IN- GND N2883879 IBP_VSENSE_A1_INA241A1

    X_U16 N2886898 GND N2886904 GND P1_INA241A1 PARAMS: GAIN=1 FP=120K R=1E6

    X_U17 N2886904 GND N2886910 GND GND PZ1_INA241A1 PARAMS: GAIN=1 FP=910K FZ=2.12E6 R=1E7

    X_VCM_CLAMPN N2883725 GND N2884287 GND VCM_MAX VCM_MIN VCM_CLAMP_INA241A1

    X_VCM_CLAMPP N2882177 GND N2881911 GND VCM_MAX VCM_MIN VCM_CLAMP_INA241A1

    X_VNOISE N2882149 VN VNOISE_INA241A1 PARAMS: NV=62

    X_VOS_DRIFT N2882149 IN+ VOS_DRIFT_INA241A1 PARAMS: DC=12.5E-6 DRIFT=250E-9 POL=1

    X_ZOUT_DC_SUB5 ACL N2887162 N2886878 N2883729 GND ZOUT_DC_SUB_INA241A1 PARAMS: ZOUT_DC=0.09 ZOUT_MAX=300

    X_ZP1LIM5 N2886910 GND N2887162 GND GND ZP1LIM_INA241A1 PARAMS: GAIN=1 FZ=2.12E6 FP=1E11 R=1E8 IPOS=1.02E3 INEG=-1.5E3

    X_ZP1_1 N2877867 GND N2877873 GND GND ZP1_INA241A1 PARAMS: GAIN=1 FP=15K FZ=46 R=1E6

    X_ZP1_10 N2877885 GND N2877891 GND GND ZP1_INA241A1 PARAMS: GAIN=1 FP=6E6 FZ=500K R=5E7

    X_ZP1_11 N2877891 GND N2877897 GND GND ZP1_INA241A1 PARAMS: GAIN=1 FP=10E6 FZ=500K R=7.5E7

    X_ZP1_2 N2877873 GND N2877879 GND GND ZP1_INA241A1 PARAMS: GAIN=1 FP=6E6 FZ=12K R=1E6

    X_ZP1_3 N2877897 GND CMR GND GND ZP1_INA241A1 PARAMS: GAIN=1 FP=1E7 FZ=500K R=1E8

    X_ZP1_4 N2878767 GND PSR GND GND ZP1_INA241A1 PARAMS: GAIN=1 FP=20E6 FZ=2.2K R=1E8

    X_ZP1_6 N2878761 GND N2878767 GND GND ZP1_INA241A1 PARAMS: GAIN=1 FP=23K FZ=160 R=1E8

    X_ZP1_9 N2877879 GND N2877885 GND GND ZP1_INA241A1 PARAMS: GAIN=1 FP=6E6 FZ=460K R=1E7

    .ENDS INA241A1

  • Hey Paul,

    I apologize if I was not being clear. You only need to change the second instance of GND in line 422 of the net list, which was reported in the error message:

    INA241A1.lib (422): .SUBCKT VBIAS_GEN_INA241A1 VBIAS GND VS GND

    There is only one word you have to change. So after the change, line 422 will look like this:

    INA241A1.lib (422): .SUBCKT VBIAS_GEN_INA241A1 VBIAS GND VS Vee

    You are probably going to have to delete the current model from you library and then reimport it with the .lib file having this one word fix.

    Sincerely,

    Peter