Post History
The component with the local ground net still needs to be well-connected to the main ground. The best place for the single connection between the main ground and the local ground net is therefore ...
#1: Initial revision
The component with the local ground net still needs to be well-connected to the main ground. The best place for the single connection between the main ground and the local ground net is therefore as close as possible to the IC ground pin. When the IC has multiple ground pins, like many microcontrollers do, I usually connect the grounds locally first, then put the connection to the main ground somewhere roughly centered under the IC or its various ground pins. Here is an example: <img src="https://electrical.codidact.com/uploads/1c5j91ow9wumfuxyvx53pq8u4b6i"> The top layer is shown in red, with the master ground plane in layer 2. IC5 is a microcontroller with three ground pins. Those are tied together in the middle below the IC. The connection to the main ground is made by SH2, which is two vias connected together. That's one of various stock parts I have called "shorts" that tie two nets together where I choose, while Eagle thinks of them as separate nets. This particular "short" connects on all layers. I have others that connect only on a single layer. Note that the ground side of the three bypass caps, C26, C20, and C19 connect to the micro's ground pins but not to the main ground. Those caps carry the high frequency power currents generated by IC5 and contain them locally. The ground to the crystal caps of Y1 (C25 and C24) are also local. This micro also has analog power and ground pins, which are right above C21. To keep the micro's analog ground as clean as possible, it has its own via to the main ground. It's a bit hard to see in this picture, but the via immediately above C21 is connected to the ground plane, while most of the other vias are not. The pin immediately right of the analog ground is the analog power. You can see it connects to the other side of C21. In this case, the analog power comes from the main 3.3 V power, but thru the chip inductor L5. L5 and C21 filter out some of the noise on the main 3.3 V supply to make the analog power to the micro. You don't usually need a separate net for power. Good bypassing at each use of the power net reduces the requirement of low impedance everywhere. In the example above, the main 3.3 V power was directly connected to the three power pins of the micro. A bit of impedance in that power feed doesn't matter much since the local bypass caps C26, C20, and C19 keep the impedance low right at the micro's power pins.
