You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
296 B
29 lines
296 B
ex1a, check lib processing
|
|
|
|
I1 9 0 -1mA
|
|
X1 9 0 sub1
|
|
|
|
Vcheck 9 check0 1.0V
|
|
|
|
.lib 'ex1.lib' RES
|
|
|
|
.subckt sub1 n1 n2
|
|
X2 n1 n2 sub_in_lib
|
|
R2 n1 n2 2k
|
|
.ends
|
|
|
|
.control
|
|
op
|
|
|
|
echo "Note: v(check0) = $&v(check0)"
|
|
|
|
if abs(v(check0)) > 1e-9
|
|
quit 1
|
|
end
|
|
|
|
echo "INFO: ok"
|
|
quit 0
|
|
|
|
.endc
|
|
|
|
.end
|