I2C multiplexer

Hello,

I have to verify an interface with 2 inout pins which can be configured as I2C signals:

  • if pin0_cfg == 0 => pin0 will be SDA;
  • if pin0_cfg == 1 => pin0 will be SCL;
  • if pin1_cfg == 0 => pin0 will be SDA;
  • if pin1_cfg == 1 => pin0 will be SCL;

My idea is to connect the UVCs to an “i2c mux interface” which will than be connected to the DUT.
The issue appears at the bidirectional SDA channel. I cannot decide who is controlling the SDA (Master/Slave);

Any suggestions on how can I implement the mux or how can I verify those 2 configurable pins ?

Best regards.
Bogdan