The invention belongs to the field of switch chips, and relates to a hardware and
software combined PCIE address translation and networking design device and method, the hardware and
software combined PCIE address translation and networking design device comprises an address translation unit, a built-in CPU and
firmware and a TLP transceiving unit, the address translation unit comprises a
control register and an address or BDF translation module for implementing TLP address or BDF translation; the
firmware is used for completing the
simulation of the iEP, and the
simulation method is that
software is used for completing the response to a received configuration request TLP, so that a DSP and an EP are simulated; and the TLP receiving and transmitting unit connects the built-in CPU to a switching network, so that the built-in CPU receives and transmits a TLP data packet. According to the PCIe switching
chip, a tree topology structure of a traditional PCIe switching
chip can be broken through, and any needed
network topology structure can be flexibly connected through software configuration; a plurality of hosts and devices can be connected at any port as required; the required iEP is realized by using internal
firmware, the function of the iEP can be realized by more flexible
programming, and the design cost is reduced compared with the method for realizing the iEP by using hardware.