Altera®: Is there a way to make a user I/O pin an open-drain output?
Quartus Prime
To make it an open-drain output:
- Describe the behavior that results in an open-drain output in your design design.
[Description example]- For Verilog-HDL
assign A = OE? 1'b0 : 1'bZ; - For VHDL
A <= '0' when OE = '1' else 'Z;
- For Verilog-HDL
- In that design, you set options in Quartus® to enable open-drain buffers on the device's I/O pins.
- Select Assignments menu ⇒ Settings
- Select Analysis & Synthesis (in Category)
- Check "Auto Open-Drain Pins" (default is "On")
* If you compile the Hi-Z output circuit without setting this option, Quartus® will implement it as a tri-state buffer.
In the Fitter compilation report, verify that the Open Drain section for the pin is marked "Yes."
Related FAQ
- When I set unused pins as "As inputs tri-stated" in the Quartus® software, should I still connect the pins to VCC or GND on the board?
- If I select "As output diriving ground" for an unused pin in Quartus®, what should I do on the board?
- Another device is connected on the board to the unused pins of a device that has no pin assignments in the design. What state (attribute, level) is that pin? Do you need processing on the board?
- If I set unused user I/O pins to "inputs tri-stated" or "inputs tri-stated with weak pull-up" in Quartus®, do I have to connect the pins on the PCB?
Experienced FAE
Free consultation is available.
From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.