concord-consortium / build-ngspice-js Goto Github PK
View Code? Open in Web Editor NEWProof of concept build script that successfully compiles the ngspice circuit simulator to Javascript using Emscripten.
License: MIT License
Proof of concept build script that successfully compiles the ngspice circuit simulator to Javascript using Emscripten.
License: MIT License
I get different results when executing an op-analysis with ngspice-js and ngspice. The circuit is as follows:
v1 1 0 5
r1 1 0 2k
.options filetype=ascii
.dc v1 1 1 1
.end
ngspice-js returns v(1) = 1.000000e+00 whereas ngspice (correctly) returns v(1) = 5.000000e+00.
EDIT: The error seems to be that ngspice.js it's own circuit-file creates and uses. If i try to load another circuit-file (by entering the spice commands into the inputs array like it is done in pre.js) ngspice-js returns "No such file or directory". The file i try to load is in the same directory as ngspice.js and ngspice.html.
I've reached Setup, point 4, I did:
cd release and run ./build.sh
but I got:
./build.sh: line 6: emconfigure: command not found
make.sh: line 5: emmake: command not found
mv: rename src/ngspice to src/ngspice.bc: No such file or directory
gen.sh: line 4: emcc: command not found
your support is highly appreciated
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.