Consider this: in crystal silicon, the distance between nearest neighbors is 0.222 nanometers (0.222 nm = 2.22 Å = 222 pm).
The term "5 nm process" does not mean the features are on that size scale, it's just a label. It is better to look at transistor densities. One square millimeter is 1,000,000,000,000 square nanometers, and each square nanometer has about 6.78 silicon atoms on the surface of crystal silicon (FCC, or face-centered cubic lattice).
If we look at known
transistor densities, let's consider the CLN5FF 5nm process by TSMC in 2019: 171,300,000 transistors per square millimeter. In surface area, we're therefore talking about 39580 surface atoms per transistor, or about 140×140 cells of the FCC lattice (which has an atom at each corner of a square face, and one in the center of that face, so two atoms per cell, on the surface of the lattice). That count only applies to the surface area, mind you; the structures also have
depth, possibly hundreds of atoms deep, and at these scales we really need to look at the quantum mechanical model of the electron densities (a few outermost electrons only really interact, though), and cannot rely on macroscale rules of thumb like "current flows on the outer surface" at all.
The purpose of
doping is to introduce vacancies (P-type, using
acceptor dopants) or extra electrons (N-type, using
donor dopants), and at these proportions, not to change the lattice properties otherwise.
Because we are very well within the quantum realm at these scales, the doped atoms do not really stand out that much from the lattice. (Actually, they do; the way they distort the lattice around them, depending on their own electron structure, is kind of a problem. But the reason for the doping, the extra electron, or the lack of an electron at that position in the lattice, really is "spread" pretty evenly over a large volume, not localized to that spot like one might think if they mentally visualize atoms as marbles or similar things. They're not, not at this scale.) In a very real sense, instead of that extra electron or electron vacancy being localized there, it really is shared within the lattice. If there was no distortion in the lattice otherwise, it would not matter much exactly where the dopants are, as long as they are not clustered together and were evenly distributed.
What does this mean, then?
It means that at this scale, we cannot design circuits like we do e.g. PCBs; it is more like building with LEGOs, and designing each LEGO (say, a FET, or a small high frequency conductor) using simulators modeling the actual electron-electron interactions using quantum mechanical models. These take a LOT of computing power to verify, especially because you really want to know if the block properties change depending on the doped atom location et cetera... but at the base of it, they are just invented by us humans, and then found via simulation and experiment to work well. The models – like how exactly is a
FinFET constructed on a wafer – are well known in literature, but as far as I know, the exact practical details are Dark Magic Trade Secrets, known by all competitors, but not openly talked about.
The transistors are obviously the main building block – or at least the functional one –, but even "connecting wires" are similar building blocks at this scale. You don't just draw them willy-nilly as you like; they and their interaction with the other building blocks must be modeled and known. Essentially, nothing is "passive" at this scale. It has been this way for a few years now already. By shrinking the blocks, we need
more functional blocks, and model them even more precisely, as the smaller scale will mean that only specific types of blocks will work together. For example, instead of a single FinFET "block" you use everywhere, you need a few different variants depending on what is around it and so on, and use the appropriate one for each – even though logically it is always the same "block". So, real-world engineering and physics work, to find out what works, both via simulation and practical experiments on wafers. Whether you consider that scientific or engineering research I can't say; to me, it's one and the same (and includes quantum chemistry, too) at this scale.
I myself am a molecular dynamics or computational materials physics
toolmaker, trying to provide a next generation simulator for similar stuff – except that I don't work with the quantum mechanical models, but "classical" potential/force-field models, for examining non-electrical physical properties, like corrosion/radiation resistance and similar material properties. (Right now, all simulators really use programming techniques from the 1970s, and basically everybody is just throwing more hardware together to get shit done, instead of making the simulator software work better with the hardware we have. I'm that sort of a toolmaker: grumpy and unhappy about the waste of potential.) So, I have not done any of the kinds of simulations needed above myself, but I have supported users doing exactly that on VASP, Dalton, Gromacs, LAMMPS and other simulators; but even as a "glorified" programmer, my own core field is a bit different, on simulating the material properties in slightly larger systems (tens of thousands to billions of atoms – still less than a cubic millimeter of material –, but including things like how the doping process itself can be done, what is the penetration depth, damage to the crystalline structure, and so on).
Which means that if anyone with actual practical experience cares to post in this thread, that does trump my "theoretical"/simulation-based knowledge.