[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[oc] bidirection pin on acex 1k30 from Altera



Hi folks,

how can I implement a bidirectional port in vhdl. I try a inout declaration of
the ioports. When the ports should be used as an input I use
gpioport <= 'z';

using a ACEX 1k30 altera device I get an error that the compiler can't put the
pin into tristate.
Do I have to declare the same pin as input as well as output, just using names
like
in a process:
...
if gpiodirection='1' then
	gpioport_out <= 'z';
else
	gpioport_out<=currentoutput;
end if;
currentinput <=gpioport_in;
...

Does anybody has a simple example

thank you 

Dani
--
To unsubscribe from cores mailing list please visit http://www.opencores.org/mailinglists.shtml