diff options
author | rahulp13 | 2020-03-03 05:31:58 +0530 |
---|---|---|
committer | rahulp13 | 2020-03-03 05:31:58 +0530 |
commit | dfc268e0863c913a1b8726cd54eea3b40caf7c67 (patch) | |
tree | 1cd82634684da5ae86b558d44756189e080545d4 /Windows/spice/examples/various/tmp-noise.cir | |
parent | fd62c52150c7d1f81da8060b2f5db6b94d174ccf (diff) | |
download | eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.gz eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.bz2 eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.zip |
upgrade ngspice to v31
Diffstat (limited to 'Windows/spice/examples/various/tmp-noise.cir')
-rw-r--r-- | Windows/spice/examples/various/tmp-noise.cir | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Windows/spice/examples/various/tmp-noise.cir b/Windows/spice/examples/various/tmp-noise.cir new file mode 100644 index 00000000..b43e5694 --- /dev/null +++ b/Windows/spice/examples/various/tmp-noise.cir @@ -0,0 +1,33 @@ +* (exec-spice "ngspice %s" t) + +v1 1 0 dc 2 ac 1 +v2 200 0 dc=1 + +R1 1 2 1k +R2 2 0 1k tc1=0.001 $ tc2=1e-5 + +R10 1 20 1k +R20 20 0 '1k*v(200)' tc1=0.001 $ tc2=1e-5 + +.temp 127.0 + +.control +listing e + +op +let gold = 2/(1+1000/1100) +print v(2) v(20) gold + +noise v(2) v1 dec 1 1kHz 1kHz +let r = 1/(1/1000 + 1/1100) +let gold = sqrt(4*boltz*(273.15+127.0)*r) +print all gold + +noise v(20) v1 dec 1 1kHz 1kHz +print all + +ac dec 1 1kHz 1kHz +let gold = 1/(1+1000/1100) +print v(2) v(20) gold + +.endc |