File: instance-defaults.cir

package info (click to toggle)
ngspice 30.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 50,684 kB
  • sloc: ansic: 497,340; xml: 6,914; makefile: 3,620; sh: 2,322; perl: 1,909; yacc: 1,514; tcl: 1,033; lex: 318
file content (20 lines) | stat: -rw-r--r-- 238 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
* check whether .model accepts instance defaults

v1  1 0  dc=1
r1  1 0  myres

.model myres r(resistance=2k)

.control

op

if abs(i(v1)/-0.5mA - 1) > 1e-9
  echo "ERROR: check failed"
  quit 1
else
  echo "INFO: ok"
  quit 0
end

.endc