Curious about how you compiled ngspice to WASM #6
-
Hey really cool project! I'm thinking of building a similar project but a much simpler version that only uses RLC components (I've only taken the intro EE course for my undergrad so I don't know too much beyond that). I've been looking into compiling SPICE and/or ngspice into WASM so I'm curious how you implemented that part. Are there any resources that you found useful that you can point me to? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For now, as of today, you can compile ngspice codebase to WASM without any hacking. See here for the build tools and example. There is a discussion thread on the previous hacks which you can find here. If you want only RLC, then you can remove the extra models from the ngspice so you have a smaller (and perhaps) faster WASM. Notice that the original SPICE3f5 from Berkeley is slightly different from ngspice as it is missing the contemporary models. If you want only RLC as a practice then the original SPICE3f5 might be more suitable. |
Beta Was this translation helpful? Give feedback.
For now, as of today, you can compile ngspice codebase to WASM without any hacking. See here for the build tools and example. There is a discussion thread on the previous hacks which you can find here. If you want only RLC, then you can remove the extra models from the ngspice so you have a smaller (and perhaps) faster WASM.
Notice that the original SPICE3f5 from Berkeley is slightly different from ngspice as it is missing the contemporary models. If you want only RLC as a practice then the original SPICE3f5 might be more suitable.