I'm planning on building my own computer soon, somethinng I've never done before. The CPU I want to get for it is an AMD Ryzen 5 5600. Something in its specifications page confuses me, though. It says that it has 4 native USB 3.2 gen 2 ports, and no other native USB ports. That said, the CPU itself doesn't have any ports; those are found on the motherboard. So, why does the specs page talk about native USB ports? The motherboard that interests me the most has six USB ports, but only two of them are gen 2, with the others being gen 1. Would I still be able to use them?
That the CPU has "native" USB ports is the same as the CPU hosting PCIe ports.
In other words there are USB ports connectors on your motherboard that rather than going through one of the motherboard chipset integrated circuits it connects directly to the CPU. The motherboard hosts the connector and wires, but not the actual controller.
What that means is that there is potentially one or more less "hops" between the USB connector and your CPU. Data comes to and from the CPU directly.
Its the same with PCIe, on modern systems one or more PCIe ports connects directly to the CPU, with other ports connecting to the motherboard chipset.
It's the left hand side of the following image. There are USB ports coming off the X570 chipset (the motherboard, shown in red) and there are ports that are controlled and hosted directly by the CPU on the right.