The invention provides a method for realizing hot-plug of PCIE (Peripheral Component Interconnect Express) equipment by CPLD (Complex Programmable Logic Device) or FPGA (Field Programmable Gate Array). A hardware system comprises PCIE HOST, CPLD / FPGA, PCIE HOT-PLUG CONTROLLER, and a PCIE insertion groove co-constructed system hardware platform, wherein multiple PCA9555 functional modules are hung under the PCIE HOST, and the function of converting SMBUS (System Management Bus) into GPIO (General Purpose Input / Output) is simulated in the CPLD / FPGA by the PCA9555 functional modules; different PCA9555 are distinguished by addresses A2, A1 and A0; the PCIE HOST communicates with the PAC9555 by the SMBUS; and the sequence control of a computer system and the hot-plug control of the PCIE equipment are integrated, and the PCA9555 function is realized by a programmable logic device CPLD / FPGA. Therefore, PCA9555 chips are not needed, the device use is reduced, the system cost is lowered, the power consumption is reduced, the board card space is saved, the computer system is lower in power consumption, and the reliability, stability and expandability are improved.