Hi everyone,
I’ve been working on a tool that converts LTspice .asc schematics into QSPICE .qsch files, and I’ve just made it open source:
GitHub - KaitlynOoi/asc_to_qsch · GitHub
It’s built on Nuno Brum’s spicelib, with a fix-up pass on top so the converted schematic actually simulates in QSPICE, not just opens. It currently:
- Converts components, wires, net labels, orientations (including mirrored parts), values, and directives
- Searches your existing LTspice install for missing .model / .subckt / .asy files (you can also add your own libraries)
- Replaces LTspice ideal digital gates (A devices) with equivalent B-sources, since QSPICE doesn’t support type A
- Merges nodes that have more than one net-label name, respects op-amp
SpiceOrderpin order, and keeps comments separate from directives - Shows every choice for you to review before it writes anything
There’s a Windows .exe (no Python needed) on the Releases page, or you can run it from the Python source.
This is an early prototype. I’ve only tested it on five circuits so far, so I’m sure there are cases it doesn’t handle yet. Known gaps: flip-flops and other stateful digital parts, capacitor Lser, and .tran startup.
If you have a few minutes, I’d really appreciate it if you:
- Tried it on one of your own LTspice circuits, and
- Opened a GitHub issue with the .asc and the .log it writes if anything goes wrong (or posted here)
Pull requests are very welcome. CONTRIBUTING.md has some good starting points, including a headless QSPICE test suite.
