summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/transient-noise/simple-noise.cir
diff options
context:
space:
mode:
authorrahulp132020-03-03 05:31:58 +0530
committerrahulp132020-03-03 05:31:58 +0530
commitdfc268e0863c913a1b8726cd54eea3b40caf7c67 (patch)
tree1cd82634684da5ae86b558d44756189e080545d4 /Windows/spice/examples/transient-noise/simple-noise.cir
parentfd62c52150c7d1f81da8060b2f5db6b94d174ccf (diff)
downloadeSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.gz
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.bz2
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.zip
upgrade ngspice to v31
Diffstat (limited to 'Windows/spice/examples/transient-noise/simple-noise.cir')
-rw-r--r--Windows/spice/examples/transient-noise/simple-noise.cir32
1 files changed, 32 insertions, 0 deletions
diff --git a/Windows/spice/examples/transient-noise/simple-noise.cir b/Windows/spice/examples/transient-noise/simple-noise.cir
new file mode 100644
index 00000000..1dfc830f
--- /dev/null
+++ b/Windows/spice/examples/transient-noise/simple-noise.cir
@@ -0,0 +1,32 @@
+test of isrc trnoise and trrandom isrc, vsrc
+* 1/f noise current
+i1 1 2 DC 0 TRNOISE(0.05 8p 0 1.0 0.001)
+i2 2 0 DC 0 TRNOISE(0.05 8p 0 1.0 0.001)
+
+r1 1 2 1
+r2 2 0 1
+
+* gaussian (type=2) noise
+i3 3 0 DC 0 TRRANDOM(2 8p 0 1.0 0.01)
+R3 3 0 1
+
+v4 4 0 DC 0 TRRANDOM(2 8p 0 1.0 0.01)
+*R4 4 0 1
+
+.tran 8p 200n
+
+.control
+run
+alter @i1[trnoise] = [ 0.1 8p 0 1.5 0.002 ] $ more noise
+alter @i2[trnoise] = [ 0.1 8p 0 1.5 0.002 ] $ more noise
+
+alter @i3[trrandom] = [ 2 8p 0 1.5 0.02 ] $ more noise
+alter @v4[trrandom] = [ 2 8p 0 1.5 0.02 ] $ more noise
+
+run
+plot tran2.v(1) tran1.v(1)
+plot tran2.v(3) tran1.v(3) ylimit -6 6
+plot tran2.v(4) tran1.v(4) ylimit -6 6
+.endc
+
+.end