Forum Discussion
Altera_Forum
Honored Contributor
15 years agoError: Inconsistent I/O type for element "GPIO_0"
Hello I have the following error when I compile my code: Error: Inconsistent I/O type for element "GPIO_0" Could you say me wath is the problem? I use a Custom IP in SopC for co...
Altera_Forum
Honored Contributor
15 years agoAnother option is to make GPIO a bidirectional port and then permanently set [0] as input in your assignments and you will then be able to use the signals one as input and one as an output without spiting the array:
GPIO <= 'Z';
signalThatUsesGpio0 <= GPIO;
GPIO <= outputSignalforGpio1; The compile will probably warn you the bidirectional port GPIO[0] is permanently set to an input and GPIO[1] is permanently set to an output, but this is what you want so you can ignore it.