I came across this circuit that swaps logical signals:
However I don't understand why would you need to use logic gates. Would it be possible to just connect the A on the left to the B on the right and the same with the B on the left (maybe add a diode to prevent current from going back?).
And one last question; would an "Enable" signal make this circuit more useful (only swaping when Enable is high)?
Maybe I'm missing something. Thank you.