Forum Discussion
Altera_Forum
Honored Contributor
14 years agoTristate Buffer and Open Drain
Hi I would like to implement open drain function with the verilog code below: assign q = sel ? 1'bz : 1'b0; //open drain assign q = sel ? 1'b1 : 1'bz; // use tristate buffer to model ...
Altera_Forum
Honored Contributor
14 years agoThey are not equivalent. The first one is the right code, if I understood what you mean.
The second one doesn't make sense: you'd always get a high level on that pin, unless you have an external pull DOWN instead of the internal pull up.