MCPcopy Index your code
hub / github.com/eelab-dev/EEcircuit

github.com/eelab-dev/EEcircuit @v3.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.1 ↗ · + Follow
220 symbols 429 edges 30 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Build App CodeQL DOI

⚠ Works on Chrome, Edge, and Safari 15+. Firefox is not supported. Check latest status

EEsim

EEsim is a circuit simulator based on ngspice and it runs inside the browser using WebAssembly technology. The input is spice based netlist, and the output is results of the analysis that you're doing in the simulations. You are able to plot and view the results directly in the browser using high-performance WebGL plotting library webgl-plot, or download the data in CSV format for further analysis. Notice that your netlist and results are processed locally and always remain inside your browser and are never uploaded to network. The focus of this implementation is rapid analysis, sharing circuits ideas and results in VLSI and chip-design communities.

Getting started

Copy and paste this circuit into editor and click Run. Input is also compatible with ngspice netlist.

Basic RCL circuit

Basic RLC circuit
.include modelcard.CMOS90

r vdd 2 100.0
l vdd 2 1
c vdd 2 0.01
m1 2 1 0 0 N90 W=100.0u L=0.09u
vdd vdd 0 1.8

vin 1 0 0 pulse (0 1.8 0 0.1 0.1 15 30)
.tran 0.1 50

.end

Examples

💥 See here for more examples.

Usage

Use your mouse to pan & zoom on the plot. left click for area zoom and right click hold and drag for pan. To reset the view double click.

Documentation

📺 A brief presentation on the origins of EEsim and how it was developed. (slides)

To learn more about SPICE netlits refer to ngspice manual

Transistor Models

See Transistor Models for more information.

Acknowledgments

Thanks to Konstantinos Bantounos for testing.

Contributions

Ngspice, SPICE3f5, Emscripten, Docker, Fedora, Snowpack, Vercel

Extension points exported contracts — how you extend this code

MonarchLanguageConfiguration (Interface)
(no doc)
src/editor/editorCustom.tsx

Core symbols most depended-on inside this repo

log
called by 32
src/sim/simulationArray.ts
abort
called by 11
src/sim/spice.js
log
called by 7
src/sim/readOutput.ts
isComplex
called by 7
src/sim/simulationArray.ts
UTF8ArrayToString
called by 6
src/sim/spice.js
lengthBytesUTF8
called by 6
src/sim/spice.js
getColor
called by 5
src/colors.ts
assert
called by 5
src/sim/spice.js

Shape

Function 203
Method 12
Class 4
Interface 1

Languages

TypeScript100%

Modules by API surface

src/sim/spice.js142 symbols
src/plotArray.tsx20 symbols
src/sim/simulationArray.ts15 symbols
src/editor/editorCustom.tsx6 symbols
src/EEsim.tsx6 symbols
src/downCSV.tsx5 symbols
src/sim/readOutput.ts4 symbols
src/colors.ts4 symbols
src/sim/simulationLink.ts3 symbols
src/editor/monacoLoader.ts3 symbols
src/axis.tsx3 symbols
src/sim/unitConverter.ts2 symbols

For agents

$ claude mcp add EEcircuit \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact