Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voltage-Controlled Switch Issue #65

Open
yejunap opened this issue Apr 21, 2018 · 1 comment
Open

Voltage-Controlled Switch Issue #65

yejunap opened this issue Apr 21, 2018 · 1 comment

Comments

@yejunap
Copy link

yejunap commented Apr 21, 2018

image

I implement the circuit above.

  • Voltage-Controlled Switch Example

sw 0 out in 0 mysw
v1 in 0 type=pulse 0 1.0 0 0.5m 0.5m 0 1m
v2 net1 0 type=vdc vdc=3.3
r1 net1 out 1k

.model sw mysw vt=0.5 vh=0.4 ron=1 roff=1Meg
*.model sw mysw von=0.9 voff=0.1 ron=1 roff=1Meg
.tran tstep=100n tstop=3m
.plot tran v(in) v(out)
.end

image
Ver. 0.18
From the document, the resistance of the switch should changes from VT+VH to VT-VH (distance 2*VH)

image

However, the turn-on voltage is 0.9 and turn-off voltage is the same.
The hysteresis is not available.

@itdaniher
Copy link
Contributor

Hi @yejunap

Thanks for your interest in ahkab! I'm looking at switch.py to try and get to the bottom of your missing hysteresis issue. On first pass, it looks OK. I'll try and reproduce in pure Python to see if it's a netlist parsing issue or something.

Regards,
Ian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants