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.
 
 
 
 
 
 

20 lines
238 B

* 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