Proposition for XSPICE A model parser

111 views
Skip to first unread message

Michał Grzegorzek

unread,
Nov 17, 2023, 3:13:31 AM11/17/23
to KiCad Developers
Long time ago at Kicad 4.0 there was a way to use XSPICE devices with eeschema by the use of this patch https://gitlab.com/kicad/code/kicad/uploads/1795960331e4e64f5fda60dcb855eeeb/kicad_xspice.patch . Since then the exporter changed and nearly all of this patch functionality is build into the new spice exporter. The only thing is missing are the port modifiers.

The idea to deal with this issue is to create a separate filed called something like Sim.Pattern. Put '?' where pin name should be and put modifiers in correct order in respect to '?'. So the field would look like this:
? %vd ? ? [ ?  ~? ]

I have created a tao::pegtl parser for the needs of this idea:
Is is still in development parsing works, but it still needs some rules for [ ] handling.

I am also open to implement inserting the modifiers into netlist, however it would be nice if someone assures me the idea behind a seperate Sim.Pattern field is ok. 

I also want to ask for the need of creating a pull request, should I put the parser in separate header or connect it with spice_model_parser?

This topic was mentioned in following issues:
Reply all
Reply to author
Forward
0 new messages