- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 open drain function with weak pull up resistor Both using Pin Assignment with weak pull up resistor on q. So, are they equivalent? Will the tristate buffer cause the contention? Thanks.Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
They 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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are right. i do a mistake there. thanks

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page