정진형학부생
08/17/2023, 8:51 AMTim Edwards
08/18/2023, 1:24 AMMichael Strothjohann
08/19/2023, 8:18 AMmodule resistor_va (p,n);
parameter real r=5;
inout p,n;
electrical p,n;
analog
V(p,n) <+ I(p,n) *r;
endmodule
test.sp :
*SPICE circuit
.Model resistor_model resistor_va ;
VDD v2 0 DC 5V
.subckt res p n
nres p n resistor_model
.ends
x1 v2 v1 res
x2 v1 0 res
.tran 0.01m 6m
.save v(v1)
.control
pre_osdi ./test.osdi
run
.endc
more examples :
https://openvaf.semimod.de/docs/getting-started/examples/Michael Strothjohann
08/19/2023, 8:54 AMTim Edwards
08/20/2023, 2:08 PM