| 12345678910111213 |
- .subckt SII2161_ideal iin vc iout
- R1 iin n1 1n
- V1 n1 0 0
- R2 vc 0 10k
- * Create output current based on the input current and the control voltage
- B1 0 iout I=limit(I(V1), -1m, 1m)*2**(-5.0505*V(vc))
- ;B1 0 iout I=I(V1)*2**(-5.0505*V(vc))
- * Limit output voltage with a specialized diode
- D1 iout 0 clamp_diode
- .model clamp_diode D(Ron=10 Roff=1Meg Vfwd=.1 Vrev=.1)
- .ends
|