The invention provides a
system and method for realizing I2C
bus expansion by using a CPLD. The
system comprises a BMC, a CPLD and a slave device. The method comprises the steps that firstly, the BMCcommunicates with the CPLD through a front-end I2C
bus, and an internal register of the CPLD is configured through addressing action of the CPLD; Then, the configuration
logic module analyzes the configuration data of the front-end I2C and outputs a
control signal and a channel selection
signal; and the channel
control logic module establishes mapping between the front-end I2C wire and the rear-end I2C
bus according to the
control signal and the channel selection
signal output by the configuration
logic module. And finally, the BMC accesses the slave device connected with the rear-end I2C bus.Through the method, the device and the
system, The CPLD is used for expanding the I2C bus, the hardware cost is reduced, the occupied PCB area is reduced, the circuit structure is simplified, the number of the expanded I2C paths can be configured according to the number of slave devices, no waste
idle channel exists, the I2C address of the CPLD is 7-bit configurable, and the I2C address conflictis reduced.