A system and method for expanding management channels through server CPLD
By establishing the BMC_I2C bus link and CPLD module management steps on the server hard disk backplane, the signal quality and cost issues in the I2C management design are solved, flexible I2C interface expansion and signal integrity are achieved, and the design cost is reduced.
Patent Information
- Application Number
- CN202410890083.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-04
AI Technical Summary
The I2C management design of existing server hard disk backplanes has signal quality problems, high costs, and layout and wiring difficulties. Especially when there are too many I2C devices on the board, it leads to abnormal system failures and increased design costs.
Establish a BMC_I2C bus link between the BMC module and the CPLD module, and perform specific data message management steps to expand management by combining the BMC side interface of the CPLD module, the I2C slave module, the slave device selection control unit and several I2C slave device interfaces. channel, avoiding the use of additional IC devices, simplifying the I2C topology and terminating the I2C signals of the BMC module.
It reduces board design and material costs, avoids signal quality problems, improves the flexibility and signal integrity of the I2C interface, simplifies PCB layout and wiring, and reduces the number of PINs.
Smart Images

Figure CN118409995B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of server management, and in particular to a system and method for extending a management channel through a server CPLD. Background Art
[0002] As the demand for server capacity increases, more and more hard disk slots are set up on the hard disk backplane of the server; among them, NVME hard disks are increasingly deployed in server scenarios due to their excellent read and write speeds and compact size.
[0003] At present, the out-of-band management of the hard disk backplane of the server usually adopts the I2C interface. The BMC module uses the I2C interface to access the FRU information, temperature sensor, FRU information, status information, etc. of the hard disk backplane. Since the I2C address of each NVME hard disk is the same, the current design uses 9545 on the hard disk backplane to expand the I2C channel, and the block diagram is as follows: Figure 2 shown.
[0004] However, this technology has the following disadvantages: 1. If the board is too large and there are too many I2C devices, a large number of 9545s will be required, and the BMC_I2C routing will be long, resulting in I2C signal quality problems. Severe cases may cause abnormal information acquisition on the backplane or NVME disk, resulting in system abnormalities; 2. The use of multiple 9545 chips on the board will increase the material cost of the board; 3. Placing more 9545 devices on a high-density board such as a hard disk backplane will make board layout and wiring difficult, and increase the number of PCB layers, thereby increasing the board design cost.
[0005] Therefore, a system and method for expanding management channels through server CPLD is needed to solve the above technical problems. Summary of the invention
[0006] In order to solve the above technical problems, the present invention provides a system for expanding management channels through server CPLD, comprising a BMC module, a CPLD module and several I2C slave devices, wherein the BMC module establishes a BMC_I2C bus link with the CPLD module through an I2C interface; the CPLD module is arranged on a hard disk backplane, and comprises a BMC side interface, an I2C slave module, a slave device selection control unit, a slave device transmission control unit and several I2C slave device interfaces; the I2C slave device is electrically connected to the corresponding I2C slave device interface; wherein,
[0007] The BMC_I2C bus link includes an I2C_SCL clock line and an I2C_SDA bidirectional data line. The BMC side interface is electrically connected to the I2C_SCL clock line and the I2C_SDA bidirectional data line externally, and internally leads the corresponding BMC_I2C_SCL clock link and BMC_I2C_SDA bidirectional data link, and is electrically connected to the I2C slave module respectively.
[0008] The I2C slave module includes a slave device selection control terminal I2C_SW_REG, a clock enable state control terminal SCL_EN and a data enable state control terminal SDA_EN; the slave device selection control unit includes a slave device clock selection switch I2C_SCL_SW and a slave device data selection switch I2C_SDA_SW, the slave device transmission control unit includes a number of clock transmission control modules and a number of bidirectional data transmission control modules, and the I2C slave device interface includes an SCL interface and an SDA interface;
[0009] The slave device selection control terminal I2C_SW_REG is electrically connected to the slave device clock selection switch I2C_SCL_SW and the slave device data selection switch I2C_SDA_SW respectively; the clock enable state control terminal SCL_EN is electrically connected to the slave device clock selection switch I2C_SCL_SW, and the data enable state control terminal SDA_EN is electrically connected to the slave device data selection switch I2C_SDA_SW;
[0010] The slave device clock selection switch I2C_SCL_SW is provided with a plurality of slave device clock enable control terminals, which are respectively electrically connected to the corresponding clock transmission control modules; the slave device data selection switch I2C_SDA_SW is provided with a plurality of slave device data enable control terminals, which are respectively electrically connected to the corresponding bidirectional data transmission control modules; each of the clock transmission control modules is respectively electrically connected to the corresponding SCL interface, and each of the bidirectional data transmission control modules is respectively electrically connected to the corresponding SDA interface.
[0011] As a further solution, a state machine is provided in the I2C slave module; wherein the state machine includes a Master state and a Slave state; wherein the Master state is used to control the bidirectional data transmission control module to switch to only the Master device sending data to the I2C slave device; wherein the Master device includes a BMC module; and the Slave state is used to control the bidirectional data transmission control module to switch to only the I2C slave device sending data to the Master device.
[0012] As a further solution, the clock transmission control module includes a clock enable trigger terminal, a clock enable input terminal and a clock enable output terminal; wherein the clock enable trigger terminal is electrically connected to the clock enable control terminal of the slave device, the clock enable input terminal is electrically connected to the BMC_I2C_SCL clock link, and the clock enable output terminal is electrically connected to the SCL interface.
[0013] As a further solution, the bidirectional data transmission control module includes a BMC side data transmission end, a slave device side data transmission end and a bidirectional enable trigger end; wherein, the BMC side data transmission end is electrically connected to the BMC_I2C_SDA bidirectional data link, the slave device side data transmission end is electrically connected to the SDA interface, and the bidirectional enable trigger end is electrically connected to the slave device data enable control end interface.
[0014] As a further solution, the BMC module and the CPLD module are connected in communication via data messages; wherein the data messages include selected channel data ADDR and selected address data DATA.
[0015] A method for managing channels by extending server CPLD is applied to a system for managing channels by extending server CPLD as described in any one of the above items, characterized in that the channels are managed by the following steps:
[0016] Step 1: The BMC module sends a first data message to the CPLD module through the BMC_I2C bus link; wherein the selected address data ADDR is 0X71; and the selected channel data DATA is 0X00;
[0017] Step 2: The CPLD module receives and parses the first data message through the I2C slave module; the CPLD module is selected by 0X71 to adjust the slave device selection control unit, and the slave device clock selection switch I2C_SCL_SW and the slave device data selection switch I2C_SDA_SW are adjusted by 0X00 to reset, so that all I2C slave device interfaces are not selected;
[0018] Step 3: The BMC module sends a second data message to the CPLD module through the BMC_I2C bus link, wherein the address data is selected: 0X71; the channel data is selected: 0X01;
[0019] Step 4: The CPLD module receives and parses the second data message through the I2C slave module; the CPLD module is selected through 0X71 to adjust the slave device selection control unit, and the slave device clock selection switch I2C_SCL_SW and the slave device data selection switch I2C_SDA_SW are adjusted through 0X01 to select, so that the target I2C slave device interface is selected;
[0020] Step 5: The BMC module sends a third data message to the CPLD module through the BMC_I2C bus link, wherein the address data is selected: 0X55; the channel data is selected: 0XAA;
[0021] Step 6: The CPLD module receives and parses the third data message through the I2C slave module; select the I2Cslave module through 0X55 for real-time monitoring;
[0022] Step 7: The state machine switches to the Master state. The CPLD module controls the corresponding slave data enable control terminal to be pulled low through the slave data selection switch I2C_SDA_SW. The BMC module sends the read / write address and read / write bit to the target I2C slave device interface through the BMC_I2C bus link.
[0023] Step 8: The state machine switches to the Slave state. The CPLD module controls the corresponding slave data enable control terminal to be pulled high through the slave data selection switch I2C_SDA_SW. The I2C slave device sends the ACK bit data to the BMC module.
[0024] Step 9: The BMC module determines whether to continue the two-way data communication; if so, it returns to step 7; if not, it executes step 10;
[0025] Step 10: The BMC module determines whether to access the next I2C slave device; if so, it returns to step 1 and updates 0X00 to the next I2C slave device; if not, it executes step 1 and exits after reset.
[0026] Compared with the related art, the system and method for extending the management channel through the server CPLD provided by the present invention have the following beneficial effects:
[0027] The present invention establishes a BMC_I2C bus link through a BMC module and a CPLD module, combines a BMC side interface, an I2C slave module, a slave device selection control unit, a slave device transmission control unit and a plurality of I2C slave device interfaces of the CPLD module, and executes management steps to realize the expansion of management channels through the server CPLD; in terms of cost, no additional IC devices are used, the number of PINs of the schematic diagram is reduced, and the design cost and material cost of the board are reduced. In terms of design, CPLD is used to expand the I2C management interface, and many I2C interfaces can be expanded in theory, making the hardware design of the board more flexible; in terms of function, the I2C signal of the BMC module is terminated at the CPLD of the hard disk backplane, avoiding the signal integrity problem of long-distance routing. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1A schematic diagram of the system structure of a management channel extended by a server CPLD provided by the present invention;
[0029] Figure 2 A schematic diagram of the prior art structure provided by the present invention;
[0030] Figure 3 A schematic diagram of the system steps of expanding a management channel through a server CPLD provided by the present invention. DETAILED DESCRIPTION
[0031] The present invention will be further described below in conjunction with the accompanying drawings and implementation modes.
[0032] like Figure 1 As shown, a system for extending a management channel through a server CPLD includes a BMC module, a CPLD module and several I2C slave devices (especially NVME hard disks). The BMC module establishes a BMC_I2C bus link with the CPLD module through an I2C interface; the CPLD module is arranged on a hard disk backplane, and includes a BMC side interface, an I2C slave module, a slave device selection control unit, a slave device transmission control unit and several I2C slave device interfaces; the I2C slave device is electrically connected to the corresponding I2C slave device interface; wherein,
[0033] The BMC_I2C bus link includes an I2C_SCL clock line and an I2C_SDA bidirectional data line. The BMC side interface is electrically connected to the I2C_SCL clock line and the I2C_SDA bidirectional data line externally, and internally leads the corresponding BMC_I2C_SCL clock link and BMC_I2C_SDA bidirectional data link, and is electrically connected to the I2C slave module respectively.
[0034] The I2C slave module includes a slave device selection control terminal I2C_SW_REG, a clock enable state control terminal SCL_EN and a data enable state control terminal SDA_EN; the slave device selection control unit includes a slave device clock selection switch I2C_SCL_SW and a slave device data selection switch I2C_SDA_SW, the slave device transmission control unit includes a number of clock transmission control modules and a number of bidirectional data transmission control modules, and the I2C slave device interface includes an SCL interface and an SDA interface;
[0035] The slave device selection control terminal I2C_SW_REG is electrically connected to the slave device clock selection switch I2C_SCL_SW and the slave device data selection switch I2C_SDA_SW respectively; the clock enable state control terminal SCL_EN is electrically connected to the slave device clock selection switch I2C_SCL_SW, and the data enable state control terminal SDA_EN is electrically connected to the slave device data selection switch I2C_SDA_SW;
[0036] The slave device clock selection switch I2C_SCL_SW is provided with a plurality of slave device clock enable control terminals, which are respectively electrically connected to the corresponding clock transmission control modules; the slave device data selection switch I2C_SDA_SW is provided with a plurality of slave device data enable control terminals, which are respectively electrically connected to the corresponding bidirectional data transmission control modules; each of the clock transmission control modules is respectively electrically connected to the corresponding SCL interface, and each of the bidirectional data transmission control modules is respectively electrically connected to the corresponding SDA interface.
[0037] It should be noted that: this embodiment simplifies the I2C topology of the hard disk backplane, terminates the I2C signal of the BMC module at the backplane CPLD, avoids the signal quality problem caused by the long-distance routing of the BMC_I2C signal, and realizes the point-to-point connection of the I2C topology, which greatly improves the signal quality of the subsequent I2C slave device; avoids the use of I2C expansion devices such as 9545, and also simplifies the PCB layout and wiring work, reducing the design cost of the board; in addition, by using CPLD to expand the interface of the management signal, many I2C interfaces can be expanded in theory, and the design is more flexible.
[0038] As a further solution, a state machine is provided in the I2C slave module; wherein the state machine includes a Master state and a Slave state; wherein the Master state is used to control the bidirectional data transmission control module to switch to only the Master device sending data to the I2C slave device; wherein the Master device includes a BMC module; and the Slave state is used to control the bidirectional data transmission control module to switch to only the I2C slave device sending data to the Master device.
[0039] As a further solution, the clock transmission control module includes a clock enable trigger terminal, a clock enable input terminal and a clock enable output terminal; wherein the clock enable trigger terminal is electrically connected to the clock enable control terminal of the slave device, the clock enable input terminal is electrically connected to the BMC_I2C_SCL clock link, and the clock enable output terminal is electrically connected to the SCL interface.
[0040] As a further solution, the bidirectional data transmission control module includes a BMC side data transmission end, a slave device side data transmission end and a bidirectional enable trigger end; wherein, the BMC side data transmission end is electrically connected to the BMC_I2C_SDA bidirectional data link, the slave device side data transmission end is electrically connected to the SDA interface, and the bidirectional enable trigger end is electrically connected to the slave device data enable control end interface.
[0041] As a further solution, the BMC module and the CPLD module are connected in communication via data messages; wherein the data messages include selected channel data ADDR and selected address data DATA.
[0042] like Figure 3 As shown, a method for managing channels by extending the server CPLD is applied to a system for managing channels by extending the server CPLD as described in any of the above items, characterized in that the channels are managed by the following steps:
[0043] Step 1: The BMC module sends a first data message to the CPLD module through the BMC_I2C bus link; wherein the selected address data ADDR is 0X71; and the selected channel data DATA is 0X00;
[0044] Step 2: The CPLD module receives and parses the first data message through the I2C slave module; the CPLD module is selected by 0X71 to adjust the slave device selection control unit, and the slave device clock selection switch I2C_SCL_SW and the slave device data selection switch I2C_SDA_SW are adjusted by 0X00 to reset, so that all I2C slave device interfaces are not selected;
[0045] Step 3: The BMC module sends a second data message to the CPLD module through the BMC_I2C bus link, wherein the address data is selected: 0X71; the channel data is selected: 0X01;
[0046] Step 4: The CPLD module receives and parses the second data message through the I2C slave module; the CPLD module is selected through 0X71 to adjust the slave device selection control unit, and the slave device clock selection switch I2C_SCL_SW and the slave device data selection switch I2C_SDA_SW are adjusted through 0X01 to select, so that the target I2C slave device interface is selected;
[0047] Step 5: The BMC module sends a third data message to the CPLD module through the BMC_I2C bus link, wherein the address data is selected: 0X55; the channel data is selected: 0XAA;
[0048] Step 6: The CPLD module receives and parses the third data message through the I2C slave module; select the I2Cslave module through 0X55 for real-time monitoring;
[0049] Step 7: The state machine switches to the Master state. The CPLD module controls the corresponding slave data enable control terminal to be pulled low through the slave data selection switch I2C_SDA_SW. The BMC module sends the read / write address and read / write bit to the target I2C slave device interface through the BMC_I2C bus link.
[0050] Step 8: The state machine switches to the Slave state. The CPLD module controls the corresponding slave data enable control terminal to be pulled high through the slave data selection switch I2C_SDA_SW. The I2C slave device sends the ACK bit data to the BMC module.
[0051] Step 9: The BMC module determines whether to continue the two-way data communication; if so, it returns to step 7; if not, it executes step 10;
[0052] Step 10: The BMC module determines whether to access the next I2C slave device; if so, it returns to step 1 and updates 0X00 to the next I2C slave device; if not, it executes step 1 and exits after reset.
[0053] It should be noted that not only the BMC module accesses the I2C slave device through this step, but the Master device that deploys the BMC module also executes this step through the BMC module to complete the purpose of accessing the I2C slave device.
[0054] The above are only embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A system for extending management channels through server CPLD, comprising a BMC module, a CPLD module and several I2C slave devices, characterized in that: The BMC module establishes a BMC_I2C bus link with the CPLD module through the I2C interface; the CPLD module is arranged on the hard disk backplane, including a BMC side interface, an I2C slave module, a slave device selection control unit, a slave device transmission control unit and a plurality of I2C slave device interfaces; the I2C slave device is electrically connected to the corresponding I2C slave device interface; wherein, The BMC_I2C bus link includes an I2C_SCL clock line and an I2C_SDA bidirectional data line. The BMC-side interface is electrically connected to the I2C_SCL clock line and the I2C_SDA bidirectional data line externally, and internally leads the corresponding BMC_I2C_SCL clock link and BMC_I2C_SDA bidirectional data link, and is electrically connected to the I2C slave module respectively. The I2C slave module includes a slave device selection control terminal I2C_SW_REG, a clock enable state control terminal SCL_EN, and a data enable state control terminal SDA_EN; the slave device selection control unit includes a slave device clock selection switch I2C_SCL_SW and a slave device data selection switch I2C_SDA_SW, the slave device transmission control unit includes several clock transmission control modules and several bidirectional data transmission control modules, and the I2C slave device interface includes an SCL interface and an SDA interface; The slave device selection control terminal I2C_SW_REG is electrically connected to the slave device clock selection switch I2C_SCL_SW and the slave device data selection switch I2C_SDA_SW respectively; the clock enable state control terminal SCL_EN is electrically connected to the slave device clock selection switch I2C_SCL_SW, and the data enable state control terminal SDA_EN is electrically connected to the slave device data selection switch I2C_SDA_SW; The slave device clock selection switch I2C_SCL_SW is provided with a plurality of slave device clock enable control terminals, and is respectively electrically connected to the corresponding clock transmission control modules; the slave device data selection switch I2C_SDA_SW is provided with a plurality of slave device data enable control terminals, and is respectively electrically connected to the corresponding bidirectional data transmission control modules; each of the clock transmission control modules is respectively electrically connected to the corresponding SCL interface, and each of the bidirectional data transmission control modules is respectively electrically connected to the corresponding SDA interface; The I2C slave module is provided with a state machine; wherein the state machine includes a Master state and a Slave state; wherein the Master state is used to control the bidirectional data transmission control module to switch to a state where only the Master device sends data to the I2C slave device; wherein the Master device includes a BMC module; and the Slave state is used to control the bidirectional data transmission control module to switch to a state where only the I2C slave device sends data to the Master device.
2. A system for extending management channels through server CPLD according to claim 1, characterized in that: The clock transmission control module includes a clock enable trigger terminal, a clock enable input terminal and a clock enable output terminal; wherein, the clock enable trigger terminal is electrically connected to the slave device clock enable control terminal, the clock enable input terminal is electrically connected to the BMC_I2C_SCL clock link, and the clock enable output terminal is electrically connected to the SCL interface.
3. The system for extending management channels through server CPLD according to claim 1, characterized in that: The bidirectional data transmission control module includes a BMC-side data transmission end, a slave-side data transmission end, and a bidirectional enable trigger end; wherein, the BMC-side data transmission end is electrically connected to the BMC_I2C_SDA bidirectional data link, the slave-side data transmission end is electrically connected to the SDA interface, and the bidirectional enable trigger end is electrically connected to the slave-device data enable control end interface.
4. The system for extending management channels through server CPLD according to claim 1, characterized in that: The BMC module and the CPLD module are connected to each other through data messages; wherein the data messages include selected channel data ADDR and selected address data DATA.
5. A method for extending a management channel through a server CPLD, applied to a system for extending a management channel through a server CPLD as claimed in any one of claims 1 to 4, characterized in that: Manage channels by following these steps: Step 1: The BMC module sends a first data message to the CPLD module through the BMC_I2C bus link; wherein the address data ADDR is selected as 0X71 and the channel data DATA is selected as 0X00; Step 2: The CPLD module receives and parses the first data message through the I2C slave module; selects the CPLD module by 0X71 to adjust the slave device selection control unit, and resets the slave device clock selection switch I2C_SCL_SW and the slave device data selection switch I2C_SDA_SW by 0X00, so that all I2C slave device interfaces are not selected; Step 3: The BMC module sends a second data message to the CPLD module through the BMC_I2C bus link, wherein the address data is selected: 0X71; the channel data is selected: 0X01; Step 4: The CPLD module receives and parses the second data message through the I2C slave module; selects the CPLD module through 0X71 to adjust the slave device selection control unit, and adjusts the slave device clock selection switch I2C_SCL_SW and the slave device data selection switch I2C_SDA_SW through 0X01 to select the target I2C slave device interface; Step 5: The BMC module sends a third data message to the CPLD module through the BMC_I2C bus link, wherein the address data is selected: 0X55; the channel data is selected: 0XAA; Step 6: The CPLD module receives and parses the third data message through the I2C slave module; select the I2C slave module through 0X55 for real-time monitoring; Step 7: The state machine switches to the Master state. The CPLD module controls the corresponding slave device data enable control terminal through the slave device data selection switch I2C_SDA_SW and pulls it low. The BMC module sends the read / write address and read / write bit to the target I2C slave device interface through the BMC_I2C bus link. Step 8: The state machine switches to the Slave state. The CPLD module controls the corresponding slave data enable control terminal through the slave data selection switch I2C_SDA_SW to pull high. The I2C slave device sends the ACK bit data to the BMC module. Step 9: The BMC module determines whether to continue bidirectional data communication; if so, it returns to step 7; if not, it goes to step 10; Step 10: The BMC module determines whether to access the next I2C slave device; if so, it returns to step 1 and updates 0X00 to the next I2C slave device; if not, it executes step 1 and resets and exits.
