Config PLL1 on pin N13 on CW305 using python


I’m new to CW, I need to configure PLL1 on pin N13 on CW305 using python script.

Thank you

Our CW305 AES demo shows an example of how to do this:

target.pll.pll_outenable_set(False, 0)
target.pll.pll_outenable_set(True, 1)
target.pll.pll_outenable_set(False, 2)

# run at 10 MHz:
target.pll.pll_outfreq_set(10E6, 1)

  • pll_enable_set(True) turns on the CW305 PLL.
  • pll_outenable_set(<False|True>, <PLL number>) controls whether each of the 3 PLL outputs is enabled or not
  • pll_outfreq_set(<frequency in Hz>, <PLL number>) sets the frequency for the specified PLL

So the example above turns on PLL1 at 10 MHz.

Hope this helps,


I got one error:
NameError: name ‘target’ is not defined

Am I missing a declaration?

Thank you.

Ok I got it:

import chipwhisperer as cw
target =, cw.targets.CW305, fpga_id=‘35t’, force=False)

Thanks anyway.

Yep, that’s all in the example demo that I linked to; my previous post showed only the relevant PLL code, not the entire setup.

I know, thank you anyway