staging
While routing out the remaining part of little cloud’s circuit board, I came up with a satisfying approach to connecting large data buses with mismatched pins, and I thought I’d share it here. The problem is as follows, on the perimeter of a chip, you have 12 or so pins that make up a complex data bus, in our case RGMII (Gigabit MAC). You need to connect these pins to another cheap, in our case from a System-on-Chip to an Ethernet switch. Unfortunately, the order is not matched or even mirrored. They’re effectively scrambled relative to each other, so how do you approach this routing subtask sanely?
Here’s my take. You can create a sort of “staging area” across which you push pins to different distances, such as if you look strictly across those traces’ dimension, they’re in the right order. Then, dig each through a via into a different layer, and pull them out across a direction perpendicular to the original direction, and you’ve got hold of a bundle of traces in the correct order, that you can now bring close to the other pins to line up neatly. The 2D layout of the staging area is essentially some kind of one-hot matrix for projecting each pin based on its original index into its designated outbound index in the bundle. Pure bliss when outbound traces connected as intended into the switch pins.

power
Routing power globally felt qualitatively different to routing data, because instead of many point-to-point connections, we only have a handful of voltages we need to deliver to a few dozen different loads. One of the three power rails only fed the System-on-Chip, so I moved that +0V95 buck inward and routed it into the SoC’s courtyard, roughly across the middle of the board. The +5V was the next most in-demand. The Type-A port clusters needed it, and so did the USB NICs and analog switch. Because its loads were concentrated on the bottom side, I routed it out across there.
The remaining +3V3 was the most in-demand, so I routed it out both across the top and between the middle +0V95V and bottom +5V. We basically get a handful of long rails running across the length of the board. Because many regions are highly repetitive across the board length, the variety of voltage demands spreads instead across the board width for the most part.
prototype
The first enclosure prototype arrived! I was very impressed with JLCCNC’s service, every last part was packaged individually so it won’t get scratched, even if flat packing everything would have reduced their shipped volume by like 20x.
Here’s what I liked about the prototype, now that I could actually get a real feel for it. First, the 2mm plates definitely feel more put together than the 1mm ones, and they’re far from feeling excessively thick, so I’ll go with 2mm throughout from now on. Second, even in this old design with a long unsupported span, the top supported 8kg of weights with minimal deflection. Third, the threaded cube approach to assembly actually works and is quite painless and straightforward, so that’s also good to know. Fourth, we’ve got fitting port cutouts for both Type-C and Type-A, namely the tightest of attempts.
What I liked less about how this first iteration came out is the following. First, I have mixed feelings about the lack of finish / raw aluminum, as these plates were still a bit dusty from their manufacturing and get scratched quite easily, so next time I’ll have each part be a different finish to sample options. Second, standard M3 standoffs feel a bit short and thin. You can stack them I guess, but it’s a bit awkward. I’ll actually try ordering the support holes tapped in advance, and maybe for M4 or M5, and the longest standoffs I can find. Third, the handles and feet feel a bit toy-like in comparison to a 15” laptop placed on supports as a worker. Would people actually use these handles if moving little cloud around? Skipping top handles would allow the short side plates to sit directly under the top plate, supporting it throughout its span, and maybe rubber feet feeding into the bottom corner threaded cubes would be easier on the surface underneath. But they certainly add visual interest to an otherwise simple box.
flood
Or, how I learned to stop worrying and love the copper zone floods. So I initially routed everything with stand-in traces as sketch lines. But especially for power, it’s important to extend those nets out to thick copper pours as much as possible. This improves power distribution, heat dissipation, board flex, etc. Phil’s Lab materials also refer to these as power puddles.
Initially, I went about drawing out detailed polygons manually, starting small by restricting them to regions of direct relevance. And I’d then expand them outwards into available space. But I gradually realized the power of the flood algorithm baked into KiCAD when combined intentionally with zone priorities. I eventually deleted all zones went back to the drawing board, this time trying to use only plain rectangles by default, or otherwise much simplified geometry.
The key idea is to order the zones by priority, which sets the order in which they’ll be flooded by KiCAD. So by simply nesting simple geometries within each other with the right priorities, KiCAD will fill in the inner ones, then flood later ones around available regions only. You can also trigger a refill / removal of fills. I’d only fill it before export, to avoid working with the zones already “baked.” Because KiCAD also makes sure to keep a clearance from other nets when flooding, a simple zone specifications can lead to a very intricate shape for the copper pours, reaching everywhere they’re allowed to. You don’t need to worry too much about the flood shorting other nets, how messy that would have otherwise been!

polish
While doing the routing, I kept postponing some smaller subtasks by adding them in a TODO laundry list. I eventually got around to tackling all them in a big batch of minor tweaks. Stitching vias help establish a reliable connection across the ground planes. Return vias help improve EMC performance when placed near high-frequency traces that change layers. Debugging can be improved by wiring the RJ45’s LEDs to the last rail in the sequence and to a GPIO pin on the SoC.
The thermal vias in the original footprints for a few parts were below my target via size, and would have impacted costs for no good reason, so I scaled them up a bit. Did some very coarse delay matching on the Gigabit connection between the switch and the SoC, as I doubt that the protocols I’m using warrant full-blown tuning with meanders and squiggles. Spaced out buses a tiny bit, but they’re easily a multiple of the dielectric thickness so it’s probably fine for them to be quite packed.
With all those copper pours, I realized I should’ve used the coplanar options for determining controlled impedance trace geometry, but it seems close enough not to matter. At least a few fixtures for the automated assembly also seem good practice. Switched to “basic” parts where there was a drop-in replacement, next time I’ll know these are actually very specific, should be picked before layout to shave off some prototyping cost. So many options to go through in the order form, but I eventually placed the order! Someone got back to me a few hours later to confirm the part orientations and all, which seemed accurate.



