Forum Discussion

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

tristate-two ore more inputs in the same port

Hi everybody,

I have a question about tristate signals. Is it possible to connect two tristated inputs into the same port?

For example,

assign sel_n = ~sel;

assign input_port = sel_n ? signal_A : 1'bz;

assign input_port = sel ? signal_B : 1'bz;

Is there any other way to do this?

Many thanks,

ifdm

1 Reply