As of August 2020 the site you are on (wiki.newae.com) is deprecated, and content is now at rtfm.newae.com.

Changes

Jump to: navigation, search

CW305 Artix FPGA Target

4 bytes removed, 20:58, 12 June 2016
Turning off USB Clock & Triggering the FPGA
You can disable the USB interface clock (i.e., the clock used by Address/Data lines). Generally this is recommended during the power measurement, as a separate clock is provided for clocking the cryptographic module. The clock can be turned off with:
<syntaxhighlight lang="python">cw.usb_clk_setenabled(False)
</syntaxhighlight>
A complete example of a power measurement might look like this:
<syntaxhighlight lang="python">#arm scope here
cw.usb_clk_setenabled(False)
cw.usb_trigger_toggle()
</syntaxhighlight>
You may wish to add a small delay (such as ''{time.sleep(0.05)''}) after turning off the clock.
You may also need to add a delay after triggering the pin - you don't want to turn the clock back on right away, but depending on your scope module it may report the trigger event has occurred before the capture is complete.
Approved_users, bureaucrat, administrator
1,956
edits

Navigation menu