[email protected] wrote:
> hi
> im using digilab XCR development board which has Xilinx XCR3064
> CPLD.
> I/O pins in this CPLD are said to be tristate.
> but when im trying to use them as tristate
> its not working as one?
> i mean i want one of the I/O pin to go high impedance but its not?
> can any one tell me how can i make I/O pin in CPLD high impedance?
Using VHDL:
io_pin <= some_data when output_enable = '1' else 'Z';
If your output is a bus rather than a single pin:
io_bus <= some_data_bus when output_enable = '1' else (others => 'Z');
'Z' means that the pin(s) are set to high impedance.
HTH
-Dave Pollum