fhdl: tristate support