.subckt simple_potentiometer 1 2 3 R1 1 2 {(Rpot*wiper)+1m} R2 2 3 {(Rpot*(1-wiper))+1m} .param Rpot=100k .param wiper=0.5 .ends