Eagle SPICE Simulation Models not Loading Correctly

Eagle SPICE Simulation Models not Loading Correctly

Anonymous
Not applicable
1,159 Views
6 Replies
Message 1 of 7

Eagle SPICE Simulation Models not Loading Correctly

Anonymous
Not applicable

Hi there, I've spent a lot of effort attempting to learn how to simulate using SPICE within Eagle.  I have read the Eagle Academy blog posts and watched the autodesk videos on youtube.  I am trying to use diode models provided by a handful of manufacturers that I have found on the internet, but I cant seem to get any of them to work.  I get the following errors every time I try and run a simulation.  I'm determined to understand how SPICE works within eagle but am finding it very difficult.  I would greatly appreciate any help I can get.

 

Thanks!

Faith.Screen Shot 2020-09-11 at 2.27.36 PM.pngScreen Shot 2020-09-11 at 2.27.44 PM.pngScreen Shot 2020-09-11 at 2.28.24 PM.pngScreen Shot 2020-09-11 at 2.29.30 PM.pngScreen Shot 2020-09-11 at 2.29.46 PM.pngScreen Shot 2020-09-11 at 2.30.16 PM.pngScreen Shot 2020-09-11 at 2.30.24 PM.png

0 Likes
1,160 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable

I think I am getting somewhere.  I read on another post on the forum that in order to map a non intrinsic diode model I need to map it as a subcircuit.  I noticed that in the manual it shows the following at the end of the model text in a subcircuit example:

 

.SUBCKT <model_name> N1 <N2; N3 ...>

.ENDS <model_name

 

Presumably, the .SUBCKT and .ENDS lines are to tell EAGLE that this is the end of the subcircuit model description, but what does "N1 <N2; N3 ...>"  mean?  Just for kicks I tried adding it to the end of the model description,(or is it the model definition?) but it came back with the error "The # of pins on the part(2) must match the # of pins(4) in the model definition.  I read through the model text and couldn't find any abbreviations that appear to reference the number of pins in the model.  I checked in the map pins tab but there is nothing listed there except for "D1" which is the part label.  I'm stumped at this point but will continue reading the manual and messing around in eagle.  Any help would be very appreciated.

 

Thanks!

Faith.

Screen Shot 2020-09-11 at 9.05.46 PM.png

0 Likes
Message 3 of 7

demariano95
Explorer
Explorer

I am having the exact same problem as you. Was trying to simulate a circuit with a BZX84C5V1 zener diode. I noticed it is present in the built-in library but there is no .mdl associated with it. So I searched online and found a SPICE model that apparently is fit for the zener diode, but when I try to import it into Eagle I only get errors and the simulation never works.

I had that mismatch in the pin number error too, but then I messed with the .mdl code and got through it. Ultimately I am getting the following error message:

Untitled.pngI am also determined to learn to work with Eagle and to make this work, but would really appreciate any help I can get.

0 Likes
Message 4 of 7

jorge_garcia
Autodesk
Autodesk
Hi @demariano95,

I hope you're doing well. Since the model has a subcircuit you have to go to the previous dialog and set the type of the component to be X. Once you do that then it will allow you assign the model.

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.
Message 5 of 7

demariano95
Explorer
Explorer

Thank you for your answer, and as a matter of fact there is something else you could probably help me with.

I have already tried changing the type of the model to X: Subcircuit. And indeed it allowed me to save the model.

But when I go to try and simulate the circuit, an error pops up with the message "Missing SUBCKT: bzx84c5v1", which is the model I had just saved in the add model dialog.

Thanks in advance!

Message 6 of 7

demariano95
Explorer
Explorer

In my previous post I meant to say something along the lines of "how do I fix this error?" but forgot lol

Message 7 of 7

Anonymous
Not applicable

Hi Demariano95, I came across the same problem myself while tinkering with a zener model.  It turns out that the problem was in the model name of the diode.  If the Model name that you provide in the "Load Model" window does not match the model name in the .SUBCKT line within the model text, then the simulator won't be able to find it when running the simulation.  I'll include an example below. 

 

Cheers!

Faith. 

Screen Shot 2020-09-20 at 8.58.07 AM.png

0 Likes