Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

vhdl help

Hi,

In vhdl can we make an pin declared as "inout" to act as input or as output depending on certain condition.

entity rout is

port(

a : inout bit;

b : inout bit;

);

end rout;

i want "b" to act as output when a is input, and "a" as output when "b" is input.

I am using altera quartus 2 9.0 and i am getting this warning.

"Warning: The following nodes have both tri-state and non-tri-state drivers

Warning: Inserted always-enabled tri-state buffer between "a" and its non-tri-state driver.

Warning: Inserted always-enabled tri-state buffer between "b" and its non-tri-state driver."

what can i do to overcome this warning.

It may sound silly but i am a beginner and i need some help in this regard.

17 Replies