Hello,
In ngSPICE available are extra options for port type modifications and it would be great to define it for particular schematic symbol in KiCad. Also, if brackets ([ ]) could be used too, seamless generation of netlist from schematic with XSPICE models could be performed (like Multiplication block).
I found a tricky way to workaround it - I added pins with number [ and ], and I connects it to global nets [ and ], but it looks not as good as it could:
Better option would be different handling of Spice_Node_Sequence field:
Copy one-to-one non-number chars, and replace numbers with proper Node Names:
e.g. Spice_Node_Sequence = [1 2] 3 → A1 [ _Net… _Net…] _Net… mult
I even dig in code and changed code files to handle it in that way (KiCad 6.04):
https://drive.google.com/drive/folders/1PlMmFUO4uDNSkK1rdELKjuCVaVuW2ZfQ?usp=sharing
But after compilation using MSYS2 (no errors shown, compilation completed), launching kicad.exe gives error of missing entry point of DllMain in libidn2-0.dll. And due to this, I don’t have possibility to check if this code is even working well.
Is easier way to achieve my goal ? Or someone know how to fix error with dll ?
Is there any hope to get handling of this modifiers in next KiCad versions ?
Best Regards,
Radek