repo.or.cz
/
gwave-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Ignore all generated/compiled files
[gwave-svn.git]
/
examples
/
rcsq.sp
blob
8a47ff179914b1e08b7892a51c8a17dce7e20fb3
1
*
RC circuit driven by square wave
2
*
Run with command
:
SPICE_ASCIIRAWFILE
=
1
ngspice
-
r rcsq.raw
-
b rcsq.sp
3
4
*
unlike modern spices
,
GND and node
0
are not aliases for each other.
5
vgnd
0
GND
0
6
7
R1 A B
50
8
C1 B GND
100
pf
9
10
Va A GND PWL
(
0 0 50
n
0 51
n
5 100
n
5 101
n
0 200
n
0
)
11
12
.tran
0.5
n
200
n
13
.plot tran v
(
A
)
V
(
B
)
14
.option POST
=
1
PROBE
15
16
.end