blob: b43e5694d3f9671e3ebac4f53f3350f768a0ef78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|