Community
Fusion Electronics
Working an electronics project and need help with the schematic, the PCB, or making your components? Join the discussion as our community of electronic design specialists and industry experts provide you their insight and best practices.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BUG: Add model subcircuit assignment is fooled by comments in the model file

0 REPLIES 0
Reply
Message 1 of 1
murrayC2G75
158 Views, 0 Replies

BUG: Add model subcircuit assignment is fooled by comments in the model file

Lost several hours last night over this bug when assigning a model file to a component. I kept getting an error that a part was defined with 5 pins, but the model was specifying 7 pins. Here is a snippet of the spice model file:

 

* some comments

* usage:

* .SUBCKT BXYZ p1 p2 p3 p4 p5 *

* more comments...

 

.SUBCKT BXYZ p1 p2 p3 p4 p5

...

.ENDS

 

Fusion 360 Eagle seems to be naively looking for '.SUBCKT' and finds the comment, tokenizes the line to 9 tokens, subtracts 2 (presumably thinking '.SUBCKT PXYZ' would then leave the number of pins) and so ends up thinking the model has 7 pins. Clearly it has 5 pins. 😞

 

I worked around this by just changing the spelling in the comment to .SUBCKTT

 

Murray

Tags (2)
Labels (1)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums