SPICE simulation in GNU Emacs (From schematics)
Code:
https://gitlab.com/atamariya/emacs/-/blob/dev/lisp/svg.el
https://gitlab.com/atamariya/emacs/-/blob/dev/lisp/spice-mode.el
Setup:
Setup is covered in following blog posts.
- https://lifeofpenguin.blogspot.com/2021/10/svg-widget-in-gnu-emacs.html
- https://lifeofpenguin.blogspot.com/2021/10/spice-simulation-in-gnu-emacs.html
Additionally, we need to make special spice plugin (defined in spice-mode.el) available to canvas-mode. This makes plugin keybindings available via C-x in canvas-mode. To do this, add following to .emacs
How does it work?
SVG is an XML. However, the XML aspect of SVG is little underutilized. It means it can carry information like an XML in addition to visual information related to shapes and curves. In the demo, I add name (generated), type and value attributes under http://www.gnu.org/eda namespace to shapes. The same is processed to generate SPICE netlist during simulation.
Comments
Post a Comment