Electronics > Beginners
PCB : route VCC to multiple ICs
forrestc:
--- Quote from: T3sl4co1l on July 10, 2018, 02:46:46 am ---
--- Quote from: blueskull on July 10, 2018, 01:02:25 am ---Power integrity 101: always bring power to/from load/source through capacity, not to/from capacitor through load/source.
--- End quote ---
Citation needed ;)
Tim
--- End quote ---
His statement is definitely good for Power integrity 101. In the 2nd year course you learn that that rule of thumb can be ignored if you understand what you're doing. There are lots and lots of studies out there which have tried different ways to decouple, with varying results. But if you're not prepared to jump into the full understanding of what is going on (and you're working with lower speed designs), it's safest to just run from vcc/ground through the cap and to the device. Most of the time you'll find that even if you know what you're doing, running from vcc/ground through the cap to the device is actually safest. Especially on 2 layer boards.
I was looking for a couple of documents I have somewhere with details on this, but don't seem to be able to find them.... I do know that TI and others have high speed design appnotes which cover this and others.
T3sl4co1l:
"General rules for placing capacitors"
That, and no justification given. The plots just above are nice, but at a glance, don't seem to be connected to a specific layout. (Adequate justification requires high level math, which yes, is well beyond beginner scope.)
The comment about "signal flow" is particularly jarring -- signals don't flow one way along a passive component, they bounce around a thousand times at the speed of light. The impedance at a power pin is the sum of all those waves superimposed. The pin doesn't know what's going on here -- can't -- it's just a complex number that varies with frequency.
A knee-jerk reaction is absolutely undeserved. That "general" rules as sloppy as these, continue to exist and (mostly) work, is proof that PDNs can be quite messy indeed compared to an optimal case, without impairing overall performance of the system.
Indeed, I think you will find the impedance is quite low either way. You may even be pleasantly surprised to see the performance, if you take the time to measure or simulate it. :)
What really matters is ensuring you don't have poorly damped LC resonances, which is where you win with a regular structure with bulk caps for termination.
Tim
matseng:
If I'm allowed to slightly hijack/follow up on the subject of this thread I've been thinking of the standard oldskool 2-layer DIP-based logic boards where they used a fork-like structure to distribute the pwr & gnd to the ICs without messing up the available routing space for the signals. [please note that I've left out the decoupling caps in the images below for clarity reasons]
As I remember it the two buses came in from one side each - both on the same layer. So the vcc bus went up the left edge of the pcb and then forked off horizontally into each row of ICs. And gnd went up the right edge and forked off into the rows in the other direction. This is shown in the first image named "A"
Without decoupling caps this would give enormous return current loops - and I guess since the decoupling caps aren't perfect there will still be residual currents going all around the loop.
Now I've been taught that one should try to keep the high-frequency return currents as close as possible to the source currents. So the "B" version might be better then? Where both gnd and vcc is going up the pcb on separate layers on the same edge and then change the layer on one of them and let both fork out on the same layer across each row. This will significantly minimize the loop area.
After all this I finally come to my question - would version "C" be better or worse than "B"? Here I loop the vcc / gnd, on separate layers, all the way around the full edge, and from each edge go into the rows of ICs. This make the power distribution be more like a grid than a fork. This would hopefully reduce the resistance and impedances, but I'm afraid it will act as some antenna and fsck up the emi profile and whatnot.
T3sl4co1l:
Indeed, all these structures are some kind of folded dipole. As such, they are quite fine radiators, at resonant frequencies; and good enough to be bothersome at other frequencies.
At frequencies below resonance, C has the least inductance from any one chip to the power supply, followed by B, then distantly by A (which has full loop area).
With bypass caps, A is about as good as any other. Consider: bypass caps effectively short together the VCC/GND traces, at RF. The HF equivalent circuit is the same as C, give or take trace width (C then has two traces effectively in parallel; A could be made with slightly-more-than-double-width traces to give the same result).
With bypass caps, the loops are small and everything's happy, riiiight? Well, the conceit to that logic is ignoring traces spanning between rungs of the ladder. Which inevitably carry signal current into input pin capacitances, or off into transmission lines (backplanes, cables, anything with a heavier dynamic or static load). That draws current between rungs, and makes them bounce.
If the transition rate (rise time) is much longer than the electrical length of the folded dipole structure, it's not a big deal: the voltage between rungs will bounce a proportionally small amount. Say the width is 0.3m, the risetime is 5ns (1.5m) and the supply is 5V, then the bounce will be on the order of 5V * 0.3 / 1.5 = 1V. "On the order of" meaning, it will be proportional to this, but give or take whatever factors due to geometry, exact waveform (TTL high is slower and weaker than TTL low), load and so on. 1V might be fine for logic levels (well, that'd still be marginal for TTL, but not hard to improve), but would be a nightmare for EMI, where millivolts matter. That "geometry factor" isn't going to be more than a factor of 10, and we're off by three of those for EMI purposes, so it's obvious something must be done to fix EMI in this case.
The usual solution is backing the board with a ground shield, which somewhat shortens the loops (say the rungs are spaced 2cm apart, and the shield is 6mm away -- that's a significant reduction in free space around the loops), and reflects noise back into the circuit, preventing it from radiating. Then you only have to worry about connections which penetrate the shield: conducted EMI. This is still an EMI problem and all that entails, but you at least have a plane to stand on (literally): if nothing else, you can extend the shield out (i.e., use shielded cable), or filter the signals where they penetrate the shield.
The same principle extends to the estimation of local bypass and such.
First, guess how much impedance you actually need, and at what frequencies.
Example: TTL might require less than 0.5V ripple, with 5ns edges, and say 100mA worst-case transient current draw (step or impulse) for a whole chip. That gives you an impedance of 0.5V / 0.1A = 5Ω, and an inductance of 5ns * 5Ω = 25nH. (Again, give or take factors -- if these were sine waves, inductance would have a 2*pi in there. We're not talking sine waves here, but actually we'd expect some kind of humpy, or triangular, or square waves to be generated by logic chips. A different factor applies in that case -- use the inductor equation V = L * dI/dt to figure that out exactly. For now, understanding that there's a modest constant in there, and that this will give the right ballpark, is sufficient.)
Second, turn that impedance into a trace length. Typical traces are around 100 ohms, higher for thinner traces and without ground plane, and lower for wider traces and with ground plane. (You should always endeavor to design a 2-layer board with CPW (coplanar waveguide), i.e., a trace on top, surrounded by ground fill on top and bottom, with the pours stitched together with vias everywhere traces cut through them.) Impedance divided by the speed of light, gives trace inductivity: 100Ω / (3e8 m/s) = 0.33 uH/m. 25nH then is 7.5cm.
And there you have it, your maximum target supply trace length. Note this includes component body length -- it's rather futile to sweat millimeters here and there when you're laying out DIPs two centimeters long! -- and still includes geometry factors, so you should target, say, 1/3 of this or less. Which is quite feasible with chips placed end to end, with a bypass cap every chip or two. :)
This also shows it's absurd to try and use, say, 74LVC (~1ns!) on a DIP scale. (Something like a 74AC series bus driver is ridiculous enough!) If the poor thing is able to switch at all (without breaking into oscillation), there's no way you're going to keep that edge clean as it leaves the chip. Rise time is a big driver for SMT, and carries many other advantages as well. :)
Tim
matseng:
That's a nice explanation - thank you for spending time writing it up.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version