# Power measurement using PMbus on ZCU-102

**URL:** <https://discuss.pynq.io/t/power-measurement-using-pmbus-on-zcu-102/1722>\
**Category:** Support\
**Created:** [September 8, 2020, 4:51am UTC](https://discuss.pynq.io/t/power-measurement-using-pmbus-on-zcu-102/1722 "2020-09-08T04:51:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanjaya](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@sanjaya](https://discuss.pynq.io/u/sanjaya)\
**Post date:** [September 8, 2020, 4:51am UTC](https://discuss.pynq.io/t/power-measurement-using-pmbus-on-zcu-102/1722/1 "2020-09-08T04:51:28Z")

</div>

I have built a pynq image for ZCU-102 and am able to successfully run it. I want to measure the PS power consumed and PL power consumed seperately while runnning a program (It has an overlay designed for it) . The following is a screenshot of “pmbus.get\_rails()” . I am not sure which rail should I moniter for my purpose . Where will I find this information ? Is this all the power rail that are present on ZCU-102 ? Also I would like to know if the power consumption measured this way will include the power consumed while loading the bitstream on fpga (reconfiguring the FPGA).

 ![Screenshot (2)](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/7/730bafc96802bcaf35a134852f281d15f8113db9.png)

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [September 10, 2020, 3:23pm UTC](https://discuss.pynq.io/t/power-measurement-using-pmbus-on-zcu-102/1722/2 "2020-09-10T15:23:43Z")

</div>

You probably need to check the ZCU102 schematic?

---

<div class="post-metadata">

**Author:** ![sanjaya](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@sanjaya](https://discuss.pynq.io/u/sanjaya)\
**Post date:** [September 11, 2020, 3:16am UTC](https://discuss.pynq.io/t/power-measurement-using-pmbus-on-zcu-102/1722/3 "2020-09-11T03:16:58Z")

</div>

Hi ,  
I tried going through the schematic of the board. But where exactly should I look for ? I searched for the rail names as indicated by pynq by could not find any rails with these names.

---

<div class="post-metadata">

**Author:** ![sanjaya](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@sanjaya](https://discuss.pynq.io/u/sanjaya)\
**Post date:** [September 11, 2020, 3:34am UTC](https://discuss.pynq.io/t/power-measurement-using-pmbus-on-zcu-102/1722/4 "2020-09-11T03:34:38Z")

</div>

Also, I am not able to find all voltage rails through pynq, I guess. The user guide shows many rails being present, but they are not listed here …

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [September 14, 2020, 7:18pm UTC](https://discuss.pynq.io/t/power-measurement-using-pmbus-on-zcu-102/1722/5 "2020-09-14T19:18:04Z")

</div>

The rail names do not look correct to me; an example here:

> <https://github.com/Xilinx/PYNQ/blob/master/boards/ZCU104/notebooks/common/zcu104_pmbus.ipynb>

When you built the image, did you include a package like this:

> **[PYNQ/boards/ZCU104/packages/sensorconf at master · Xilinx/PYNQ](https://github.com/Xilinx/PYNQ/tree/master/boards/ZCU104/packages/sensorconf)**
>
> master/boards/ZCU104/packages/sensorconf

---

<div class="post-metadata">

**Author:** ![sanjaya](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@sanjaya](https://discuss.pynq.io/u/sanjaya)\
**Post date:** [September 17, 2020, 7:21am UTC](https://discuss.pynq.io/t/power-measurement-using-pmbus-on-zcu-102/1722/6 "2020-09-17T07:21:47Z")

</div>

Hi Rock,  
Thanks for the link.I do not remember including any such package while building the image. But how do I do it ?

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [September 17, 2020, 8:50pm UTC](https://discuss.pynq.io/t/power-measurement-using-pmbus-on-zcu-102/1722/7 "2020-09-17T20:50:42Z")

</div>

You need to create a package like that in ZCU104 `packages` folder, and add that into your ZCU104.spec file. Your new configuration file will be related to ZCU102 schematic so you need to check that.
