A module and method for controlling the hot-plugging of multiple PCIe slots via a pair of I2C pins.

By controlling the hot-plugging of multiple PCIe slots with a pair of I2C pins, and utilizing an arbiter and the PCA9554 chip, the problem of excessive pin occupation for PCIe slot hot-plugging signals is solved, achieving resource conservation and improved plugging and unplugging efficiency.

CN115599726BActive Publication Date: 2026-11-17WUXI ADVANCED TECH RES INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211301644.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-24
Publication Date
2026-11-17
Estimated Expiration
2042-10-24

AI Technical Summary

Technical Problem

In existing technologies, the hot-plug control signals for PCIe slots occupy a large number of chip pins, resulting in wasted resources and increased costs.

Method used

Multiple PCIe slots can be hot-plugged using a pair of I2C pins. The system employs a remote and near-end arbiter, an HP_I2C_MST module, and a PCA9554 chip. It utilizes the I2C bus protocol to achieve hot-plugging control of multiple slots, requiring only two signal lines.

Benefits of technology

This technology enables hot-swapping of multiple PCIe slots using only two chip pins, saving chip resources and costs, and improving the accuracy and efficiency of the plugging and unplugging operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115599726B_ABST
    Figure CN115599726B_ABST
Patent Text Reader

Abstract

This invention discloses a module and method for controlling the hot-plugging of multiple PCIe slots via a pair of I2C pins. The module includes a remote HP_ARB arbitrator, an HP_I2C_MST module, and a PCA9554 chip. The remote HP_ARB arbitrator arbitrates remote register read / write requests. The HP_I2C_MST module, which is internal chip logic, generates I2C_SCL and I2C_SDA signals that satisfy the I2C protocol based on the arbitration result. The PCA9554 chip is connected to the chip only through two I2C signal lines, SCL and SDA, and receives the I2C_SCL and I2C_SDA signals to control the hot-plug slots.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a module and method for controlling the hot-plugging of multiple PCIe slots via a pair of I2C pins, belonging to the field of chip design technology. Background Technology

[0002] The I2C bus is a simple bidirectional binary synchronous serial bus that requires only two wires to transmit information to all devices connected to the bus. Most chips currently support the I2C bus protocol. Using the I2C bus with a serial-to-parallel converter can effectively save control chip resources, and this approach is widely used.

[0003] For hot-swapping of PCIe devices, according to the PCIe hot-swapping specification, hot-swapping of a single slot involves multiple slot control signals and status signals. Generally, these signals are directly used as chip pins to control hot-swapping.

[0004] Currently, the PCIe hot-swappable slot control and status signals specified in the PCIe hot-swappable specification number more than 10. If each slot is controlled individually, a single chip supporting hot-swapping of multiple PCIe slots would require dozens of chip pins. For large-scale integrated circuit chips using advanced processes, chip pins are a very valuable resource, and an excessive number of hot-swappable pins would significantly increase the chip's cost. Summary of the Invention

[0005] To address the shortcomings of existing technologies, the present invention aims to provide a module and method for controlling the hot-swapping of multiple PCIe slots through a pair of I2C pins, thereby solving the chip redundancy problem caused by the hot-swapping pin connection method in existing technologies.

[0006] To achieve the above objectives, the present invention adopts the following technical solution: A module that controls the hot-plugging of multiple PCIe slots via a pair of I2C pins includes a remote HP_ARB arbiter, an HP_I2C_MST module, and a PCA9554 chip. The remote HP_ARB arbitrator arbitrates remote register read / write requests. The HP_I2C_MST module is part of the chip's internal logic and generates I2C_SCL and I2C_SDA signals that satisfy the I2C protocol based on the arbitration result. The PCA9554 chip connects to the chip via only two I2C signal lines, SCL and SDA, and receives I2C_SCL and I2C_SDA signals to control the hot-swappable slot.

[0007] Furthermore, the aforementioned HP_I2C_MST module includes a near-end HP_ARB arbitrator, a WB_RW_CTRL module, and an I2C_MASTER_TOP module; The near-end HP_ARB arbitrator takes the result of the far-end HP_ARB arbitration and the near-end register read / write request as input to conduct a new arbitration; The WB_RW_CTRL module converts register reads and writes into specific I2C read and write sequences, and generates the Wishbone interface signals required by I2C_MASTER_TOP and sends them to I2C_MASTER_TOP. The I2C_MASTER_TOP module converts I2C transactions and data on the Wishbone interface into serial signals of the I2C protocol.

[0008] Furthermore, the aforementioned PCA9554 chip includes an input port register, an output port register, a configuration register, a polarity inversion register, and an I2C serial interface.

[0009] Furthermore, the aforementioned HP_I2C_Master module also includes a frequency division coefficient register, which is used to divide the controller's operating clock to the clock required by the I2C interface.

[0010] A method for controlling the hot-plugging of multiple PCIe slots via a pair of I2C pins, using a module of any of the foregoing embodiments, includes the following steps: Based on the hot-plug control signal generated by the hot-plug controller, a register read / write request is sent. Arbitrate register read / write requests; The arbitration result is converted into I2C read / write signals through the HP_I2C_MST control logic; Based on I2C read / write signals, the input / output port registers within the PCA9554 chip are read and written to realize the generation of hot-plug control signals and the reading of status signals.

[0011] Furthermore, the aforementioned steps for reading and writing the input / output port registers within the PCA9554 chip based on I2C read / write signals include: First, I2C_MASTER_TOP sends an I2C write command, setting the register read / write status bit R / W to zero. The register also includes a start flag bit S, a device address bit Slave Address, a register bit Command Byte to be read, and a flag bit A. Flag bit A is used to send the ACK / NACK flag. Resend the I2C read command and set the register read / write status bit R / W to 1 to indicate an I2C register read operation; When I2C_MASTER_TOP becomes the receiver and PCA9554 becomes the sender, the byte received by I2C_MASTER_TOP is the value of the first register read. After I2C_MASTER_TOP receives a byte of data returned by PCA9554, it sends an ACK flag to indicate that the information has been received and the next register value can be received. After receiving the last byte of data, I2C_MASTER_TOP sends the NACK and Stop flags. The NACK flag indicates that the information has been received but no new information will be received, and the Stop flag indicates that the current read operation has ended.

[0012] The beneficial effects achieved by this invention are as follows: 1. The method described above, which controls the hot-swapping of multiple PCIe slots using a pair of I2C pins, achieves this by using only two pins on the chip, significantly saving chip resources and costs by eliminating the need for dozens of chip pins.

[0013] 2. An arbitration logic is designed during the hot-swapping process to ensure that when multiple cards are inserted into multiple slots at the same time, the hot-swapping arbitration logic will operate on multiple slots in sequence according to a fixed priority, which improves the correctness and efficiency of hot-swapping multiple PCIe cards. Attached Figure Description

[0014] Figure 1 This is an overall layout diagram of the hot-swappable module for controlling multiple PCIe slots using a pair of I2C pins according to the present invention; Figure 2 This is the device address of the PCA9554 of this invention; Figure 3 This is the I2C flowchart for reading the I2C_MASTER register in this invention. Detailed Implementation

[0015] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments and specific features in the embodiments are detailed descriptions of the technical solution of the present application, rather than limitations thereof. In the absence of conflict, the embodiments and technical features in the embodiments can be combined with each other.

[0016] This embodiment discloses a module that controls the hot-plugging of multiple PCIe slots via a pair of I2C pins, such as... Figure 1 As shown: HP_ARB is a multi-source arbitrator, preferably a four-source arbitrator in this embodiment. There is one at each end of the chip, namely the remote HP_ARB and the near-end HP_ARB. First, the remote HP_ARB uses three-source arbitration for the remote register read / write request. Then, the result of the arbitration of the remote HP_ARB and the near-end register read / write request are used for a new four-source arbitration in the back-end HP_ARB.

[0017] WB_RW_CTRL is a Wishbone module that converts the arbitration results of register read / write operations into specific I2C read / write sequences and generates the Wishbone interface signals required by I2C_MASTER_TOP to send to I2C_MASTER_TOP.

[0018] The I2C_MASTER_TOP module defines a command register and a control register, converting I2C transactions (read, write, START, STOP, ACK, NACK) and data on the parallel interface (Wishbone interface) into serial signals of the I2C protocol, generating I2C_SCL and I2C_SDA signals that satisfy the I2C protocol. The control register controls the enabling of the I2C_MASTER_TOP module, and the command register contains the command flags for all I2C transactions.

[0019] The PCA9554, a CMOS device, provides 8-bit parallel input / output port expansion for I2C. The PCA9554 includes an input port register, an output port register, a configuration register, a polarity inversion register, and an I2C serial interface. By writing to the configuration register, the eight parallel ports can be configured with different input and output attributes.

[0020] HP_ARB and HP_I2C_MST both belong to the chip's internal logic. For example... Figure 1 As shown, the PCA9554 receives I2C_SCL and I2C_SDA signals. The PCA9554 connects to two pins of the chip only through the two I2C signal lines, SCL and SDA.

[0021] The PCA95554 chip supports two clock frequencies specified by the I2C protocol: 100kHz Standard Mode and 400kHz Fast Mode. Therefore, a frequency division register is set in HP_I2C_MST to divide the controller's operating clock (50MHz maintenance clock) to the clock required by the I2C interface.

[0022] Figure 2 The device address for PCA9554 is: The PCA9554 is used as a slave device in I2C_MASTER_TOP. The high 4 bits of the address are fixed; the low 3 bits A2, A1, and A0 are fixed pin values ​​used to represent the SlaveID of the PCA9554 chip. One slot corresponds to one SlaveID, and a maximum of eight slots can be supported. This design only uses 6 slots. The last bit of the address, R / W, indicates reading / writing the PCA9554 registers.

[0023] The correspondence between the input port register, output port register, configuration register read / write request 8-bit parallel port, and hot-plug control signal of PCA9554 is as follows.

[0024] Firstly, the hot-swap control signals include: Power failure signal PWR_FLT_N, stuck signal PRSNT_N, power normal signal PWR_GOOD, reset signal PERST_N, clock enable signal CLKEN_N, power enable signal PWREN, power indicator signal PWRLED, fault flashing indicator signal ATNLED.

[0025] When sending a register read request, the three most significant bits of the eight-bit read data are PWR_FLT_N, PRSNT_N, and PWR_GOOD, respectively, while the five least significant bits are always zero. When sending a register write request, the five least significant bits of the eight-bit write data are PERST_N, CLKEN_N, PWREN, PWRLED, and ATNLED, respectively, while the three most significant bits are always zero.

[0026] Register read / write requests must first be converted into I2C read / write request form via WB_RW_CTRL.

[0027] Figure 3 This is the I2C flowchart for reading the register using I2C_MASTER_TOP.

[0028] 1. First, I2C_MASTER_TOP sends an I2C write command, sets the register read / write status bit R / W to zero, and the register also includes the start flag bit S, the device address bit Slave Address, the register bit Command Byte to be read, and the flag bit A. The flag bit A is used to send the ACK flag / NACK flag. 2. Resend the I2C read command and set the register read / write status bit R / W to 1 to indicate an I2C register read operation; 3. After that, I2C_MASTER_TOP becomes the receiver and PCA9554 becomes the sender. At this point, the byte received by I2C_MASTER_TOP is the value read from the first register.

[0029] 4. After receiving a byte of data returned by PCA9554, I2C_MASTER_TOP sends an ACK flag to indicate that the information has been received and the next register value can be received.

[0030] 5. After receiving the last byte of data, I2C_MASTER_TOP sends the NACK flag and the Stop flag. The NACK flag indicates that the information has been received but no new information will be received. The Stop flag indicates that the current read operation has ended.

[0031] This application currently supports arbitration of read / write requests for 6 registers (3 remote registers and 3 near registers), and converts the arbitration result into I2C bus signals and sends them to 6 PCA9554 chips. The 6 hot-swappable slots are controlled separately according to the different SlaveIDs of the PCA9554 chips.

[0032] This application also relates to a method for controlling the hot-plugging of multiple PCIe slots via a pair of I2C pins. The hot-plug control signals generated by six hot-plug controllers (HP_CTRL, corresponding to the six slots) are arbitrated and then converted into I2C read / write signals by the HP_I2C_MST control logic within the chip. These signals are used to read and write the input / output port registers within the PCA9554 chip, thereby generating the hot-plug control signals and reading out the status signals.

[0033] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A module that controls the hot-plugging of multiple PCIe slots via a pair of I2C pins, characterized in that, This includes a remote HP_ARB arbitrator, an HP_I2C_MST module, and a PCA9554 chip; The remote HP_ARB arbitrator arbitrates remote register read / write requests. The HP_I2C_MST module is internal chip logic that generates I2C_SCL and I2C_SDA signals that satisfy the I2C protocol based on the arbitration result. The PCA9554 chip is connected to the chip only through two I2C signal lines, SCL and SDA, and receives I2C_SCL and I2C_SDA signals to control the hot-swappable slot. The HP_I2C_MST module includes a near-end HP_ARB arbiter, a WB_RW_CTRL module, and an I2C_MASTER_TOP module; The near-end HP_ARB arbitrator takes the result of the far-end HP_ARB arbitration and the near-end register read / write request as input to conduct a new arbitration. The WB_RW_CTRL module converts register reads and writes into specific I2C read and write sequences, and generates the Wishbone interface signals required by I2C_MASTER_TOP and sends them to I2C_MASTER_TOP. The I2C_MASTER_TOP module converts I2C transactions and data on the Wishbone interface into serial signals of the I2C protocol. The PCA9554 chip includes an input port register, an output port register, a configuration register, a polarity inversion register, and an I2C serial interface.

2. The module for controlling hot plug of multiple PCIE slots through a pair of I2C pins according to claim 1, wherein, The HP_I2C_MST module also includes a frequency division coefficient register, which is used to divide the controller's operating clock to the clock required by the I2C interface.

3. A method for controlling the hot-plugging of multiple PCIe slots via a pair of I2C pins, characterized in that, The application of the module as described in claim 1 or 2 includes the following steps: Based on the hot-plug control signal generated by the hot-plug controller, a register read / write request is sent. Arbitrate register read / write requests; The arbitration result is converted into I2C read / write signals through the HP_I2C_MST control logic; Based on I2C read / write signals, the input and output port registers within the PCA9554 chip are read and written to realize the generation of hot-plug control signals and the reading of status signals.

4. The method for controlling the hot-plugging of multiple PCIe slots via a pair of I2C pins according to claim 3, characterized in that, The steps for reading and writing the input and output port registers within the PCA9554 chip based on I2C read / write signals include: First, I2C_MASTER_TOP sends an I2C write command, setting the register read / write status bit R / W to zero. The register also includes a start flag bit S, a device address bit Slave Address, a register bit Command Byte to be read, and a flag bit A, which is used to send the ACK / NACK flag. Resend the I2C read command and set the register read / write status bit R / W to 1 to indicate an I2C register read operation; When I2C_MASTER_TOP becomes the receiver and PCA9554 becomes the sender, the byte received by I2C_MASTER_TOP is the value of the first register read. After I2C_MASTER_TOP receives a byte of data returned by PCA9554, it sends an ACK flag to indicate that the information has been received and the next register value can be received. After receiving the last byte of data, I2C_MASTER_TOP sends the NACK and Stop flags. The NACK flag indicates that the information has been received but no new information will be received, and the Stop flag indicates that the current read operation has ended.

Citation Information

Patent Citations

  • Method for realizing hot-plug of PCIE equipment by CPLD or FPGA

    CN102662903A

  • Hot-swap controller and hot-swap control system

    CN114936177A