What is The Best VIA Placement for Decoupling Capacitors?

Поделиться
HTML-код
  • Опубликовано: 26 сен 2024
  • How much better is it to connect decoupling capacitor with a wide track comparing to a narrow track? Is it really a huge difference? What do you think?
    Links:
    - Steve Sandler & Picotest: www.picotest.c...
    - The picture from video: welldoneblogfe...
    - PCB Layout & Decoupling Videos: • PCB Layout & Decoupling
    ------------------------------------------------------
    Would you like to support me in what I do? It's simple:
    - you will help me a LOT, when you sign up for one of our Schematic and PCB Design online courses at www.fedevel.co...
    The other ways to support me in what I do are:
    - Subscribe to this channel
    - support me through Patreon page / robertferanec
    - sign up for my Udemy course, Learn to Design Your Own Boards www.udemy.com/...
    - send me an email and/or leave a positive comment
    - watch and like the videos :)
    - read my Welldone Blog at welldoneblog.f...
    - spread a word about FEDEVEL Academy
    It is much appreciated. Thank you,
    - Robert

Комментарии • 313

  • @vishnusunderlal5660
    @vishnusunderlal5660 3 года назад +130

    Hi Robert, It would be interesting to see you testing these PCBs after fabrication

    • @RobertFeranec
      @RobertFeranec  3 года назад +14

      Thank you Vishnu

    • @therealb888
      @therealb888 2 года назад +12

      @@RobertFeranec Yes, please. We have almost no good pcb testing videos.

    • @davidjmstewart
      @davidjmstewart Год назад +1

      Seconded, this would be a really interesting exploration.

  • @saucebosspl
    @saucebosspl 3 года назад +11

    I'm a hobbyist (2 layers PCB, audio) and I have been always taught that coupling caps should be on the same layer as the component being decoupled. I belive it makes sense, since vias have parasitic inductance and resistance (also explains why having multiple vias help). Thank you for the videos, they help me a lot!

    • @mik310s
      @mik310s Год назад +1

      I put them, on the same layer when possible, I also put a via on the GND pad of the cap.

  • @p_mouse8676
    @p_mouse8676 3 года назад +7

    What I really like about you and your videos, is that you actually dive a lot deeper into the subject. Most people (even many professionals) just repeat something they have read or heard somewhere without even investigating. (And also say it on such a way like it's factual)
    I would really like to see so practical measurements to see how accurate these simulations are.
    Since vias always add some resistance and inductance, it makes sense that a direct connection will be better I think. I am curious about some hybrid approaches.

    • @RobertFeranec
      @RobertFeranec  3 года назад +2

      Thank you P_Mouse. PS: That is exactly what I have in mind when I am creating my videos - I keep hearing a lot of "facts" and many are exactly opposite, or people just repeat what they heard somewhere and then ... it's super difficult to say what is actually true and how important it really is for real designs. And that is what I am trying to find out in. Just need more ideas for next topics :D

    • @p_mouse8676
      @p_mouse8676 3 года назад +1

      @@RobertFeranec I have whole lists of these kind of ideas or questions. Although not only related to PCB design.
      But mostly also more from practical design.
      One example is still the excessive amount of via stitching vs proper pcb design.

    • @RobertFeranec
      @RobertFeranec  3 года назад +1

      @@p_mouse8676 If you would like to share some interesting topics, I can have a look. No promises, but if it is also interesting for me and I find someone who can help, I always try to do it. Just send me an email to info@fedevel.com. Thank you.

  • @merdogan-ee-engineer
    @merdogan-ee-engineer 3 года назад +9

    When people say the location of the capacitor doesn't matter; they are talking about the bulk capacitor(C>100uF) which is more effective at lower frequencies. For decoupling capacitors location matters hugely. Moreover, if you build and measure the real results, I propose a better method for the circuit #43. You used multiple power planes. But if you use power and ground planes interchanging from top to bottom or vice versa ( P-G-P-G) you can create a good interplanar capacitances parallel to each other. This method is said to be much better since the interplanar capacitance has very small ESL compared to chip capacitors.

    • @stevesandler3974
      @stevesandler3974 3 года назад

      this is true, but this is only partial inductance. You still have to get from the cap vias to these planes and from these planes to the ASIC or other DUT

    • @RobertFeranec
      @RobertFeranec  3 года назад +1

      Oh, I believe that people / articles were talking about decoupling capacitors. That is why I was so surprised. Need to find them ... PS: Good idea with the power planes. Thank you.

  • @nicolasguichard9788
    @nicolasguichard9788 3 года назад +35

    You demonstrate the effect of the position of the cap by showing one very far compared to one in the center. I would be curious of the result of a cap very near the power pins! Thx for the video, always fun to play the PCB version of Dora the explorer ;)

    • @RobertFeranec
      @RobertFeranec  3 года назад +5

      Thank you Nicolas :) PS: I am making a note about this setup.

    • @m.sierra5258
      @m.sierra5258 2 года назад +1

      @@RobertFeranec Yes, exactly my thought. I wonder how a single capacitor directly at the sink without vias would perform. Which is, to my knowledge, the recommended way of connecting decoupling capacities

  • @zhitailiu3876
    @zhitailiu3876 3 года назад +10

    Thank you so much!
    Definitely need to invite Steven and shed some light!

    • @RobertFeranec
      @RobertFeranec  3 года назад +2

      Thank you Zhitai. PS: Let's see how popular this video will be and how many people will ask for follow up :)

  • @iPatroni
    @iPatroni 3 года назад +23

    Great video, would love to see the real world boards tested against the simulations. Thanks

  • @foxabilo
    @foxabilo 3 года назад +1

    This matches what most chip manufacturers say about decoupling caps "They must be as close to the power pins of the chip as possible" taken quite litterally this means on the same layer and right next to the pins. This matches your results perfectly.

  • @thomasyoon8851
    @thomasyoon8851 3 года назад +3

    Very interesting! Especially the performance of the thin top layer traces with no vias vs. planes with vias. After some thought I would suggest that the remarkably low impedance is partially due to what the simulation is measuring. Specifically, it appears that the simulation is calculating the impedance from the S21 insertion loss parameter which measures the voltage on the output pair given a varying voltage/current on the input port. For a high speed decoupling capacitor I would think that the S22 (or S11) return loss parameter would be of greater interest which would measure how much the voltage on the output pair changes given a varying output load current. I think that the calculated impedance based on S22 would be much higher for the long skinny top layer trace case.
    Thank you very much for the wonderfully informative video and keep up the great work! I would love to see some PCBs actually built and tested with a network analyzer for both S21 and S11 insertion and return loss measurements.

  • @pentachronic
    @pentachronic 3 года назад +5

    From my understanding, the placement is important from loop-area standpoint but the vias also add a big problem (they're inductive mostly with capacitance to the inner plane holes). It's best to use the same layer from the capacitor to the IC power pins using very short traces (if possible) and then have the via to the power planes. This way you avoid extra inductance and you have the local decoupling with the lowest impedance to the IC (this is why you want capacitors in the first place - for high frequency transient energy).
    For a more realistic simulation you should have an IBIS model of an IC with dynamic switching because the transient behaviour of an IC during switching is a non-linear current draw. The different frequencies will see different impedances due to the different current harmonics.

  • @harishrao2952
    @harishrao2952 3 года назад +1

    Very curious to see the real board with the real time measurements. Your videos are gem, you are really making hardware things very easy to understand. Thanks for all the effort you are putting.

  • @sigmaxi7822
    @sigmaxi7822 3 года назад +38

    To me the simulation results without vias look totally fine. To my knowledge, vias have non-negligible inductance which increases the impedance at high frequencies a lot. So a direct connection is always better than vias.

    • @優さん-n7m
      @優さん-n7m Год назад

      how does via inductance over frequency differ from track inductance over frequency?

  • @TrombonePlayAlongs
    @TrombonePlayAlongs 3 года назад +1

    Great Video!
    If possible, I always try to place the decoupling capacitors on the same side of the IC and draw a direct connection (and not separate vias for capacitor and power pin).
    In my understanding, I have two reasons:
    The direct connection creates a low inductive path. That also applies for your example with a the thin, but straight direct connection. With separate vias, the current from and to the capacitor has a more odd path to follow, which results in losses for higher frequencies and impairs the decoupling effect.
    The second reason is: You want to have the decoupling capacitor as the reference, not the decoupled plane around the IC. There might be still some current peaks crossing that take effect. This applies for forward and return current, so to say Power and Ground. That is why I also try to put the vias behind the decoupling capacitor, not between capacitor and IC.

    • @stevesandler3974
      @stevesandler3974 3 года назад

      this may not be a good idea. Watch for another via. The question is always the sum of the partial inductance terms. If there is a large separation between planes (say 2 layer or 4 layer PCB with symmetrical thicknesses) then the inductance of a surface trace is very high. If the two capacitor vias can be very close together, field cancellation will greatly reduce the inductance. This is in many of my lectures and bootcamps.

    • @goatarse
      @goatarse 3 года назад

      You are doing exactly the right thing. Keeping the noise out of the plane.

  • @francescem94
    @francescem94 3 года назад +5

    It was good to demystify the "vias on the side are better than vias on top of the pad". Very little difference indeed.
    In my opinion, the interesting layout would be having the capacitor on the same side as its load connection, but the input supply coming through vias from the power planes. This is a very common implementation in DC/DC power supplies. Check the typical symmetrical CIN decoupling implementation suggested in most power devices from MPS or TI, it has minimal impedance and the EMI emitted gets canceled out by the opposite direction of the fields.

  • @neutron7
    @neutron7 2 года назад +1

    This is very good, thank you! It would be interesting to see the result when there are vias by the capacitors, and then they are connected with traces to the power pins but not the supply. That seems likely to happen in a board layout.

  • @jonataubert
    @jonataubert 3 года назад +5

    As usual this is pure golden :-)
    I would be extremely interested in seeing the practical measurements!
    Thank you so much!

  • @Funkylogic
    @Funkylogic 3 года назад +4

    Robert,
    Superb post thanks so much for this.
    You push everybody up to a better level.
    I suspect the good result is the input and output inductance to the cap.

  • @michaelk.1108
    @michaelk.1108 3 года назад +2

    Thank you, Robert! Great video.
    An answer to one of these every day questions developers come across.
    It really helps a lot to get a better feeling what is good or bad when placing decoupling capacitors.

  • @Christe4N
    @Christe4N 3 года назад +3

    Hi Robert, this is amazing stuff! Thank you so much! After reading so many application notes, books and following seminars on the topic, it's your videos that make it all come together in a way that is easy to follow, and you can actually *see* what happens. Even when I do indeed understand that it's a specific simulation and results may be different on a real board. Thank you for making the theory practical so that it's easier to apply in real world board design.
    It would seem that the impedance - mostly inductance it seems - between the power connections and the capacitor has the most influence of how much total impedance there is at 100MHz. I see the impedance curves increasing with frequency which also seems to indicate we're looking at inductances having the most influence at those frequencies. All this time I have been thinking about how to connect *capacitors*, and now it begins to show that you may instead have to think about how to minimise *inductances* in the connections.
    I was as surprised as you were at how good the one with the long thin traces and no vias was. It made me wonder about how much inductance a via really has compared to a long thin trace like that. There must be a crossover point somewhere where it's better to use vias or multiple vias than a trace. In any case, I am making a mental note to make sure my power connections are done with *wide* traces wherever I do need to use traces.
    What I really wondered about is this. You placed the single capacitor right in the middle between the source and load pins. What if you placed it right next to the load pins, similar as you would do with an IC's power pins? Would you be willing to consider trying that?
    A second question is how stackup comes into play here. I would assume there is a difference depending on how close the power and ground planes are in the stackup?

    • @RobertFeranec
      @RobertFeranec  3 года назад +2

      Thank you Christe4N. PS: Exactly the same for me - I also changed the way how I look at connecting decoupling capacitors. We may be doing follow up video with some other examples.

  • @erdling2454
    @erdling2454 3 года назад

    Hi Robert,
    I really appreciate your investigation on that topic. It made me think a lot and the following question arised: How would simulation change, if you would only connect the capacitor's power and/or ground pad directly to the IC's pads and not to the source pads. I think this case would represent a very typical design approach.
    In practice, many of the "good "solutions presented in your video can't be implemented, since board area is limited. If you like to spend more time on that topic, it would be interesting to take a look on more simple/practical designs. What I mean by "simple/practical" design is:
    - Place one or two capacitors of different sizes (e.g. 1u + 0.1u) really close to the IC's power pad (capacitor and IC on same board side)
    - Connect the power pad of the capacitor directly to the IC's power pad with a wide trace
    - Connect the power and ground pad of the capacitor to power and ground plane by via, respectively
    Then you could go ahead and simulate following effects on PDN impedance:
    - Number of vias connecting capacitor(s) to planes
    - Position of vias relative to power/gnd pad (above, side, both)
    - Via diameter / via pad size
    - Capacitor orientation relative to IC edge
    - Capacitor's power pad connected directly to IC vs.capacitor's power and ground pad connected directly to IC
    I think this investigation is very helpful for many board designs and maybe it would be worth a short video.

  • @gregfeneis609
    @gregfeneis609 3 года назад +1

    Excellent work, Robert! Years ago, some technical articles I read, either from Microchip or Cypress Semiconductor heavily stressed the effectiveness of placing decoupling caps near the power pins and on the same layer as the power pins of microcontrollers. EG in the case of a quad flat package. You can feed the pins their power through vias, but you want the decoupling caps between the vias and the pins. As you say, you can't always have things arranged this nice, but it's something to target when you can. I like your confirmation of surrounding power feed pins with vias improving performance. I had often suspected this would be the case. Thanks again.

  • @_ATHONOR
    @_ATHONOR 3 года назад

    Great Video - an EMC seminar once told me to run power trace across the capacitor, directly to your pin of the IC you are decoupling (Same side). So this adds up with what you have said here. Would be great to see this boards in action.

  • @ChrisFredriksson
    @ChrisFredriksson 3 года назад +4

    Awesome yet again! I would love to see a video where you make the board and test it out in real life. Thanks for sharing these results!

  • @MaxQ10001
    @MaxQ10001 Год назад

    Same layer connection should win every time. Extremely small inductance in series with the capacitor compared with vias in series with the capacitor. Luckily the simulations confirmed what I guessed in that regard. Very nice job making this video 😊👍

  • @Jerzy-wedrowiec
    @Jerzy-wedrowiec Год назад

    Hi Robert.
    It would be interesting to compare with the installation of one low-ESL capacitor. It should be significantly better than a single conventional one at high frequencies. By shortening the track lengths and increasing the number of holes, we reduce the external inductance and hit the internal inductance limit. We can further reduce the inductance only by paralleling conventional capacitors. According to the characteristics of the capacitors, we should get the same characteristics for one low-ESL capacitor and four normal capacitors. All connected with minimum external inductance.
    Congratulations again on the youtube button:)

    • @Jerzy-wedrowiec
      @Jerzy-wedrowiec Год назад

      It would also be more interesting to compare standard situations with a single capacitor and using two polygons (power and ground as in the first examples) versus a ground polygon and powering the track (in the same layer as the power polygon), via a capacitor.

  • @Cynthia_Cantrell
    @Cynthia_Cantrell 16 дней назад

    When it comes to decoupling, vias are inductors, so if you can, eliminate them - this is why having the cap and power plane on the same layer is so helpful. When you can't eliminate them, placing a few vias in parallel helps - up to a point - the nth via only provides 1/n improvement.
    Parallel power and ground planes do add a little extra capacitance, and you can calculate how much using the area, dielectric thickness, dielectric constant, and the capacitor equation. What you will quickly figure out is that the little ceramic caps provide MUCH more capacitance than the power and ground planes, and they have a better Q.
    A common problem is that the parallel power and ground planes are a much better transmission line than they are a capacitor. This means that when a slug of current gets pulled out of the planes at one spot, that voltage dip travels across the whole rest of the power/ground plane at roughly 185ps/in. So you want to make sure the chips take that current out of the decoupling cap, and NOT the power/ground plane. So make sure the power via is NOT between the chip and the cap! Otherwise, much of that current will come out of the power plane rather than the cap. A properly sized ferrite bead between the cap and the power plane can help insure that current comes out of the cap first, and what gets pulled from the plane comes out slower.
    Another thing to keep in mind with the fast edge rates on modern chips, you have to consider that you don't see the whole capacitance of the entire power / ground plane pair, but only what is within the "lumped element" radius of power pin, due to the speed of currents in the PCB. This works out to roughly 0.9 inch for every nanosecond of edge time. That is, a 1ns rise time will only see a circle of about 0.9in radius of the power / ground plane pair of effective capacitance - after that it's a transmisson line.
    For large chips like FPGAs, you'll want to keep in mind i = C * dv/dt. Each I/0 pin will have to drive some capacitance C at the device's rise or fall time, dv/dt. This will allow you to calculate how much current each I/O pin will source or sink when it switches state. It has to pull this current out of its associated power pin. If you have a 32-bit wide bus switching pins at the same time, then you have up to 32 times that current switching all at once. You'll be surprised at how large that current can be. Fortunately, the same equation can reconfigured to determine the size of the capacitor you need to limit dv/dt to a safe level.

  • @petersage5157
    @petersage5157 2 года назад

    Very illuminating video!
    25:20 I keep going back to the hydraulic analogy, because it works.Which will give you more immediate access to your local water reservoir: a long narrow tube or a short wide pipe? Of course you're going to have less impedance if the power traces are on the same layer as the capacitor; there's always going to be some additional impedance through a via, like resistance through a straw. In fact, if you plan your stackup right, you can even exploit the impedance of a via from a power plane as part of an RC decoupling filter. It's not rocket surgery, it's PCB materials engineering.

  • @kalhana_photography
    @kalhana_photography 3 года назад +1

    I always go for via in pad (with filled and capped vias) for anything that is high speed to minimise the impedance. This saves board space as well.

  • @edgaraskorsakas5703
    @edgaraskorsakas5703 2 года назад

    I had experienced your finding about cap on the same layer the hard way - EMC testing. It is all about loop area and inductance. After putting power inductors and power caps on the same side of the board, design passed EMC. With caps on the bottom we as engineers get sloppy, we forget that energy is stored in the dialectic between planes and cap plates. So if we changing plane (which we do, image current flow direction), we increase impedance a lot. I use that for filtering when I need to. If we keep decoupling cap on the same layer, we get current flow from the cap (directly between +V and GND pins of IC) on top layer, then this current is supplemented by current flow from inductive power pins. If we do not use direct connection to cap, then current flow from power plane to IC pin (through inductive vias), so voltage drop and ground bounce occur and only then additional charge comes from the cap (through inductive vias).

  • @LesRoutesdelElectron
    @LesRoutesdelElectron 2 года назад

    Thank you, Robert, for this very very interesting video.

  • @va-josefranciscomontoya866
    @va-josefranciscomontoya866 2 года назад

    Hi Robert! Your video is highly informative, get to see which layout has the lowest impedance. A bit of warning for vias planting near the pads, as this would leak the solder into them, thus weakening the solder joint on the cap leads. With a weak solder joint, weak connection, bad impedance. Thank you and keep sharing!

  • @mahoneytechnologies657
    @mahoneytechnologies657 2 года назад

    Yes Build Board and Test, In the words of the Late Jim Williams, the final CAD is Copper Clad CAD!

  • @22icyo
    @22icyo 3 года назад +1

    Yes please! Much interesting and I am much curious about the actual impact of the parasitic cap-to-target (basicly direct connection vs via connection) in the real world.
    As always, you have a very good approach to those kind of complex and long debated topics. Keep it up!

  • @oliverthane2868
    @oliverthane2868 3 года назад +1

    Yes please build these 👍 ... I'm also interested to test having the decoupling Cap before the load vs after the load 🙏

  • @yomamsie4438
    @yomamsie4438 3 года назад +4

    I cant wait for the altium pdn tool to include ac analysis

  • @neeeraaajsharma
    @neeeraaajsharma 3 года назад +3

    Great Video again !!!
    Thanks you for comparison in details ... yes I agree if we test the results with actual boards

  • @PETATNISSEN
    @PETATNISSEN 3 года назад +2

    This is stuff for the nerds... and I love it :) Please make a board for testing. Would be really interesting to see real life measurements.

  • @mohammadhushki96
    @mohammadhushki96 Год назад

    Thanks Robert .. very interesting as always

  • @vysmirnov
    @vysmirnov 3 года назад +1

    You can also try X2Y caps, Three-terminal caps, reversed caps (0204, 0306 or 0508).

  • @EDGARDOUX1701
    @EDGARDOUX1701 3 года назад

    Excellent topic Robert, I would like to see the board builded and see it work in the real world. Thank you!

  • @DS-vu5yo
    @DS-vu5yo 2 года назад

    Very cool video.
    Your last simulations are correct for the behavior of the capacitor impedance. But the split plain on the top side of the board is still a dipole. If you make it in physical boards, probe it with a near field probe to see the difference between full ground plain and split ground and power plains. I’m guessing you will measure impedance through the cap is amazing- but you still radiate with the modes of the plains.
    I definitely learn something from these videos. Keep up the amazing work! Thank you.

  • @sparqqling
    @sparqqling 3 года назад

    Great video again, you're on a roll with EMC and SI!

  • @VilinxCoding
    @VilinxCoding 3 года назад

    You are the best Robert❤

  • @iuri.castro
    @iuri.castro 3 года назад

    Excellent video, Robert! Thank you for taking the time to do all those simulations and organizing it!

  • @pppjunk
    @pppjunk 3 года назад +1

    That was interesting! If I understood correctly, you set the input on the left and the output on the right, so this uses capacitors as filters, not decoupling... If you set the input and output port on the same side of the pcb, it is more like the way a chip sees the impedance of the PDN at its power pin, I think you'd get different results. This would be interesting to simulate.

  • @gudimetlakowshik3617
    @gudimetlakowshik3617 3 года назад

    Awesome one....I usually have fights and arguments with my peers on the same topic. I loved the way how simply you have explained how to analyze PDN impedance curves at 5:42....Thanks robert...looking for more high speed pcb design videos...!!

    • @RobertFeranec
      @RobertFeranec  3 года назад

      Thank you very much Gudimetla

    • @gudimetlakowshik3617
      @gudimetlakowshik3617 3 года назад

      @@RobertFeranec Hi robert, here's an video idea. Recently I started doing some RF boards for wearable devices. The entire design was alright but things started taking bad turns when coming to the RF section. The very big problem I had is to do impedance matching. I also heard this is a very big problem with lot of my hobbyist friends and makers out there as this process would need equipment like VNA's. So can you please shed some light on this topic by making a video on how to use VNA to match the impedances?( by taking a simple 50ohms boards would be enough.)
      Hope you would consider the request. Would love to see a video about this on your channel.

  • @michaeljones5205
    @michaeljones5205 3 года назад

    Thanks for the comprehensive overview. Yes, please fabricate. I'm always skeptical of simulations - we'll see if it's warranted. Very valuable information as always!

  • @jlysiak
    @jlysiak 3 года назад +1

    I love your scientific approach to electronics. Awesome content! Definitely, I think it's worth doing checks of the real boards. Simulations, are just simulations :) Waiting for the next video!

  • @sebastianauerwoger2892
    @sebastianauerwoger2892 3 года назад +1

    Hi Robert,
    great video. Keep up the good work. I would also appreciate to see you actually build up this board and verify your simulations. That might shake up some "common PCB rules".
    BTW: I always recommend your AD videos to people who are new the software. Way more efficient, than learning it by the AD manual. So, thanks for that too.

  • @gharbisalem1254
    @gharbisalem1254 3 года назад +1

    Great content as usual,this Channel is the bible of PCB Design 🙂.

  • @djadostyle
    @djadostyle 3 года назад

    Thanks again @Robert,
    It would be interesting to see the result for 1 capacitor close to the sink pin. As we usually do in our design. Comparison between narrow and wide traces...
    Good idea for real board testing and comparison to simulation.
    You rock!

  • @WR3slo
    @WR3slo 3 года назад +1

    That is why I commented in previous video that it is better to have copper under component and not be worried about making a short circuit to the component :-) Wide tracks on the chip side are very important!
    For smaller DC/DC converters I have around 2mm wide tracks. At 0603 capacitors one via is under the component and another is behind it. After 0603 come 1206/1210 capacitors which have multiple vias under it for both connections. Vias have 0,3mm hole with 0,5mm copper ring. If space is not a problem I have even wider track for Vcc on L1, because it forms very good capacitor with GND on the L2. Much better than capacitor between L2 and L3 in 4L board, because of less vias and smaller distance between planes.

  • @manglz
    @manglz 3 года назад

    very useful video, always wondered how the via placement on decoupling capacitors could affect its effectiveness. not very surprised for the better result on the direct connection (no vias) as I see vias as 90degree turns on a track. i hope you build these boards for real and test them, i think more surprises would come. thanks for sharing!

  • @famillePuces
    @famillePuces 3 года назад +1

    Great video! Your channel is a treasure chest for every EE! Almost guess them all right and funny you posted that video I was wondering about that topic!

  • @hansibull
    @hansibull 3 года назад

    Thank you for creating this video! This is a super useful reference for everyone that's designing PCB, especially since trace width component size and placement is difficult to understand what effects it might have on a circuit. It would be even more interesting if you built this board and did some actual measurements on it! I will definitely watch this video again the next time I'm creating a PCB, just to freshen up the memory!

  • @barnabygarrood9862
    @barnabygarrood9862 3 года назад

    Definitely agree it would be interesting to compare physical measurements to simulation. Really interesting video. Thank you!

  • @_santi_calvo
    @_santi_calvo 3 года назад

    Hi Robert, great video! Really interesting. It will be amazing if you measure this!
    It make sense that not using vias yield to lower impedance, because they introduce a inductance that will increase the impedance with a increase in frequency. That is why is better to use multiple vias in parallel, because you reduce the inductance (series) between the capacitor and the plane.
    Greetings from Argentina!

  • @aavilap
    @aavilap 2 года назад

    Fantastic video, very informative!

  • @jfposada007
    @jfposada007 Год назад

    Thank you. Great video. Yes, please build the PCB. I would love to see the actual vs. simulated results comparison. Great work, Robert. I first found you back in 2012, when I was working with Altium.

  • @efox29
    @efox29 3 года назад +10

    Around 15:00 you mentioned that you had heard that decoupling cap position may not matter if you have power plane and that your sim shows that it may not be true. I would say that your power planes are really far apart and therefore ineffective. Looks like your planes are +40mils apart. If you can, run the sim again, but this time, for the stackup, keep the power planes < 8 mils. Does placement of capacitors matter then ? From literature, its that the power plane provide most of the decoupling (when < 8mils) and physical decouple caps can be much looser.

    • @RobertFeranec
      @RobertFeranec  3 года назад +3

      I could try this. When I was talking to Steve, he also pointed this out.

  • @MattHollands
    @MattHollands 3 года назад

    You should also make a poster showing all the different options from worst to best! Would be a great reference during layout to know how you might move the capacitors to optimise the PDN.

  • @randydireen3566
    @randydireen3566 3 года назад

    Always enjoy your videos after a long day. This is so interesting!

  • @robertpeters9438
    @robertpeters9438 6 месяцев назад

    Excellent work!

  • @rogerfurer2273
    @rogerfurer2273 3 года назад

    Thank you Robert. I am surprised by how much difference the addition of traces makes. I would definitely like to see tests of physical boards.

  • @abdulsalam-ww8si
    @abdulsalam-ww8si 3 года назад

    I really like you man, you explain really well, thanks for your efforts to make the videos, and being funny along the way

  • @andrewboktor1636
    @andrewboktor1636 2 года назад

    YES you should build a few boards and measure them.
    You should also add a board with single cap right next to the load pins (basically equivalen to populating the rightmost cap only on your 8 cap designs).

  • @sigfreed11
    @sigfreed11 3 года назад

    @Robert Feranec, I’m not sure what the width of your board is, but the decoupling impedance is directly impacted by the length of the trace (including bias). So in the example of the one cap with direct connect on the top layer from PWR Supply to PWR Pin, if that total distance is less than the distance through the vias (not sure of your board thickness either, I didn’t bother converting from mm to mil), it would make perfect sense as to why you have a lower impedance.
    I would have loved to see an explanation and show the correlation between your decoupling caps and the decoupling formulas. Making the math come alive would be really beneficial for us all

  • @UpcycleElectronics
    @UpcycleElectronics 3 года назад +1

    Hey Robert
    I doubt you are into gaming and the surrounding hardware security and reverse engineering scene, but there has been some interesting stuff going on with the Nintendo Game and Watch. It's a little limited production nostalgia trinket Nintendo brought out last month and is selling while supplies last, for a few months. It's basically an updated copy of the devices that got Nintendo started, and just has 2 original Mario games. I get bored with such things after 5 minutes. The device is interesting because it was hacked the day it came out, by a channel called stacksmashing. That channel does the best tutorials on ghidra and other advanced hardware and software analysis tools. The channel's associated github is an awesome resource as well. Anyways, the Game and Watch looked interesting because it is fairly simple looking hardware and is based on a STM32H7B0. That family of μC's is also well supported in micropython, which I've been learning already with STM32F4's. So I got a G&W to have a look. After receiving it I decided to do my own thing and try to retrace my first board with more than 2 layers. I finished the whole retrace a few days ago. Now I'm working on a kicad schematic and will probably be done with that today or tomorrow. There is quite a bit of interest in this hardware. A bunch of people are working on improved versions currently. The PCB has a lot of little interesting features to talk about. It has a 280MHz max clock for the μC, and a 108MHz SPI flash. There is a nice little BQ24072 lithium controller circuit that feeds a very interesting (but yet unknown) dc to dc converter. I think it may be either Torex Semi or TI, but is a _MHz low voltage type in a DSBGA-12. It has a tiny inductor (that looks like a ceramic cap) on an output pin with the other side of the inductor connected to the DCVoutput at 1.8volts. There's no external diode, only ceramic caps, no other filter, and it powers the μC directly. The only other external connections are two resistors to ground on two separate pins. It is also connected to a SSM6J412TU - a little Toshiba 6 pin PMOS chip rated for gate voltages down to 1.5volts, (a handy little circuit building block on it's own).
    While I was working on the retrace I was given some xray images of the board. This was a first for me. The images were taken with all parts in place which makes them inadequate for a total visual retrace in a few areas but it is still interesting. I think whomever did the xrays was mostly looking for the way (if) the USB-C connector was routed. The connector has 2 levels of pins making it difficult to see what is connected, and I don't know if the person that got the xrays realized how unlikely a buried via is in such a design.
    The most interesting part to me, as far as something you might be interested in talking about, is how the ground plane is setup. It takes a bit of a deep dive into the design to see it, but there are a bunch of internal traces that have parallel ground traces routed beside them inside the board. IMO, it's clear that many design choices had very specific reasons. I noticed the vias had strange looking randomness before I got the xrays, but after, it was even more strange to see how it was routed.
    If you are interested, my work is all posted on github and I'm still working on stuff. If you get GIMP running and open my included xcf file you'll see everything broken up and labeled in a way that is easier to follow. I have a much larger version of that file that I use to make the released versions of the image. It's around 250MB so I can't upload it to github. That has the xrays and stuff in more detail. Although, my stuff isn't pro-sexy-grade work, it's based on camera phone images. If this is something of active interest I can try and get you a copy of the full file and all of the xrays. If not, no problem, I'm just saying it's an option.
    My stuff on github is posted with an MIT license, aka 'no warranty but do whatever you want with it, even commercial, - the I don't care' "license." My github is under "Upcycle-Electronics" and the repo is "game-and-watch-hardware."
    It could be an interesting subject for you as it is trending in this little RUclips hardware niche right now.
    Maybe, as a super simple starter, talk about adding USB 2.0 connections with a USB-C connector and with all common pin types. It won't be an easy thing to add to the G&W as the software guys must figure out how to remap the display or something. One SPI pin overlaps with the usb pins of the μC. Still it's a valuable basic circuit block to build with, especially if you expanded and talk about actual USB-3.x circuits and power.
    This is just a heads up if you're interested.
    Thanks for the upload.
    -Jake

  • @MattHollands
    @MattHollands 3 года назад

    Please build the boards! This is fascinating

  • @Chupacabras222
    @Chupacabras222 3 года назад +20

    Is there a difference if you place 1 capacitor close to output pins, or 1 capacitor close to power pins, or 8 capacitors between? I miss this comparison in your simulations. btw. nice video ;)

    • @krisjk999
      @krisjk999 3 года назад

      Hi Juraj, From a class attended with Prof. Todd Hubing, he mentioned this aspect. You have to consider where is the power and gnd plane to decide where to place the cap. You have to think about the current flow path and consider which plane needs decoupling more (quite often the farthest plane in the stackup is where you place the decoupling cap). A usual stackup is sig, gnd,pwr,sig (im not recommending this stackup, just for eg). In this case, I would place the decoupling cap close to the power pin.

    • @RobertFeranec
      @RobertFeranec  3 года назад +6

      Thank you Juraj. I could try that next time. Making a note.

  • @CarstenGroen
    @CarstenGroen 3 года назад +1

    Very good and interesting video Robert! Great work!

  • @foxabilo
    @foxabilo 3 года назад

    An interesting test would be to simulate just 1 capacitor right next to the output pins on the same layer directly connected.

  • @kmacriver
    @kmacriver 3 года назад

    Robert that was a great video.

  • @methusalah2
    @methusalah2 3 года назад +1

    great video and very relevant to junior designers. please fabricate the boards and measure them - i'd love to learn about the instrumentation station + best practices to measure PDN

  • @Jajaho2
    @Jajaho2 3 года назад

    Please do make the board. This video was very interesting and hands on.

  • @666aron
    @666aron 3 года назад

    Thank you for another great explanation. These videos are invaluable. I don't know if I will ever have the chance to design something > 5MHz, but even in that domain, the conclusions are useful.

  • @giannisasp1208
    @giannisasp1208 3 года назад +1

    Hi Robert! Very interesting video as always!
    If I had to justify why direct connection is better, I would say that it probably has better results because it is the shortest connection (so less inductance) and also there is no via (so shorter connection and no via parasitic inductance). Preferably use the variation with the thicker tracks or polygons.
    As for the Capacitor size, I think it would make a bigger difference if we had to compare smd with through hole packages as mr.Bogatin mentioned in one of your previous videos, but maybe 0402 with 0603 for example would have little difference here at least for relatively low frequencies. Maybe it would be more noticeable for higher frequencies?
    Manufacturing and measuring the real pcbs would be interesting I think.

  • @udhayakumara4033
    @udhayakumara4033 3 года назад

    It's very hard to track your mouse pointer with the white background, but it's ok, I can understand your point. Great video as always

  • @Axotron
    @Axotron 3 года назад

    I love that your are actually simulating many different cases to try to figure out how this works, rather than just reiterating some rules of thumb that are out there.
    I think your simulations are correct in some regards, but some of the conclusions might not cover the full story, so there are some further points that are worth making.
    First:
    You get impressive and surprising results with those long skinny traces to a capacitor between the source and load. This might at first seem surprising and I think the simulation is correct, but possibly not very relevant. I think you are simulating the shunting impedance between power and GND as it would be seen by a VNA doing an S21 measurement. So if you force the signal from port 1 to travel along arbitrarily long and skinny traces, then encounter a capacitor that shunts the power and ground trace with no parasitic inductance in the shunting other than that of the capacitor itself, the signal on the traces at the capacitor will be very effectively shorted by the capacitor (and almost all of the wave reflected back to port 1). The signal that continues towards port 2 (the load) will be very small indeed, again regardless of the length and skinny-ness of the rest of the traces.
    A similar effect happens with the examples of caps connected to the planes, but either right between the source and load or far off to the side. Most of the signal from the source will go along the shortest line between the ports, and if there is a cap there, it will effectively shunt the signal. If you had had much smaller separation between the power and GND planes, you would probably see much less of this effect as the signal would spread out more due to the decreased inductance in the plane-pair
    This kind of decoupling effect is relevant if you have a noisy power supply and a quiet load you want to protect form the noise. So for this case, your result that this layout is a good one is correct.
    However, if the load is also noisy (draws significant current at high frequencies), this layout is no longer a good one. The impedance looking into the load terminal (as you would see if you simulated or measured the shunting impedance as seen by an S22 VNA measurement at the load) is very high due to the large inductance in the skinny traces between the port and the cap.
    Most of the time (but not always) the most important purpose of a PDN is to provide clean power to loads that have noisy current consumption and thus are prone to disturb themselves. This does not seem to be the case you are simulating. To simulate this, you need to inject the signal and measure it at the same port. Or, if you want to do an S21 type of simulation, you could perhaps place port 1 on the top of the board and port 2 on the same through-hole pads, but on the bottom of the board. If you want to measure low impedances like this in the real world using a VNA, an S21 measurement from top of the board to the bottom of the board is a good setup. S11 or S22 measurements do not work very well to measure very low (or very high) impedances as they essentially need to subtract two almost identically large signals from each other and look at the difference, which is therefore extremely sensitive to small errors in the measurements of the outgoing and reflected signals.
    Second:
    A 4-layer board typically has a very large separation between layers 2 and 3. This is certainly true for the JLC standard stackup. This is not ideal if you want to have a low-impedance PDN on your board. So if you are stuck with a 4-layer board of this stackup and need to use layers 2 and 3 for power and GND, your conclusions about e.g. capacitors connected directly to the load is highly relevant, since there is so much inductance (and so little capacitance) in the planes, which makes it impossible to create a decoupled plane with a really low impedance.
    For more advanced boards with more layers (not usually used by hobbyists, but very common in the industry), one typically strives to have a much smaller separation between the power and GND planes. 0.1 mm is rather easy and smaller separations like 0.75 mm or even 0.05 mm is not too advanced for many board shops. This totally changes the situation regarding how important it is to have decoupling caps connected directly to the pins of the load (or right between the source and the load if that is the case you are interested in).
    Howard Johnson has in his black magic book a very neat and simple formula to calculate the inductance of a pair of vias connected to a pair of planes (converted to metric units):
    L=mu / (2*pi) *2h * ln(2s/d)
    Where:
    mu/2pi = 2*10^-7 H/m
    h = thickness of the dielectric
    s = center separation of the vias
    d = via diameter
    So, the inductance is much more sensitive to the thickness of the dielectric than the via separation and via diameter, although there is some reward to be had in optimizing all of these parameters.
    This formula can help estimating how important or unimportant it is to keep the vias a decoupling cap close together. The total inductance of the cap can be approximated as the one given by this formula, plus the inductance of the vias above the planes pairs, plus the inductance of the tracks between the cap and the vias, plus the inductance of the capacitor itself.
    Johnson argues that this formula can also be used to estimate the inductance of a distant decoupling capacitor as seen from a load by plugging in the distance between the load and the capacitor as d in the formula. So inductance increases only logarithmically (very slowly) with increasing distance.
    By the way: In multi-layer boards, there is a new factor to think of: Decoupling capacitors are more effective if they are placed on the side of the board closest to the plane-pair they are connected to, since this reduces the inductance of the vias that connect the capacitor to the planes.

  • @timun4493
    @timun4493 3 года назад

    You seem to be in an especially good mood in this video, very pleasing to watch, thank you. I would certainly be very interested in seeing your simulation results verified by measurement, also would you consider having a look at specialty multi terminal packages like smt feedthru, x2y and lga/bga, this would be useful as most of the material available is from entities trying to sell these things

    • @RobertFeranec
      @RobertFeranec  3 года назад

      Thank you tim. It was an interesting video even for me and I was happy to see the results :)

  • @sarmadahmad2325
    @sarmadahmad2325 Год назад

    Yes please build this board step by step

  • @ismailovali6368
    @ismailovali6368 2 года назад

    Thank you so much Robert, I like you very much :)

  • @happyhippr
    @happyhippr 3 года назад

    thanks for sharing this

  • @siavashtaherparvar1969
    @siavashtaherparvar1969 2 года назад

    Yes, sure it's a great idea to make them all. It will be awesome if you can make and measure the result with real devices. Florian handled it greatly in previous videos.

  • @UNgineering
    @UNgineering 2 года назад

    Re: 23:38 - the two parallel lines create another capacitor - two conductors with a dielectric between them, so it makes sense that the results are better.

  • @Hirnlappen
    @Hirnlappen 3 года назад

    Yes yes yes! Want to see the real world test 😊

  • @robertdixon8238
    @robertdixon8238 3 года назад

    Another great video in the decoupling series. As I understand it, local decoupling (10n - 100n) needs to be at the pins, but bulk decoupling (1uF and above) just needs to be connected on the planes. It would be good to add these to your test PCB, also. It is not clear from your excellent plots how the frequency of the ESR notch is affected by the different connection types. Does this matter?
    Another test would be what effect does putting the decoupling capacitor AFTER the output pins have, compared to having it BEFORE the output pins? Your test PCB from part 1 has the local decoupling after the CPU power pins, but the common advice is to make the PDN track go to the capacitor and then to the device power pins. Does this really matter?
    Keep up the great work. Look forward to further involvement from Steve, Eric, and Rick!
    Please build and test the PCB. Theory is important, but real measurements confirm the simulator's predictions.
    P.S. I think there is more to learn about the ferrite beads from part 3.

  • @dregapiro
    @dregapiro 3 года назад +1

    I think thin traces with no vias achieved such a good result because You minimized prasitic inductance from vias. but when You do place one via, its better to have multiple in "parallel" because connecting inductors in parallel effectively decreases their inductance, and vias are basically small inductors.

  • @Helena-gp8bn
    @Helena-gp8bn 3 года назад

    Thanks for the interesting work! I'm waiting for measurements on the pcb )

  • @krysieks
    @krysieks 3 года назад

    Surprising configuration is simple to explain. You're simulate impedance between output and input. In this case you have: input, track impedance, capacitor short, track impedance and output. So, capacitor is shorting.
    When cap is connected through vias they forms additional impedance to cap pins.
    This actually proves that method to have ic pin, cap and then via is better than ic pin, via, cap.
    In the worst case there are long "tracks" from input output path to capacitor. Remember high frequency current will not flow thru whole plane.

  • @sepphuber7434
    @sepphuber7434 3 года назад +1

    Thickness of the core in this 4-layer stack-up is HUGE (about 1mm, like in most 4-layer stack-ups). I think that's the reason that capacitor placement appears to be more important than connection style. I would definitely reduce the distance between power and ground plane to something like 0,1mm. That is more of a "real world" value for boards where one really cares about PDN impedance.

    • @stevesandler3974
      @stevesandler3974 3 года назад

      I think this is not necessarily true. Some designs us 0.1mm, many 0.2mm-0.4mm and there are also still a lot of 4 layer PCB's

    • @RobertFeranec
      @RobertFeranec  3 года назад

      We may try different stackup in some of the other simulations.

  • @andreynesterov7462
    @andreynesterov7462 3 года назад +1

    Great video! It would be interesting to know how
    thermal relief affects PDN.
    How big is the difference between a direct connection and
    through thermal relief.

    • @stevesandler3974
      @stevesandler3974 3 года назад

      As I mentioned above it depends on how big the relief is, but in general the relieve is not very significant compared to the via

  • @wojtekgomboc
    @wojtekgomboc 3 года назад

    it would be very interesting to see this test, at least for few situation (worst, best and middle)

  • @jebinsatheeshkumar
    @jebinsatheeshkumar 3 года назад

    Hi Robert,
    Indepth explanation. Awaiting for the real time result, I curious about know simulation tools are how close to reality!.
    Jebin

  • @Niels_Dn
    @Niels_Dn 3 года назад

    Very helpful! Thanks!

  • @BillySugger1965
    @BillySugger1965 Год назад +4

    Absolutely fascinating, thank you for this! I’m definitely going to look for your other videos on this subject.
    And I second the request for physical measurements to back up the simulation. My guess is the results would not be identical, but the ranking of results (which designs perform better than others) would remain the same.
    I would be _very_ interested to see the load changed to a SMT connector, to simulate (or physically test) the real world case of the load being a SMT device, like a QFP or QFN device. There is debate over the best placement of decoupling capacitors in these situations, and to me your result at 23:40 makes absolute sense; there are _no_ vias between load and decoupling capacitor, and to me that would produce the lowest impedance between the two. For this reason I _always_ place SMT decoupling capacitors as close as possible to, and on the same layer as, the load device.
    What I take away from this is that the two biggest factors are (1) capacitor placement as close as possible to the load, and (2) avoiding vias between capacitor and load. Then, if you _must_ via between the two, (3) maximise the number of vias in parallel, (4) maximise the number of capacitors in parallel, and (5) maximise the number of ground and power planes in parallel. Lastly, it is worth maximising trace width and minimising trace length, but after the above steps these make only marginal improvement.

  • @RelayComputer
    @RelayComputer Год назад

    I think that for your multiple capacitor tests they might be best basically because there's at least one capacitor very near the output. I miss a test where ONE single capacitor is placed next to the output. My assumption is that this would be very good regardless of the type of connection. Also I tend to think that the smaller footprint capacitors should perform better at higher frequencies, but of course this should be tested before making a formal statement

  • @p_peja
    @p_peja Год назад

    One realistic scenario is missing. 4 layer board, internal layers are pwr and gnd, capacitor is at TOP same as SMD pins of IC. The power path is: power_layer -> via -> capacitor_SMD_pad -> SMD_pin_of_IC

  • @hjups
    @hjups 3 года назад

    Very cool. I wonder if this means that QFP / QFN parts would have an advantage over BGA devices, since it could be practical to connect the decoupling capacitors to the pins directly without vias. Although, it's likely that the reduction in inductance from the BGAs would have a larger impact.
    If you have time, could you try the following configurations:
    1) A T connection. Where the capacitor is directly connected to the power pin, but only connected to the power plane through vias mid-way through the connecting track (like a T where the base of the T is the via to power / gnd).
    2) An L connection. Similar to the T case, you could look at the case where the via comes after the capacitor in the path (sort of like your direct connection cases, but the trace to the power input is cut and replaced with a via to the power plane instead).
    I was going to suggest also placing a capacitor directly on the power output pins on the bottom layer, however, due to symmetry, you have effectively already tried that.
    It would be very interesting to see if real life holds up to the simulations.

    • @RobertFeranec
      @RobertFeranec  3 года назад

      That is an interesting point. PS: I am putting the examples on my list to try

    • @hjups
      @hjups 3 года назад

      ​@@RobertFeranec To test the QFN/QFP vs BGA, you could probably simulate the leads via adding inductors between the connection trace and the simulation measurement points. Though you would have to find realistic values for the inductors... I did a quick search and found an app note by TI (AN-1205), which models different package leads as a RLC network - perhaps that could be helpful.

  • @josephdzn9868
    @josephdzn9868 2 года назад

    Hi Robert, I think your results do make sense because of your stack up - GND and PWR are >1mm apart. Signal through the same layer traces will have less inductance/impedance than through the vias.
    I would be interested to see the same simulation on closely spaced power planes (