Menu

#81 Problem Generating SPICE netlist with $ sign

open
nobody
5
2012-10-10
2009-04-05
aryajur
No

Hello,
I am trying to generate SPICE netlist. But the problem is the output netlist only contains 1 line even when I have 2 components which should generate the SPICE netlist. The 2 elements in this simple case are defined by the following code for netlist generation:

$(NetRef) %(1) %(2) $(NAME)?(not_empty(TC1), $(TC1),)?(not_empty(TC2), $(TC2),) \$?(not_empty(sym), sym=$(sym),)

and

$(NetRef) %(1) %(2) $(NAME)?(not_empty(AC magnitude), AC=$(AC magnitude)?(not_empty(AC Phase),\,$(AC Phase),\,0),) \$?(not_empty(sym), sym=$(sym),)

The problem is caused I think by the \$ statement. I need to add this to add comment for the component. If this is not there then it works otherwise not.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.