How to import third-part model of an IGBT with multiple subcircuits?

Hi, I’m trying to import a third-party model of an IGBT which has multiple subcircuits within the model library. When I copy and paste it into Qspice to create an initial symbol by the system, it asks which subcircuit I have to select. However, I need all the subcircuits.
Any idea on how to solve this issue?
Thanks.

I have attached one example here.


  • Behavioral model of IR IGBT Generation 4 Level 1 version 1.0
  • for SPICE compatible simulators
  • (C) Copyright 2021 Infineon Tehnologies. All rights reserved.

  • Model performance :
  • The Level 1 model is based on a behavioral description. The calibration is
  • done with respect to the latest datasheet content. The transient calibration
  • procedure is based on the “Dynamic test circuit”, which is stated in the
  • latest datasheet using the information of parasitic elements and nominal
  • conditions given in the table “Switching Characteristic, Inductive Load”.
  • The usage of the compact models is restricted to a temperature range between
  • 25°C and the maximum allowed junction temperature, which is stated in the
  • corresponding data sheet.
  • The static temperature of the model can be set by using the SPICE command
  • “.TEMP” in the simulator interface.

  • PINS:

  • | PIN | DESCRIPTION

  • | C | IGBT collector for single devices and DuoPacks

  • | G | IGBT gate for single devices and DuoPacks

  • | E | IGBT emitter for single devices and DuoPacks

  • Product Device Type Vce/V Ic/A Package L1-model name

  • AUIRG4PH50S Single IGBT 1200 33 TO247AC AUIRG4PH50S_L1
  • AUIRGDC0250 Single IGBT 1200 33 Super-TO-220 AUIRGDC0250_L1

  • DISCLAIMER
  • INFINEON’S MODEL TERMS OF USE
  • BY DOWNLOADING AND/OR USING THIS INFINEON MODEL (“MODEL”), THE USER
  • (INCLUDING YOU) AGREES TO BE BOUND BY THE TERMS OF USE HERE STATED. IF USER
  • DOES NOT AGREE TO ALL TERMS OF USE HERE STATED, USER SHALL NOT DOWNLOAD,
  • USE OR COPY THE MODEL BUT IMMEDIATELY DELETE IT (TO THE EXTENT THAT IT
  • WAS DOWNLOADED ALREADY).
    1. SCOPE OF USE
  • 1.1 Any use of this Model provided by Infineon Technologies AG is subject
  • to these Terms of Use.
    
  • 1.2 This Model, provided by Infineon, does not fully represent all of the
  • specifications and operating characteristics of the product to which
    
  • this Model relates.
    
  • 1.3 This Model only describes the characteristics of a typical product.
  • In all cases, the current data sheet information for a given product
    
  • is the final design guideline and the only actual performance
    
  • specification. Although this Model can be a useful tool to evaluate
    
  • the product performance, it cannot simulate the exact product performance
    
  • under all conditions and it is also not intended to replace
    
  • bread-boarding for final verification.
    
    1. IMPORTANT NOTICE
  • 2.1 Infineon Technologies AG (“Infineon”) is not and cannot be aware of the
  • specific application of the Infineon's Model by User. However, Model may
    
  • from time to time be used by User in potentially harmful and/or life-
    
  • endangering applications such as traffic, logistic, medical, nuclear
    
  • or military applications or in other applications where failure of the
    
  • Model may predictably cause damage to persons' life or health or to
    
  • property (hereinafter "Critical Applications").
    
  • 2.2 User acknowledges that Infineon has not specifically designed or
  • qualified the Model for Critical Applications that the Model may contain
    
  • errors and bugs and that User is required to qualify the Model for
    
  • Critical Applications pursuant to the applicable local quality, safety
    
  • and legal requirements before permitting or giving access to any such use.
    
    1. CONFIDENTIAL INFORMATION
  • User shall treat ideas, concepts and information incorporated in the
    
  • Model, the documentation and the content of this Terms of Use (together
    
  • hereinafter "Confidential Information") confidential, not disclose it to
    
  • any third party unless otherwise agreed in writing between User and
    
  • Infineon, not use it for any other purposes than using the Model for
    
  • simulation and testing purposes only.
    
    1. WARRANTY
  • 4.1 User acknowledges that the Model is provided by Infineon under this Terms
  • of Use is provided free of charge and "AS IS" without any warranty or
    
  • liability of any kind and Infineon hereby expressly disclaims any
    
  • warranties or representations, whether express, implied, statutory or
    
  • otherwise, including but not limited to warranties of workmanship,
    
  • merchantability, fitness for a particular purpose, defects in the
    
  • Model, or non-infringement of third parties intellectual property rights.
    
  • 4.2 Infineon reserves the right to make corrections, deletions, modifications,
  • enhancements, improvements and other changes to the Model at any time
    
  • or to move or discontinue any Model without notice.
    
    1. LIABILITY
  • 5.1 Nothing in this Terms of Use shall limit or exclude Infineon’s liability
  • under mandatory liability laws, for injuries to life, body or health,
    
  • for fraudulent concealment of defects in the software, or in cases
    
  • of Infineon's intentional misconduct or gross negligence.
    
  • 5.2 Without prejudice to Sections 5.1, in cases of Infineon’s slight
  • negligent breach of obligations that restrict essential rights or duties
    
  • arising from the nature of this Terms of Use in a way that there is a
    
  • risk of non-achievement of the purpose of this Terms of Use or of an
    
  • obligation whose observance User regularly may trust in and whereas
    
  • compliance with only makes proper execution of this Terms of Use
    
  • possible, Infineon's liability shall be limited to the typically,
    
  • foreseeable damage.
    
  • 5.3 Without prejudice to Sections 8.1 and 8.2, Infineon’s liability under
  • this Agreement shall be excluded in all other cases.
    
    1. EXPORT REGULATIONS
  • The User shall comply with all applicable national and international
    
  • laws and regulations, in particular the applicable export control
    
  • regulations and sanction programs. The User also agrees not to
    
  • export, re-export or transfer any software or technology developed
    
  • with or using information, software or technology offered by Infineon,
    
  • in violation of any applicable laws or regulations of the competent
    
  • authorities. Further, the User shall neither use any products,
    
  • information, software and technology offered by Infineon in or in
    
  • connection with nuclear technology or weapons of mass destruction
    
  • (nuclear, biological or chemical) and carriers thereof nor supply
    
  • military consignees.
    
    1. TERMINATION OF USE PERMIT
  • If the User violates these Terms of Use, such User's permit to use
    
  • this Model terminates automatically. In addition, Infineon may
    
  • terminate the User's permit to use this Model at its discretion and
    
  • at any time regardless of any violation of these Terms of Use. In
    
  • any of the foregoing events, the User is obliged to immediately destroy
    
  • any content that has been downloaded or printed from Infineon's website.
    
    1. MISCELLANEOUS
  • 8.1 These Terms of Use are subject to the laws of the Federal Republic
  • of Germany with the exception of the United Nations on Purchase
    
  • Contracts on the International Sale of Goods dated April 11, 1980 (CISG).
    
  • The exclusive place of jurisdiction is Munich, Germany.
    
  • 8.2 Should any provision in these Terms of Use be or become invalid, the
  • validity of all other provisions or agreements shall remain unaffected
    

.SUBCKT AUIRG4PH50S_L1 C G E PARAMS: TJ= {TEMP}
X018Q C G E E2 Z00GE PARAMS: TJ= {TJ}
.ENDS

.SUBCKT AUIRGDC0250_L1 C G E PARAMS: TJ= {TEMP}
X019Q C G E E2 Z00GE PARAMS: TJ= {TJ}
.ENDS

.SUBCKT Z00GE C G E E2 PARAMS: TJ= {TEMP} N15ME=298.15 N19EO=0.36643
.FUNC N1ARJ(N1BXU) {IF(N1BXU>=0,IF(N1BXU>50,(N1BXU-49)EXP(50),EXP(N1BXU)),IF(ABS(N1BXU)>50,1/((ABS(N1BXU)-49)
+EXP(50)),1/EXP(ABS(N1BXU))))}
.FUNC N1C4N(N1D0Q,N1GSW,N1IQJ,N1IYE) {N1GSW+N1IQJ
N1ARJ(N1IYE
N1D0Q)}
.PARAM KP= {N19EON1KILPWR((TJ+273.15)/N15ME,-1.5)} N1KIL=131.1486
.PARAM N1KX5= {N1LJH+N1MWL*(TJ+273.15-N15ME)} N1LJH=5.59 N1MWL=-0.009288
.PARAM N1O6L=0.0099897
.PARAM N1OUH=4.0091
.PARAM IS= {N19EON1SRDEXP((((TJ+273.15)/N15ME)-1)N1TKI)} N1SRD=0.00084784 N1TKI=9.0337
.PARAM N1U6R= {N1UWR+N1VN4
(TJ+273.15-N15ME)} N1UWR=0.010916 N1VN4=1E-05
.PARAM N1WJM= {N1XNK+N1ZVB*(TJ+273.15-N15ME)} N1XNK=-5.662E-06 N1ZVB=7E-07
.PARAM N21OZ= {N236T+N23R6*(TJ+273.15-N15ME)} N236T=-8.6643E-05 N23R6=8E-07
.PARAM N24EX=15.1056
.PARAM N25F7= {N269E+N270J*(TJ+273.15-N15ME)} N269E=0.00077486 N270J=2.5E-05
.PARAM N27AX= {N29PM+N29RE*(TJ+273.15-N15ME)} N29PM=1.8566 N29RE=0.53216
.PARAM N2B05= {N2B2U+N2COK*(TJ+273.15-N15ME)} N2B2U=-0.762 N2COK=-0.004905
.PARAM N2D8A= {N2E6K+N2EBQ*(TJ+273.15-N15ME)} N2E6K=-2.2049 N2EBQ=-0.0022204
.PARAM N2EFO= {N2GBE+N2H60*(TJ+273.15-N15ME)} N2GBE=0 N2H60=0
.PARAM N2HOI= {N2JKZ+N2JLG*(TJ+273.15-N15ME)} N2JKZ=0 N2JLG=0
.PARAM N2L3G=7.401
.PARAM N2MJM=12.9246
.PARAM N2P7A= {IF(N1C4N(N2MJM,N25F7,N27AX,N2B05)>N1C4N(N2L3G,N25F7,N27AX,N2B05),N2L3G,N2MJM)}
.PARAM N2SJE= {IF(N1C4N(N2MJM,N25F7,N27AX,N2B05)>N1C4N(N2L3G,N25F7,N27AX,N2B05),N2MJM,N2L3G)}
.PARAM N2SLP= {IF(N1C4N(N2MJM,N2D8A,N2EFO,N2HOI)>N1C4N(N2L3G,N2D8A,N2EFO,N2HOI),N2L3G,N2MJM)}
.PARAM N2SUY= {IF(N1C4N(N2MJM,N2D8A,N2EFO,N2HOI)>N1C4N(N2L3G,N2D8A,N2EFO,N2HOI),N2MJM,N2L3G)}
.PARAM N2SWU=1; 1==N2T1X N2TIY,0==N2US5 N2TIY
.PARAM N2W3B=0; 1==N2Y4P(N30UA),0==N2Y4P
.PARAM N2Y4P= {N19EON31NG} N31NG=0.9E-8
.PARAM N34Q8=1E-08
.PARAM N37AX=0
.PARAM N3DQV= {N19EO
N3EJ7} N3EJ7=1.75E-8
.PARAM N3FY1= {N19EON3G9J} N3G9J=1.30E-09
.PARAM N3GAC=30.0
.PARAM N3J6V=-0.69
.PARAM N3JBI=3.6162E-10
.PARAM N3K2P= {N19EO
N3KNX} N3KNX=9.4886E-10
.PARAM N3LLM=0.0011065
.PARAM N3NX7=-0.36076
.PARAM N3Q32= {N3QI8+N3T3Q*(TJ+273.15-N15ME)} N3QI8=9.5E-7 N3T3Q=0.5E-8
.PARAM N3UCJ=0.8
.PARAM N3XQT=7E-9
.PARAM N3XVA=1E-10
.PARAM N3YVN= {N3Z89+N3ZBF*(TJ+273.15-N15ME)} N3Z89=6E-2 N3ZBF=1E-4
X03ER C G E E2 Z0114 PARAMS: TJ= {TJ} N15ME= {N15ME} N19EO= {N19EO} KP= {KP} N1O6L= {N1O6L} N1OUH= {N1OUH} IS= {IS} N2Y4P= {N2Y4P}
+N3DQV= {N3DQV} N3JBI= {N3JBI} N3XQT= {N3XQT}
+N3XVA= {N3XVA} N3YVN= {N3YVN} N1U6R= {N1U6R} N1WJM= {N1WJM} N21OZ= {N21OZ} N25F7= {N25F7} N27AX= {N27AX} N2B05= {N2B05}
+N2D8A= {N2D8A} N2EFO= {N2EFO} N2HOI= {N2HOI} N3FY1= {N3FY1} N3GAC= {N3GAC} N3J6V= {N3J6V} N3K2P= {N3K2P}
+N3LLM= {N3LLM} N3NX7= {N3NX7} N3Q32= {N3Q32} N1KX5= {N1KX5} N3UCJ= {N3UCJ} N34Q8= {N34Q8} N37AX= {N37AX} N1LJH= {N1LJH}
+N1MWL= {N1MWL} N24EX= {N24EX} N2P7A= {N2P7A}
+N2SJE= {N2SJE} N2SLP= {N2SLP} N2SUY= {N2SUY} N2SWU= {N2SWU} N2W3B= {N2W3B}
.ENDS

.SUBCKT Z0114 C G E E2 PARAMS: TJ= {1} N15ME= {1} N19EO= {1} KP= {1} N1O6L= {1} N1OUH= {1} IS= {1} N2Y4P= {1} N3DQV= {1} N3JBI= {1}
+N3XQT= {1} N3XVA= {1} N3YVN= {1}
+N1U6R= {1} N1WJM= {1} N21OZ= {1} N25F7= {1} N27AX= {1} N2B05= {1} N2D8A= {1} N2EFO= {1} N2HOI= {1} N3FY1= {1} N3GAC= {1} N3J6V= {1}
+N3K2P= {1} N3LLM= {1} N3NX7= {1} N3Q32= {1} N1KX5= {1} N3UCJ= {1}
+N34Q8= {1} N37AX= {1} N1LJH= {1} N1MWL= {1} N24EX= {1} N2P7A= {1} N2SJE= {1} N2SLP= {1} N2SUY= {1} N2SWU= {1} N2W3B= {1}
.FUNC N1ARJ(N1BXU) {IF(N1BXU>=0,IF(N1BXU>50,(N1BXU-49)EXP(50),EXP(N1BXU)),IF(ABS(N1BXU)>50,1/((ABS(N1BXU)-49)
+EXP(50)),1/EXP(ABS(N1BXU))))}
.FUNC N403G(N1BXU) {(1-N1ARJ(-2
N1BXU))/(1+N1ARJ(-2
N1BXU))}
.FUNC N45LL(N1BXU) {0.5*(N1ARJ(N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N3LLM,N3NX7)}
R0F36 13 5 {10E-3}
R0F7I 14 5 {100}
G0FFZ 5 11 VALUE= {MAX(ABS(I(V0OOV))-ABS(I(V0P0Y)),0)}
G0FP3 0 10 VALUE= {ABS(I(V0MSJ))*N3UCJ}
G0FW2 8 9 VALUE= {(V(8,0)*1E-6)/N3Q32}
C0HFN 0 8 {1E-6}
L0KES E E2 {N3XQT}
L0KRJ E2 E1 {N3XVA}
G0LAW N4J5G N4BG7 VALUE= {V(N4J5G,N4BG7)/N3YVN}
V0MSJ 4 3 {0}
V0MVQ C 5 {0}
V0OOV 9 0 {0}
V0P0Y 10 8 {0}
V0RUJ 11 E1 {0}
V0RX8 G N4J5G {0}
R0W6J 5 0 {100E6}
R0WQL 15 E1 {100E6}
R0WVR 6 N4BG7 {100E6}
R0XR7 7 E1 {100E6}
R12ST 8 0 {100E6}
R132G E E1 {100E6}
.ENDS

You have two ways to include all subcircuits

  1. In autogenerate symbol window, it has an option “Include Entire File”, select that and all subcircuits will be included in that one line netlist syntax in embedded symbol
  2. Or you just take advantage of using autogenerate symbol for generating symbol and pin. After symbol is generated, right click > symbol properties. In library, delete one line netlist and put your library file name there (e.g. Mylibrary.lib)

Thank you. I tried both of them. however, I am getting the same error which is “Fatal error: Timestep too small (1.25e-19) at t=0”.
I tried including .options gshunt = 1e-9 and .options MAXSTEP = 100n, but still the same error.

Then…better attache your schematic

Not img, simulation schematic file and symbol used file

I tried but, I couldn’t upload the schematic file. I’m getting the following text…

image

Following the same procedure, I tried the simulation using another IGBT model and it worked perfectly. I think the Spice model of the previous IGBT is not complete or can be another reason also.

The “Timestep” selection is tricky, especially for voltage sources greater than 1 kV.