Forum Discussion
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.