Our system is going under maintenance starting April 18, 2025 at 6:00 PM Pacific and ending April 20, 2025 at 4:00 PM Pacific. During this window, the website may not be reachable. For immediate assistance, please contact techsupport@latticesemi.com.

Article Details

ID: 241
Case Type: faq
Category: Entry
Related To: Mixed Language
Family: All Devices

Search Answer Database

Search Text Image

IO Simulation: How to simulate open drain IO/s?

An open drain IO drives output high as a 'Z' and drives low as a '0'. These IOs are often used when multiple devices are connected to a bus. On devices that do not have an open drain option, you can simulate an open drain circuit using an OE on the IO. Here is an example:


Verilog:


assign myoutput = (myenable) ? 1'b0 : 1'bz;


VHDL:

myoutput <= '0'
WHEN (myenable = '1')
ELSE 'Z';
Like most websites, we use cookies and similar technologies to enhance your user experience. We also allow third parties to place cookies on our website. By continuing to use this website you consent to the use of cookies as described in our Cookie Policy.