Ground trampolines and Phase Locked Loops

A customer was using the UPduino v2.1 low-cost Lattice iCE40 FPGA board in their prototype to check out some IP in the FPGA. This IP required the use of a Phase Locked Loop (PLL) within the FPGA to generate specific frequencies that the design required.

The customer reported that the FPGA PLL was going out of lock intermittently.

Background

Phase locked loops are useful blocks (and there is one in the Lattice iCE40 UP5K FPGA) used to generate specific clock frequencies that may not necessarily be an integer multiple of a reference clock. The principle of operation is covered very well in this Wikipedia article.

The UPduino 2.1 is a low cost FPGA board thats designed for fast prototyping. The board has a couple of voltage regulators, an FT232H USB to SPI bridge, flash for FPGA code storage and supporting passives. The board is laid out on 2 layers.

Debug

Test Case

I was able to duplicate the failure mode on my setup which consisted of an UPduino connected to the customers test board. By a process of elimination, I was able to get the PLL to fail with an FPGA design consisting of the PLL, an output clock from the PLL, a GPIO input and an LED output from the FPGA. This rather minimal design exhibited the symptoms described by the user in a significantly more complex design.

On to Debug

Now that I had the test case, it was time to delve deeper: why would such a simple design cause the PLL to lose lock and that too by toggling a switch to the FPGA! This strange behavior was also not consistent: pushing the switch would intermittently cause the PLL to go out of lock. There didn't appear to be any pattern to the behavior either.

I was also able to eliminate the customer board as the source of the issue. I checked all DC power supplies on the UPduino and customer board with a multi-meter, things looked good. Searching online gave me a hint on what to pursue next, (isn't information sharing a wonderful thing!) ie. clock quality and board layout.

From my experience, I knew that PLL's were finicky analog creatures and had to be cared for by low jitter input clocks and proper filtering of the power supply.

A simple change I made was to source a clean 12MHz clock from an external crystal instead of using the on-board resonator which has poor phase noise in comparison. This seemed to reduce the probability of PLL unlocking but didnt make the issue go away.

Power and Ground

The dedicated power supply on the PLL and the ground near it looked good with about 10-15mV of digital noise, not too bad. Its important to follow proper probing guidelines when making such measurements!

I probed the DC voltages and noticed a substantial noise of >50mV or so on the supplies. This was significantly reduced by adding 10uF caps on the LDO's. However, this didnt seem to improve the probability of the PLL losing lock.

I then measured the ground plane from one end of the board to the other. I was shocked to see huge spikes on the ground plane! This meant that the various circuits on the board had a different view of what they considered a reference.

The UPduino is a small board, about 2.2cm x 5.1cm. Having the ground plane be different by hundreds of mV across such a small board, that too with such a simple design on the FPGA, not consuming much power seemed to indicate something was very wrong!

I analyzed the board layout in Eagle and noticed that the Ground plane was routed on the bottom side as follows:

The solid filled areas are the ground plane in the above picture. As you can see, the ground plane is split into multiple discrete sections, never a good idea! This gave me a good idea of what to try next. I used copper braid to short across various sections of the ground plane and was able to get the noise down significantly. More importantly, this correlated well with a decreasing probability of the PLL failing to lock. A good indication that I was on the right track.

Unfortunately, all the hacking was not able to restore a reliable PLL lock on this board. Needless to say, the customer was unable to use this board for their design as the board design was to blame.

Next Steps and a New Beginning!

I had inherited the design from the original manufacturer/designer. This experience, as well as the feedback from users about various features missing from the UPduino, got me thinking about coming up with the next generation of the board.

UPduino 3.0!

I kicked off the next generation: the UPduino 3.0, with a goal of not just fixing the layout but adding significant features as documented on this GitHub site.

The ground plane on the UPduino 3.0 is a solid plane with no cuts. This was a hard requirement on the layout. The power plane does have some cuts but shouldn't be too significant as shown in the plots below. A detailed review was done to ensure that power and grounds had sufficiently thick traces and decoupling caps were placed close to the pins being decoupled. A 0.1uF/4.7uF capacitor combination was settled on as a standard decoupling strategy. Going to a 4 layer board made the design implementable: it was clear during routing of this board that the original design with 2 layers was simply not feasible and a bad design choice in the first place. The extra cost of going to 4 layers vs. 2 layers was simply not worth the risk.

UPduino 3.0 ground plane

UPduino 3.0 power plane

The first version of the design is now complete and will be fabricated soon with a high expectation that the PLL will lock!

If you would like to be involved, please feel free to browse Discourse and/or join the Discord channel!

211 comments

  • https://sites.google.com/view/movers-riyadh/
    https://sites.google.com/view/movers-riyadh/movers-mecca
    https://sites.google.com/view/movers-riyadh/home
    https://sites.google.com/view/movers-riyadh/movers-jedaah-elhamdniah
    https://sites.google.com/view/movers-riyadh/movers-yanbu
    https://sites.google.com/view/movers-riyadh/movers-najran
    https://sites.google.com/view/movers-riyadh/movers-Jizan
    https://sites.google.com/view/movers-riyadh/jazan
    https://sites.google.com/view/movers-riyadh/taif
    https://sites.google.com/view/movers-riyadh/moversjeddah
    https://sites.google.com/view/movers-riyadh/movers-abha
    https://sites.google.com/view/movers-riyadh/movers-elahsa
    https://sites.google.com/view/movers-riyadh/movers-elkhobar
    https://sites.google.com/view/movers-riyadh/movers-elkharj
    https://sites.google.com/view/movers-riyadh/movers-elmadina-elmnowara
    https://sites.google.com/view/movers-riyadh/movers-eljubail
    https://sites.google.com/view/movers-riyadh/movers-elqassim
    https://sites.google.com/view/movers-riyadh/movers-hafrelbatin
    https://sites.google.com/view/movers-riyadh/movers-elbaha
    https://sites.google.com/view/movers-riyadh/movers-jeddah

    شركات نقل العفش بجدة
  • http://fullservicelavoro.com/ شركة ريلاكس لنقل العفش والاثاث
    http://fullservicelavoro.com/2019/01/07/transfer-movers-taif-furniture/ شركة نقل عفش بالطائف
    http://fullservicelavoro.com/2019/01/08/transfer-movers-riyadh-furniture/ شركة نقل عفش بالرياض
    http://fullservicelavoro.com/2019/01/08/transfer-movers-jeddah-furniture/ شركة نقل عفش بجدة
    http://fullservicelavoro.com/2019/01/01/transfer-and-movers-furniture-mecca/ شركة نقل عفش بمكة
    http://fullservicelavoro.com/2019/01/07/transfer-movers-madina-furniture/ شركة نقل عفش بالمدينة المنورة
    http://fullservicelavoro.com/2019/01/07/transfer-movers-khamis-mushait-furniture/ شركة نقل عفش بخميس مشيط
    http://fullservicelavoro.com/2019/01/09/transfer-movers-abha-furniture/ شركة نقل اثاث بابها
    http://fullservicelavoro.com/2019/01/07/transfer-movers-najran-furniture/ شركة نقل عفش بنجران
    http://fullservicelavoro.com/2019/01/16/transfer-movers-hail-furniture/ ِشركة نقل عفش بحائل
    http://fullservicelavoro.com/2019/01/16/transfer-movers-qassim-furniture/ شركة نقل عفش بالقصيم
    http://fullservicelavoro.com/2019/02/02/transfer-movers-furniture-in-bahaa/ شركة نقل عفش بالباحة

    شركة ريلاكس لنقل العفش والاثاث
  • شركة كيان لنقل العفش بالرياض والمدينة المنورة وجدة ومكة والطائف والدمام تقديم لكم دليل كامل لشركات نقل العفش بالمملكة العربية السعودية
    http://mycanadafitness.com/ شركة كيان لنقل العفش
    http://mycanadafitness.com/forum.html منتدي نقل العفش
    http://mycanadafitness.com/movingfurnitureriyadh.html شركة نقل اثاث بالرياض
    http://mycanadafitness.com/movingfurniturejaddah.html شركة نقل اثاث بجدة
    http://mycanadafitness.com/movingfurnituremecca.html شركة نقل اثاث بمكة
    http://mycanadafitness.com/movingfurnituretaif.html شركة نقل اثاث بالطائف
    http://mycanadafitness.com/movingfurnituremadina.html شركة نقل اثاث بالمدينة المنورة
    http://mycanadafitness.com/movingfurnituredammam.html شركة نقل اثاث بالدمام
    http://mycanadafitness.com/movingfurniturekhobar.html شركة نقل اثاث بالخبر
    http://mycanadafitness.com/movingfurnituredhahran.html شركة نقل اثاث بالظهران
    http://mycanadafitness.com/movingfurniturejubail.html شركة نقل اثاث بالجبيل
    http://mycanadafitness.com/movingfurnitureqatif.html شركة نقل اثاث بالقطيف
    http://mycanadafitness.com/movingfurnitureahsa.html شركة نقل اثاث بالاحساء
    http://mycanadafitness.com/movingfurniturekharj.html شركة نقل اثاث بالخرج
    http://mycanadafitness.com/movingfurniturekhamismushit.html شركة نقل اثاث بخميس مشيط
    http://mycanadafitness.com/movingfurnitureabha.html شركة نقل اثاث بابها
    http://mycanadafitness.com/movingfurniturenajran.html شركة نقل اثاث بنجران
    http://mycanadafitness.com/movingfurniturejazan.html شركة نقل اثاث بجازان
    http://mycanadafitness.com/movingfurnitureasir.html شركة نقل اثاث بعسير
    http://mycanadafitness.com/movingfurniturehail.html شركة نقل اثاث بحائل

    شركة كيان لنقل العفش
  • http://www.domyate.com/2019/08/27/transfer-furniture-north-riyadh/ نقل عفش شمال الرياض
    http://www.domyate.com/2019/09/05/movers-company-khamis-mushait/ شركات نقل عفش بخميس مشيط
    http://www.domyate.com/2019/09/05/10-company-transfer-furniture-khamis-mushait/ شركة نقل العفش بخميس مشيط
    http://www.domyate.com/2019/09/05/all-transfer-furniture-khamis-mushait/ شركات نقل اثاث بخميس مشيط
    http://www.domyate.com/2019/09/05/best-company-transfer-furniture-khamis-mushit/ افضل شركات نقل اثاث بخميس مشيط
    http://www.domyate.com/2019/09/05/company-transfer-furniture-khamis-mushit/ شركات نقل اثاث بخميس مشيط
    http://www.domyate.com/category/%D9%86%D9%82%D9%84-%D8%B9%D9%81%D8%B4-%D8%AC%D8%AF%D8%A9/ نقل عفش جدة
    http://www.domyate.com/2019/09/25/movers-furniture-from-jeddah-to-jordan/ نقل عفش من جدة الي الاردن
    http://www.domyate.com/2019/10/03/price-cleaning-tanks-in-jeddah/ اسعار شركات تنظيف خزانات بجدة
    http://www.domyate.com/2019/09/25/movers-furniture-from-jeddah-to-egypt/ نقل عفش من جدة الي مصر
    http://www.domyate.com/2019/09/24/movers-furniture-from-jeddah-to-lebanon/ نقل عفش من جدة الي لبنان
    http://www.domyate.com/2019/09/22/%d8%a3%d9%86%d8%ac%d8%ad-%d8%b4%d8%b1%d9%83%d8%a7%d8%aa-%d9%86%d9%82%d9%84-%d8%a7%d8%ab%d8%a7%d8%ab-%d8%a8%d8%ac%d8%af%d8%a9/ شركات نقل اثاث بجدة
    http://www.domyate.com/2019/09/22/best-company-movers-jeddah/ افضل شركات نقل اثاث جدة
    http://www.domyate.com/2019/09/22/company-transfer-furniture-yanbu/ شركات نقل العفش بينبع
    http://www.domyate.com/2019/09/21/taif-transfer-furniture-company/ شركة نقل عفش في الطائف
    http://www.domyate.com/2019/09/21/%d8%b4%d8%b1%d9%83%d8%a7%d8%aa-%d9%86%d9%82%d9%84-%d8%a7%d9%84%d8%b9%d9%81%d8%b4/ شركات نقل العفش
    http://www.domyate.com/2019/09/21/%d8%b7%d8%b1%d9%82-%d9%86%d9%82%d9%84-%d8%a7%d9%84%d8%b9%d9%81%d8%b4/ طرق نقل العفش
    http://www.domyate.com/2019/09/20/%d8%ae%d8%b7%d9%88%d8%a7%d8%aa-%d9%86%d9%82%d9%84-%d8%a7%d9%84%d8%b9%d9%81%d8%b4-%d9%88%d8%a7%d9%84%d8%a7%d8%ab%d8%a7%d8%ab/ خطوات نقل العفش والاثاث
    http://www.domyate.com/2019/09/20/best-10-company-transfer-furniture/ افضل 10 شركات نقل عفش
    http://www.domyate.com/2019/09/20/%d9%83%d9%8a%d9%81-%d9%8a%d8%aa%d9%85-%d8%a7%d8%ae%d8%aa%d9%8a%d8%a7%d8%b1-%d8%b4%d8%b1%d9%83%d8%a7%d8%aa-%d9%86%d9%82%d9%84-%d8%a7%d9%84%d8%b9%d9%81%d8%b4-%d9%88%d8%a7%d9%84%d8%a7%d8%ab%d8%a7%d8%ab/ اختيار شركات نقل العفش والاثاث
    http://www.domyate.com/2019/09/20/cleaning-company-house-taif/ شركة تنظيف منازل بالطائف
    http://www.domyate.com/2019/09/20/company-cleaning-home-in-taif/ شركة تنظيف شقق بالطائف
    http://www.domyate.com/2019/09/20/taif-cleaning-company-villas/ شركة تنظيف فلل بالطائف

    نقل عفش شمال الرياض
  • http://jumperads.com/transfer-furniture-hafr-albatin.html نقل عفش بحفر الباطن
    http://jumperads.com/price-transfer-furniture-mecca.html اسعار شركات نقل العفش بمكة
    http://jumperads.com/transfer-furniture-mecca-2017.html نقل اثاث بمكة 2017
    http://jumperads.com/how-transfer-furniture-mecca.html كيفية نقل العفش بمكة
    http://jumperads.com/all-company-transfer-furniture-mecca.html اهم شركات نقل العفش بمكة
    http://jumperads.com/best-company-transfer-furniture-mecca.html افضل شركة نقل عفش بمكة
    http://jumperads.com/price-transfer-furniture-jeddah.html اسعار شركات نقل العفش بجدة
    http://jumperads.com/transfer-furniture-jeddah-2017.html نقل اثاث بجدة 2017
    http://jumperads.com/how-transfer-furniture-jeddah.html كيفية نقل العفش بجدة
    http://jumperads.com/all-company-transfer-furniture-jeddah.html اهم شركات نقل العفش بجدة
    http://jumperads.com/best-company-transfer-furniture-jeddah.html افضل شركة نقل عفش بجدة
    http://jumperads.com/price-transfer-furniture-yanbu.html اسعار شركات نقل العفش بينبع
    http://jumperads.com/transfer-furniture-yanbu-2017.html نقل اثاث بينبع 2017
    http://jumperads.com/how-transfer-furniture-yanbu.html كيفية نقل العفش بينبع
    http://jumperads.com/all-company-transfer-furniture-yanbu.html اهم شركات نقل العفش بينبع
    http://jumperads.com/best-company-transfer-furniture-yanbu.html افضل شركة نقل عفش بينبع
    http://jumperads.com/price-transfer-furniture-medina.html اسعار شركات نقل العفش بالمدينة المنورة
    http://jumperads.com/transfer-furniture-medina-2017.html نقل اثاث بالمدينة المنورة 2017
    http://jumperads.com/how-transfer-furniture-medina.html كيفية نقل العفش بالمدينة المنورة
    http://jumperads.com/all-company-transfer-furniture-medina.html اهم شركات نقل العفش بالمدينة المنورة
    http://jumperads.com/best-company-transfer-furniture-medina.html افضل شركة نقل عفش بالمدينة المنورة
    http://jumperads.com/price-transfer-furniture-riyadh.html اسعار شركات نقل العفش بالرياض
    http://jumperads.com/transfer-furniture-riyadh-2017.html نقل اثاث بالرياض 2017
    http://jumperads.com/how-transfer-furniture-riyadh.html كيفية نقل العفش بالرياض
    http://jumperads.com/all-company-transfer-furniture-riyadh.html اهم شركات نقل العفش بالرياض
    http://jumperads.com/best-company-transfer-furniture-riyadh.html افضل شركة نقل عفش بالرياض

    شركات نقل العفش بجدة

Leave a comment

x