File: rcsq.sp

package info (click to toggle)
gwave 20031224-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,508 kB
  • ctags: 1,065
  • sloc: ansic: 8,029; lisp: 1,619; sh: 1,202; makefile: 167
file content (16 lines) | stat: -rw-r--r-- 338 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
* RC circuit driven by square wave 
* Run with command: SPICE_ASCIIRAWFILE=1 ngspice  -r rcsq.raw -b rcsq.sp

* unlike modern spices, GND and node 0 are not aliases for each other.
vgnd 0 GND 0

R1 A B 50
C1 B GND 100pf

Va A GND PWL (0 0 50n 0 51n 5 100n 5 101n 0 200n 0)

.tran 0.5n 200n
.plot tran v(A) V(B)
.option POST=1 PROBE

.end