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.

TINA TI Spice Model Import

Reference slva527.pdf

  

Tried to import spice model from vendor website.  .CIR file would compile successfully, but when I tried to the “New Marco Wizard” there were no sub-circuit files to pick from, the dialog box was blank.

  • Joseph,

    Could you provide the .cir file that compiled correctly? Please note that if there is only a .MODEL statement in the .cir file and no .SUBCKT, the New Macro Wizard cannot be used. In order to use the New Macro Wizard for .MODEL files, simply instantiate the .MODEL into a .SUBCKT:

    .subckt diode 1 2
    ddio 1 2 legd
    .model legd d is = 1.29079E-005 n = 1.30606 rs = 0.0238242
    + eg = 0.651876 xti = 1.88931 tnom = 27
    + cjo = 8.63505E-010 vj = 0.700074 m = 0.617102 fc = 0.5
    + tt = 1.4427E-009 bv = 44 ibv = 10 af = 1 kf = 0
    .ends diode

    In this example, the .MODEL statement for the diode is now a .SUBCKT statement with the diode placed accordingly.

    Britt

  • 3058.DF06M.cir

     

    .cir does not contain .SUBCKT statement.  However, the new marco wizard did create a .TSM file and schematic symbol that I could place onto the schematic page. The model parameters are the same as the imported spice file.

     

     

  • Joseph,

    In this case, the .cir file was simply a single .MODEL statement (normally called a model file). A .cir (short for circuit) file normally contains more than a single element since a circuit usually requires more than a single element. Since TINA recognized this file as a single diode, you are not give the choice of a shape to assign or the connectivity of the .TSM file. TINA assigns it automatically. If you place the .TSM file (using Insert--> Macro) and select the device, right click on it and click on the Enter Macro option. You will see that the macro pins were added to a diode and the diode parameters are in the model behind that symbol (you could have done this yourself with the method I stated before, but you would then be using a .SUBCKT). As long as the .MODEL is a standard format and supported in TINA, TINA will create a .TSM file for the simple .MODEL statement.

    Normally, a .cir file does contain a lot more than the simple .MODEL statement. In this case, TINA created the macro for you in a TINA format, not a .SUBCKT format.

    It should function the same as a .SUBCKT version would.

    Britt