FPGARelated.com
Forums

Board layout for FPGA

Started by TSMGrizzly February 4, 2010
On Feb 9, 2:10=A0pm, Symon <symon_bre...@hotmail.com> wrote:
> Allow me to rebut!! > > On 2/9/2010 5:31 PM, rickman wrote: > > > This is becoming a very informative discussion. =A0I have not tried to > > analyze a complex power distribution system (PDS). =A0Most of the > > devices I build have modest PDS needs. > > Unfortunately, if you use a FPFA with sub ns rise times, you no longer > have modest PDS needs. Your preference for a tightly coupled > power-ground plane bypassing system could lead to hi-frequency > resonances. You might not have these problems, but it's important to do > some kind of simulation or calculation to be sure. Remember, the > frequency of your signals are not the issue, but the rise times are.
Yes, I said I have not analyzed a complex PDS myself. But I have seen it done by Lee Ritchey with very informative results. Those results are the basis of what I have been saying here. ...snip...
> > You also did not include any of the parasitic effects of how the > > capacitors connect to their substrate. =A0In the case of the board > > mounted caps, they will have vias connecting them to the power > > planes. =A0In the case of the caps inside the package, they will also > > have mounting parasitic effects, even if there are no vias. > > =A0> > I guess you missed "L4 includes the vias"? I modeled the vias by lumping > them into L4. Likewise L5 includes the 'on BGA' inductance.
Yes, I missed that. I would like to know where you got your info. Now that you have me interested in this, I would like to understand what you have done.
> > But none of that really matters. =A0Your circuit is a very poor > > representation of the real world. > > I can't believe you would slag off my beautifully created design!
Lol!
> > That is why it is so important to > > verify results with real world measurements. =A0Your circuit has severa=
l
> > problems. =A0The first is that you only apply a single decoupling > > capacitor to the board! =A0I may be an advocate of using fewer > > decoupling capacitors, but I think one is pushing the envelope a bit > > much. =A0If you gave a reference to finding a value for the inductance > > of the connection between the power plane and the chip die, it must > > have been in an earlier post. > > Right, as I said it's a crude model, but surely you see it demonstrates > the point. I used one bypass cap, but I also used only one IOB, one BGA > bypass cap, and one ground and power via on the device. This model is to > show qualitative differences, and what general effects our design > decisions have.
Qualitative is not very useful. Everything has some effect on everything. What is important is how *much* of an effect. There will always be some ground and power noise. It is only a problem when it becomes significant in comparison to the noise margins. Is that not true? By only using one of each item in the design an unrealistic representation of the circuit you are trying to propose. Clearly there are a lot more than 1 board cap and via for each cap on the IC. If I said the caps on the chip will have *no* effect, I did not mean that. I intended to say that they would have no significant effect in the region of interest. Also, without understanding how you came up with the values used in your simulation, I have no way to trust it.
> > But most importantly, I am very sure that your model for how the > > transients are generated is wrong. =A0You show the current path as bein=
g
> > from the FPGA power plane directly through the output series > > resistance and back to the FPGA ground. =A0I am pretty sure that none o=
f
> > the traces on the board (the source of the capacitive load on the > > output) directly connect to the FPGA ground. > > Right back at you Rick, you are wrong! Look at the datasheet for a > modern Xilinx FPGA. I'm looking at DS312, Spartan3E. Look for Cin. That > 10pF is there, ON THE DIE, because of the IOB's output FETs. This Spice > model is a IOB switching without any attached signal. When the output > switches, a 10pF capacitor has to be charged or discharged from the > FPGA's PDS through the 20ohms or so output resistance. The model is just > fine.
Why do you say it is "on the die"? The value of Cin is largely from the pin itself from what I have learned. Perhaps I am wrong, but it makes sense to me that the pin has more capacitance than the transistor on the die, but I may not be right on that. How can you tell this capacitance is of the transistor and not the pin?
> > =A0You need to put that > > connection to the board ground, and even then through another package > > lead. =A0The model of using a signal generator to provide current surge=
s
> > may not be so good as well. =A0This results in currents being drawn > > between the two FPGA planes. =A0Perhaps I am reading incorrectly that > > the Vout is an I/O pin and you are only trying to model internal > > switching transients. =A0The real issue that causes ground bounce (the > > thing you seem to be most concerned about) is the current required to > > charge and discharge the board trace and component pin on the other > > end of that trace. > > Not with FPGAs. The Cin is so high, the effect of the rest of the trace > isn't necessary to show my point.
I'm not at all clear on that. The capacitance of the trace is very significant. If you said the trace and other IC pins shouldn't be modeled as a lumped capacitance, I would agree that might be significant, but to say it is not important at all is not obvious without something to support that.
> > =A0This current will by necessity pass through the > > two inductors (L1, L2) and will create a lot of bounce that is not > > mitigated by the on chip capacitor(s). > > > Even if you are looking at the internal switching noise of the IC, you > > need to model the *entire* PDS, not just one pin or one capacitor at a > > time. =A0You also need to pick appropriate values for the various > > components and include all parasitic effects. =A0If you can't do all of > > that, or even if you can, a simulation doesn't mean squat if it isn't > > complete. > > I must disagree here also. I think the model does give some insights > into the issues that can arise. I'm not looking for accurate numbers, > just qualitative comparisons between different methodologies.
Ok, then I agree that there will be some effect from the on chip caps. But I don't agree that they are useful in reducing ground bounce from I/O switching.
> > The only way to know if it is complete for something as > > complex as this is to take measurements of a real design. > > > Rick > > People can and do simulate entire PDS systems, sometimes using expensive > CAD software like HSPICE or even HFSS =A0or ADS. > > Anyway, I've finished with this thread. I hope people reading it will > take away that simulation is cheap and easy and can give good insights, > even with a simplistic model. I hope I've scared a few people with > 'power plane resonance' (google it!). I hope I've persuaded a few to > route/pour their powers because you don't stand to gain much from > tightly coupled planes, indeed you can have nasty problems from them, > aside from the logistics of having many power supplies in a modern FPGA > design. I hope I've persuaded a few to use more ground planes instead of > power planes, and use their ground planes near to the surface and near > their signal traces as it's harder to go wrong with this set up. Oh, and > I hope that now you've downloaded the simulator, you'll get a lot of > good use from it Rick. I hope you'll play around with some of the things > you posted and see what effects they have. There's a mailing list for > LTSpice, which is easy to find, that is useful for advice. > > Cheers, Syms.
Yes, I have used this simulator before. But a simulation is only as useful as the circuit being simulated. If you try to simulate a complex PDS without verifying it with measurement, you have no idea if your simulation is correct. I believe the "mailing list" is actually a Yahoo group which is a *great* place to get excellent support. I forget the name of the LT person, but he answers every question he can with patience and never chids no matter how many times that same question has been answered. It would appear that responding to that group is his full time job at LT! I will say that the Ritchey course is full of examples of designers who follow rules of thumb without knowing why or that use an incorrect analysis without ever verifying it with the real world. There are even examples of companies that went out of business because of designers who did not completely understand why their circuits did not work correctly. Maybe I will perform this simulation the way I think it should be done. Then we will see if closely coupled power planes are pointless or not... Rick
I'm about to start the layout on a board which I think needs
a 10 layer stack.

After the religious wars betwen rickman and Symon on decoupling I'm
unsure on the best stack but am veering towards...

1  signal - Top
2  GND plane
3  signal
4  signal
5  PWR plane
6  GND plane
7  signal
8  signal
9  PWR & GND plane
10 signal - Bottom


There will almost definitely be power pours on layer 9, the BGA
will be on the top layer.



Comments? 


On Feb 11, 5:05=A0am, "Nial Stewart"
<nial*REMOVE_TH...@nialstewartdevelopments.co.uk> wrote:
> I'm about to start the layout on a board which I think needs > a 10 layer stack. > > After the religious wars betwen rickman and Symon on decoupling I'm > unsure on the best stack but am veering towards... > > 1 =A0signal - Top > 2 =A0GND plane > 3 =A0signal > 4 =A0signal > 5 =A0PWR plane > 6 =A0GND plane > 7 =A0signal > 8 =A0signal > 9 =A0PWR & GND plane > 10 signal - Bottom > > There will almost definitely be power pours on layer 9, the BGA > will be on the top layer. > > Comments?
If you're planning a solid plane for the "PWR plane" on layer 5, I'd probably swap that one with layer 9 so you'd have a solid plane near the bottom. Otherwise you need to be careful routing high speed signals across the plane splits on layers 8 and 10. Regards, Gabor
My "religion" does not tell you how to make a stackup without more
information.

Do you need to set specific impedance on any traces?  If so, what
values, number of traces and approximate length.

Do you expect any EMI issues?  What is your fastest edge rate?

The way you have your stack set up seems to be optimized for
controlling trace impedance by having a gnd/pwr layer immediately
adjacent to each signal layer.  The stackup below will give you a
stackup optimized for power distribution and still allow for impedance
control if you can adjust your trace width to suit.  I assume you have
read the arguments pro and con the significance of inter plane
capacitance.  With the stackup below, you can still get good impedance
control on the outer layers with slightly wider traces.  But you won't
be routing too many signals on the outer layers if your board is at
all dense, the components eat up al the routing space.  It will be
important on *all* layers to minimize routing of signals one above the
other on adjacent layers to prevent coupling and crosstalk.  The easy
remedy is to route orthogonally on adjacent layers.  It also provides
a good means of getting signals around the board with minimal vias
which is important.

 1  signal - Top
 2  signal
 3  GND plane  -- >=3D 5 mil to PWR plane 4
 4  PWR plane
 5  signal
 6  signal
 7  GND plane  -- >=3D 5 mil to PWR plane 8
 8  PWR plane
 9  signal
10  signal - Bottom

With ten layers the average thickness (using 1/2 oz copper) is about 6
mil.  You will likely make it a little thicker between layers 4, 5, 6
and 7 since that is stripline rather than microstrip.  You will want
to use very thin layers between 3 & 4 and 7 & 8 to maximize PDS
capacitance.

If you want to go for maximum signal isolation from crosstalk, I would
isolate all signal layers with power and ground.

 1  signal - Top
 2  GND plane
 3  signal
 4  PWR plane
 5  signal
 6  signal
 7  GND plane
 8  signal
 9  PWR plane
10  signal - Bottom

Well, I guess 5 and 6 are still adjacent, but you can't have
everything...  This arrangement does lend itself to ground pours on
all signal layers other than 5 and 6.  If you use ground pours on
layers 5 and 6 it will much with the impedance control because of the
routing on the adjacent signal layer.

This is just a seat-of-the-pants analysis.  If you need impedance
control on all layers, you would need to analyze each signal layer in
terms of impedance vs. trace width.  You may find that your approach
is better for your specific needs.

Can you explain the rational behind your stackup?  I don't want to
argue about it, I just want to learn what you are thinking.


On Feb 11, 5:05=A0am, "Nial Stewart"
<nial*REMOVE_TH...@nialstewartdevelopments.co.uk> wrote:
> I'm about to start the layout on a board which I think needs > a 10 laye-r stack. > > After the religious wars betwen rickman and Symon on decoupling I'm > unsure on the best stack but am veering towards... > > 1 =A0signal - Top > 2 =A0GND plane > 3 =A0signal > 4 =A0signal > 5 =A0PWR plane > 6 =A0GND plane > 7 =A0signal > 8 =A0signal > 9 =A0PWR & GND plane > 10 signal - Bottom > > There will almost definitely be power pours on layer 9, the BGA > will be on the top layer. > > Comments?
I wouldn't bother mixing ground and power on one layer. Even with a couple of signal layers between, you will get significant capacitance between the power and ground. Since the power layers act as ground for high frequency signals you don't need the ground on layer 9 unless it is for connectivity. Are you expecting gnd layers 6 and 2 to be chopped up? With two power layers they will be much less chopped up if you have more than two power voltages. Rick
On Feb 9, 3:15=A0pm, glen herrmannsfeldt <g...@ugcs.caltech.edu> wrote:
> Symon <symon_bre...@hotmail.com> wrote: > > (snip) > > > Sure Rick, let's go through it together with some cheap tools (free!) > > from t'internet. OK, you can get a nice copy of Spice from here. maybe > > you already have it. > >http://www.linear.com/designtools/software/ > > At the bottom of this post you will find a model of a PCB with a power > > plane bypass. I've used lumped components to model it. If you > > cut'n'paste the text into an editor and save it as 'planes.asc' or > > somesuch, you should be able to load it into the simulator you download=
ed.
> > (really big snip) > > I think you really need a model of the radial transmission line, > which I don't see (but could have missed). > > See the papers I mentioned in previous posts.
I think I have figured out why you *don't* need to consider a radial transmission line in models of the PDS. The transmission line model is only effective if the length of the line is longer than about 1/6th of the rising edge of the signal. For a 0.5 ns rise time pulse the rising edge is about 3 inches in length on the PWB. So if you keep your caps within a half inch of the power pins of the chip, the transmission line effects are spread over the entire path (or averaged if you will). In other words, for adequately short paths, the electrical path between the power pins and decoupling caps appears as a lumped capacitance and does not need to be analyzed as a transmission line. Does that sound right? Rick
rickman <gnuarm@gmail.com> wrote:
(snip, I wrote)

>> I think you really need a model of the radial transmission line, >> which I don't see (but could have missed).
>> See the papers I mentioned in previous posts.
> I think I have figured out why you *don't* need to consider a radial > transmission line in models of the PDS. The transmission line model > is only effective if the length of the line is longer than about 1/6th > of the rising edge of the signal. For a 0.5 ns rise time pulse the > rising edge is about 3 inches in length on the PWB. So if you keep > your caps within a half inch of the power pins of the chip, the > transmission line effects are spread over the entire path (or averaged > if you will). In other words, for adequately short paths, the > electrical path between the power pins and decoupling caps appears as > a lumped capacitance and does not need to be analyzed as a > transmission line.
It does seem that the previously mentioned papers analyze them in ways that I wouldn't think would matter. One even considers the reflection of other vias. But, there are a few things that I think should be considered. The inductance of the via, and the input impedance of the radial transmission line are proportional to 1/r. Big vias are better. A group of vias close enough together, though, should act like a large via. (The fields couple such that it isn't the same as parallel inductors.) It would seem that one should also be careful not to put the FPGA right in the center of a large ground plane, such the the edge reflections come back in phase. That would be especially bad for a large circular ground plane. If the decoupling capacitors were regularly spaced, that could also cause in-phase reflections.
> Does that sound right?
It doesn't seem so far off. It still seems that radial transmission line theory isn't taught much at all. -- glen
On Feb 16, 3:17 pm, glen herrmannsfeldt <g...@ugcs.caltech.edu> wrote:
> rickman <gnu...@gmail.com> wrote: > > (snip, I wrote) > > >> I think you really need a model of the radial transmission line, > >> which I don't see (but could have missed). > >> See the papers I mentioned in previous posts. > > I think I have figured out why you *don't* need to consider a radial > > transmission line in models of the PDS. The transmission line model > > is only effective if the length of the line is longer than about 1/6th > > of the rising edge of the signal. For a 0.5 ns rise time pulse the > > rising edge is about 3 inches in length on the PWB. So if you keep > > your caps within a half inch of the power pins of the chip, the > > transmission line effects are spread over the entire path (or averaged > > if you will). In other words, for adequately short paths, the > > electrical path between the power pins and decoupling caps appears as > > a lumped capacitance and does not need to be analyzed as a > > transmission line. > > It does seem that the previously mentioned papers analyze them > in ways that I wouldn't think would matter. One even considers > the reflection of other vias. > > But, there are a few things that I think should be considered. > The inductance of the via, and the input impedance of the radial > transmission line are proportional to 1/r. Big vias are better. > A group of vias close enough together, though, should act like > a large via. (The fields couple such that it isn't the same > as parallel inductors.) > > It would seem that one should also be careful not to put the FPGA > right in the center of a large ground plane, such the the edge > reflections come back in phase. That would be especially bad for > a large circular ground plane. If the decoupling capacitors were > regularly spaced, that could also cause in-phase reflections. > > > Does that sound right? > > It doesn't seem so far off. It still seems that radial transmission > line theory isn't taught much at all.
I am confused. You say that my analysis is not far off and the whole (hole) point of my analysis is to show that the radial transmission line effect is not important. Then you say you still think the radial transmission line effect *is* important. I am pretty sure that the effects of the decoupling caps swamps out the effect of the reflections. This is not very scientific and so may be totally wrong, but it would seem to me that the caps will "mute" the voltage transitions on the plane as the wave moves by. If it were a linear transmission line, the cap would "smear" out the edge of the wave front. In the PCB power plane the same thing happens, but it is likely strongest at the cap and is a weaker effect further away from the cap. In the case of a transient, smearing it out reduces the amplitude which is exactly what it is supposed to do. So I expect the wave front never reaches a board edge to cause a significant reflection. I will say that when the impedance of a PDS is measured the very high frequencies often have a sawtooth shape which is likely due to standing waves on the board. So there must be some of the transient that is reflected. But if you can verify your analysis method by measuring the impedance of the PDS to be below your requirements at all frequencies, what does it matter if the power planes form a "radial transmission line"? You only need to do enough analysis to get a "good enough" result. I would think that if this were an important effect, that would have been discovered by now. Rick
rickman <gnuarm@gmail.com> wrote:
(snip, I wrote)

>> But, there are a few things that I think should be considered. >> The inductance of the via, and the input impedance of the radial >> transmission line are proportional to 1/r. Big vias are better. >> A group of vias close enough together, though, should act like >> a large via. (The fields couple such that it isn't the same >> as parallel inductors.)
>> It would seem that one should also be careful not to put the FPGA >> right in the center of a large ground plane, such the the edge >> reflections come back in phase. That would be especially bad for >> a large circular ground plane. If the decoupling capacitors were >> regularly spaced, that could also cause in-phase reflections.
>> > Does that sound right?
>> It doesn't seem so far off. It still seems that radial transmission >> line theory isn't taught much at all.
> I am confused. You say that my analysis is not far off and the whole > (hole) point of my analysis is to show that the radial transmission > line effect is not important. Then you say you still think the radial > transmission line effect *is* important.
> I am pretty sure that the effects of the decoupling caps swamps out > the effect of the reflections. This is not very scientific and so may > be totally wrong, but it would seem to me that the caps will "mute" > the voltage transitions on the plane as the wave moves by.
If it works right, the capacitor should be an AC short between the planes. If, for example, you had a ring of capacitors around a constant radius from a via, then the reflection off those should come back in phase. That is pretty much the same as a microwave cavity resonator.
> If it were > a linear transmission line, the cap would "smear" out the edge of the > wave front.
A capacitor across a linear transmission line should make a nice reflection. A capacitor and series resistor should absorb some of the AC signal, but ignore the DC voltage. Though that assumes ideal capacitors.
> In the PCB power plane the same thing happens, but it is > likely strongest at the cap and is a weaker effect further away from > the cap. In the case of a transient, smearing it out reduces the > amplitude which is exactly what it is supposed to do. So I expect the > wave front never reaches a board edge to cause a significant > reflection. I will say that when the impedance of a PDS is measured > the very high frequencies often have a sawtooth shape which is likely > due to standing waves on the board. So there must be some of the > transient that is reflected.
In a real board with lots of ICs, vias, and bypass capacitors, you would hope that the reflections are rarely in phase. If parts are placed too regularly on the board, it would seem possible for some strong resonance to form.
> But if you can verify your analysis method by measuring the impedance > of the PDS to be below your requirements at all frequencies, what does > it matter if the power planes form a "radial transmission line"?
I think it only really matters for a very short distance. For that distance, though, it should be computed as a radial transmission line.
> You only need to do enough analysis to get a "good enough" result. > I would think that if this were an important effect, that would have > been discovered by now.
There have been plenty of cases where effects when unnoticed for way too long. If, for example, a board resonance turned out to be the same as an on-board frequency it could easily be very significant. Then an unrelated change would move the resonance, and the problem would go away without ever being found. -- glen
On Feb 16, 8:32=A0pm, glen herrmannsfeldt <g...@ugcs.caltech.edu> wrote:
> rickman <gnu...@gmail.com> wrote: > > (snip, I wrote) > > > > >> But, there are a few things that I think should be considered. > >> The inductance of the via, and the input impedance of the radial > >> transmission line are proportional to 1/r. =A0Big vias are better. > >> A group of vias close enough together, though, should act like > >> a large via. =A0(The fields couple such that it isn't the same > >> as parallel inductors.) > >> It would seem that one should also be careful not to put the FPGA > >> right in the center of a large ground plane, such the the edge > >> reflections come back in phase. =A0That would be especially bad for > >> a large circular ground plane. =A0If the decoupling capacitors were > >> regularly spaced, that could also cause in-phase reflections. > >> > Does that sound right? > >> It doesn't seem so far off. =A0It still seems that radial transmission > >> line theory isn't taught much at all. > > I am confused. =A0You say that my analysis is not far off and the whole > > (hole) point of my analysis is to show that the radial transmission > > line effect is not important. =A0Then you say you still think the radia=
l
> > transmission line effect *is* important. > > I am pretty sure that the effects of the decoupling caps swamps out > > the effect of the reflections. =A0This is not very scientific and so ma=
y
> > be totally wrong, but it would seem to me that the caps will "mute" > > the voltage transitions on the plane as the wave moves by. =A0 > > If it works right, the capacitor should be an AC short between the > planes. =A0If, for example, you had a ring of capacitors around > a constant radius from a via, then the reflection off those should > come back in phase. =A0That is pretty much the same as a microwave > cavity resonator. =A0
You are still talking about the reflections from the caps and I have already shown that the caps don't cause reflections as long as they are very close to the vias connecting the power pins. The wavelength of the transients are too long so that only a portion of the edge is ever distributed across the transmission line between the via and the cap. The result is that the reflection is insignificant and the cap acts to suppress the wavefront and not let it pass beyond the region around the cap.
> > If it were > > a linear transmission line, the cap would "smear" out the edge of the > > wave front. =A0 > > A capacitor across a linear transmission line should make a nice > reflection. =A0A capacitor and series resistor should absorb some > of the AC signal, but ignore the DC voltage. =A0Though that assumes > ideal capacitors.
But not if the transition time of the edge is slow compared to the transit time to the cap. The reflection would be the opposite phase, but much, much smaller in amplitude than the full transient. Meanwhile the amount of the transient passing the cap would also be very small because most of the energy is reflected.
> > In the PCB power plane the same thing happens, but it is > > likely strongest at the cap and is a weaker effect further away from > > the cap. =A0In the case of a transient, smearing it out reduces the > > amplitude which is exactly what it is supposed to do. =A0So I expect th=
e
> > wave front never reaches a board edge to cause a significant > > reflection. =A0I will say that when the impedance of a PDS is measured > > the very high frequencies often have a sawtooth shape which is likely > > due to standing waves on the board. =A0So there must be some of the > > transient that is reflected. > > In a real board with lots of ICs, vias, and bypass capacitors, > you would hope that the reflections are rarely in phase. =A0If parts > are placed too regularly on the board, it would seem possible for > some strong resonance to form. =A0
I don't mean to repeat myself endlessly, but I don't think you will see much of the reflections. The wave front does not pass the area around the cap since it is absorbed by the cap. The reflection from the cap is opposite in phase as the original transient and is only displaced a fraction of the width of the transient so it nearly cancels out in all directions. The degree to which it cancels out depends on the time offset of the reflection which is determined by the spacing between the cap and the power via and the strength of the reflection which in turn depends on the impedance of the cap at that frequency. The reflection is a good thing, not a bad thing. That is what reduces the transient!
> > But if you can verify your analysis method by measuring the impedance > > of the PDS to be below your requirements at all frequencies, what does > > it matter if the power planes form a "radial transmission line"? =A0 > > I think it only really matters for a very short distance. For that > distance, though, it should be computed as a radial transmission line.
I t would seem to me to make more of a difference over a larger distance where the impedance seen varies much more. If you think of it as an impedance that reduces with distance from the power via, it would create a continuous reflection back to the via, in effect reducing the amplitude of the transient. Imagine many, small reflections with only a very slight difference in phase summing up. In effect, it would be a lot like a lumped capacitance right at the via I think.
> > You only need to do enough analysis to get a "good enough" result. > > I would think that if this were an important effect, that would have > > been discovered by now. > > There have been plenty of cases where effects when unnoticed for > way too long. =A0If, for example, a board resonance turned out to > be the same as an on-board frequency it could easily be very > significant. =A0Then an unrelated change would move the resonance, > and the problem would go away without ever being found.
If that resonance were causing a problem, I would expect that it would be noticed and recognized at some point. Any given board might have some change made which will cause the problem to "go away", but I can't believe at this point in time no one would have ever seen this and recognized it for what it was. Why make up problems if they don't exist? Rick