module IOBUF
        (
            input   wire    I,
            output  wire    O,
            input   wire    T,
            inout   wire    IO
        );

    assign IO = T ? 1'bz : I;
    assign O  = IO;

endmodule