5569 - iCEcube2: How to use RGB pins of an ICE40 device as an input?

5569 - iCEcube2: How to use RGB pins of an ICE40 device as an input?

Description:
In order to use the iCE40 open drain (RGB , IR) pins for general purpose functionality, you need to instantiate the SB_IO_OD primitive in the design. The details for the SB_IO_OD primitive can be found from the "iCE Technology library" from iCECube2 help. If the SB_IO_OD primitive is not instantiated and you try locking the open drain pins, then the tool will show the following error during PAR Error Message:
E2792: Instance <"x"> incorrectly constrained at SB_IO_OD location

Solution:
The Verilog instantiation example for the SB_IO_OD and other primitives can be found in "iCE Technology library" document.
https://www.latticesemi.com/view_document?document_id=52206