summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/transient-noise/simple-noise.cir
blob: 1dfc830f01903aaa44e00c1be990451ddf7f626d (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
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