I am trying to create a current controlled switch, which opens only at negative current, I tried this approach:
Wswitch com no Vcurrent negative_switch
.model negative_switch CSW it < 1nA ih=0 ron=1n roff=1g
but, I got error:
unrecognized parameter (<) - ignored
Any idea? how can use less than in the mode above?
EDIT
I tried to flip the switch as below but worked only at positive value:
Wswitch2 no com Vcurrent negative_switch
.model negative_switch CSW it=1nA ih=0 ron=1n roff=1g