Skip to content

Is tranif0/tranif1 support on the roadmap? #1121

Discussion options

You must be logged in to vote

The README is very much in need of updating.

Regarding your OR function. The LRM does not define the behaviour of a tranif when the control input is undefined (x or z), so vvp chooses to follow the rules for MOS switches. The tranif is bidirectional, so if w1 or w2 ever gets assigned a L or H value, that can feed back onto the vdd and vss signals. You should be able to fix this by changing vdd and vss to have supply strength, but there does seem to be a bug in vvp that prevents y being updated at the right time.

Two other simulators I tried gave the same results as vvp for your original code, and gave the desired result once vdd and vss were changed to supplies.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@NickOveracker
Comment options

@martinwhitaker
Comment options

Answer selected by NickOveracker
@NickOveracker
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants