output: tristate flip