Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

Loading SPICE models

hupp
Explorer Explorer
1,140 Views
14 Replies
Message 1 of 15

Loading SPICE models

hupp
Explorer
Explorer

I am trying to load a SPICE model for a Texas Instruments opamp (OPA2863A) but having no luck.    I was able to extract a simplified .CIR from the TINA model that was supplied by TI.  I renamed this "OPA2863A.mdl" so it can be recognized by Fusion.   Here is what happens:

- I select the op-amp and choose "Add Spice Model"
- I then click the "Map" button.
- In the Map To Model dialog window I hit the Load Model... button and chose the "OPA2863A.mdl" file.  This is loaded in and the model name automatically changes to "OPA2863A". All good!
- Now if I click the "OK" button nothing happens.  The dialog window doesn't go away and it does not switch to the "Map P..." tab.   If I click on the "Map P..." tab there are no pins to map.

It seems to me that the ngspice engine is not happy with the model file but there is no error message reported.   Is there some way to get Fusion to report any ngspice errors?   I've attached a screenshot and the model file.

Thanks for any help!
Brian

0 Likes
Accepted solutions (1)
1,141 Views
14 Replies
Replies (14)
Message 2 of 15

jorge_garcia
Autodesk
Autodesk

Hi @hupp,

 

I hope you're doing well. I've passed this along to our developers for review.

 

Let me know if there's anything I can do for you.

 

Best Regards,



Jorge Garcia
​Product Support Specialist for Fusion 360 and EAGLE

Kudos are much appreciated if the information I have shared is helpful to you and/or others.

Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.
1 Like
Message 3 of 15

hupp
Explorer
Explorer
Thanks @jorge.garcia! I look forward to any help the team can give.
0 Likes
Message 4 of 15

holger.vogt
Advocate
Advocate

Unfortunately my Fusion360 (updated today) ships with ngspice-26, which stems from 2014 and does not support this and other PSPICE compatible models. The most recent ngspice-41 (and several earlier versions) support these models (just tested it with ngspice-41).

 

You may ask Autodesk for an update (which should not be too difficult as the ngspice API did not change). A simple replacement of ngspice.exe, some libs required by ngspice, and an one line entry into .spiceinit to achieve PSPICE compatibility would be sufficient (and of course some testing would be due).

0 Likes
Message 5 of 15

jorge_garcia
Autodesk
Autodesk

Hello @holger.vogt,

 

It is always good to hear from you.

 

@hupp,

 

Part of the issue is that there is a verification going on of the model, and issues are not reported to the user.  This is a known gap in the  workflow after and we need to address it.  Regarding the upgrade, we are actively working on this and will release Fusion with the latest stable version of ngspice soon

For now we don't have a good way to get the model fixed, it's likely because of something in the SPICE that is proprietary to TINA. I'm personally excited to see the new version of ngspice in Fusion, I've been waiting on it for a while myself.

 

Let me know if there's anything else I can do for you.

 

Best Regards,



Jorge Garcia
​Product Support Specialist for Fusion 360 and EAGLE

Kudos are much appreciated if the information I have shared is helpful to you and/or others.

Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.
1 Like
Message 6 of 15

holger.vogt
Advocate
Advocate

It is not possible to run the model with ngspice-26. There is no reasonable fix available.

 

With ngspice-41 however it will run out-of-the-box, both the 'TINA' model as well as the original PSPICE model from TI (https://www.ti.com/lit/zip/sbombg1). PSPICE compatible models are preferred over TINA models, but the differences often are marginal.

1 Like
Message 7 of 15

hupp
Explorer
Explorer

Thanks @holger.vogt and @jorge.garcia!  This is very helpful.

So I'll just have to wait until Fusion is updated with a newer ngspice version.  @jorge_garcia will the new update use ngspice-41?   It sure would be nice if any updates would include an error console showing which line of a SPICE model is causing an issue.  Just a thought!

Thanks again!

0 Likes
Message 8 of 15

holger.vogt
Advocate
Advocate

If you are courageous, and you are using MS Windows, and you have some know-how on files and folders, you may do an update yourself immediately.

 

Please have a look at https://ngspice.sourceforge.io/download.html#eagle.

 

Please note that this is neither endorsed by Autodesk, nor is there any warranty.

0 Likes
Message 9 of 15

hupp
Explorer
Explorer

I'm running MacOS but not sure I'd be that daring in any case.  But thanks!

0 Likes
Message 10 of 15

jorge_garcia
Autodesk
Autodesk
Accepted solution

Hello @hupp,

 

The new update we are planning will use ngspice41 or whatever the latest version may be at the time. The errors dialog is supposed to surface to show you what the issues are, so that's a bug that is also going to be addressed.

 

Let me know if there's anything else I can do for you.

 

Best Regards,



Jorge Garcia
​Product Support Specialist for Fusion 360 and EAGLE

Kudos are much appreciated if the information I have shared is helpful to you and/or others.

Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.
1 Like
Message 11 of 15

hupp
Explorer
Explorer

Thanks @jorge_garcia !   I'm looking forward to the update.   I know you can't tell me when it will happen but I can only hope for sooner than later!

Best regards,
Brian

0 Likes
Message 12 of 15

skupinBE26G
Participant
Participant

When can we expect the new update with the stable ngspice simulation?

 

My special problem is: I have downloaded .Lib files from Texas Industries and converted them to .mdl files for Fusion and none of them work in Fusion 360. I also tried .cir files from Analog Devices. They only work partially. I added them for reference. Maybe you could check them out.

 

How can I map them?

 

0 Likes
Message 13 of 15

jorge_garcia
Autodesk
Autodesk

Hi @skupinBE26G,

 

I hope you're doing well. The new ngspice engine will be shipped in Fusion soon, keep an eye out for it. For now, unless they are plain SPICE models you can't use them without heavily altering them.

To give some idea, we are already testing the new version of ngspice in our internal betas.

 

Let me know if there's anything else I can do for you.

 

Best Regards,



Jorge Garcia
​Product Support Specialist for Fusion 360 and EAGLE

Kudos are much appreciated if the information I have shared is helpful to you and/or others.

Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.
0 Likes
Message 14 of 15

panpan_fan
Autodesk
Autodesk

Hi @hupp @holger.vogt @skupinBE26G 

I hope you are doing well!

Today we release Fusion V2.0.18220+ and it will support Pspice model for simulation.

Hope it can solve your problem.

Please upgrade and have a try, thanks!

Regards,

Panpan Fan

1 Like
Message 15 of 15

skupinBE26G
Participant
Participant
NICE
0 Likes