QCodeGen -- A C-Block Component Code Generator For QSpice

The built-in QSpice C-Block code generator is a nice feature but I wanted something a bit more flexible. So I built a stand-alone code generator. Maybe you’ll find it useful.

Key features include:

  • Generates code using custom user-defined templates.
  • Updates existing *.cpp code for schematic component changes with minimal programmer effort.
  • Generates code without overwriting existing *.cpp files.
  • Detects malformed component port and string attributes that cause QSpice to generate invalid code.

If you’re interested, QCodeGen binaries and sources are available on the dev branch of my GitHub repo.

If you try it, let me know what you think.



QCodeGen v0.9.4 sources and binaries are now available on the dev branch of my GitHub repo.

  • Improved parsing of double/float attributes for multiplier suffixes and engineering notation.
  • Summary/Code tabs now display extended ASCII symbols properly.
  • Other minor fixes.


1 Like