Is it possible to use pins of Spartan-6 bidirectional. (switch between input/output)
The following is the situation: I have a high speed ADC and DAC, but this do not have to opperate at the same time. The ADC and DAC both have an enable line that make the input (for DAC) and output (for ADC) High Z.
Now i was thinking i could use the datalines D0 - D11 in this case for both ADC and DAC, only i do not know how i can switch a FPGA pin from input to output whitin my VHDL code. Does somebody know this or has experience with this?
example FPGA pin 1: high is enable ADC Low en enable DAC
When pin 1 = high FPGA pin 2 to 14 must be inputs, since ADC is connected
When pin 1 = low FPGA pin 2 to 14 must be outputs, since DAC is connected
I can set a pin to input or output in the plan ahead from ISE, but cannot find a bi-di option or such.
Also if this is possible how much time does it take the spartan-6 to switch from input to output and <>?