Forum Discussion
Altera_Forum
Honored Contributor
16 years agovhdl 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; );...
Altera_Forum
Honored Contributor
16 years agoYou need a control input, try this(you also need std_logic type instead of bit)
b <= a when ctrl = '0' else ''Z'; a <= 'Z' when ctrl = '0' else b;