Basic PCI Express Two Port Switch Use Case
PCIe switches feature a single upstream port linking to the Rootport, multiple downstream ports linking to devices along with a switching mechanism that is responsible for directing the data packets among these ports.
The following figure shows a PCI Express two port switch use case consisting of a PCI Express upstream port connecting to a soft switching logic which in turn connects to a single downstream port. CPM PCIe controller supports both upstream and downstream modes and each of these blocks has four separate data interfaces on its client side based on the AXI4-Stream protocol. The switching logic needs to be implemented in a soft logic which manages the routing of packets directing them from downstream to upstream ports or vice versa. It needs to ensure that the bandwidth aligns between the upstream and downstream ports and additionally any required data interface conversions.