Kind of hard to guess your intentions, but here is something, ................................
If you want to have a port that acts a an input and output the you have to use diodes, you can not connect the outputs of gates together without a diode, and then you have to do something with the new input. 8)