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

1,242 bytes added, 20:44, 12 June 2016
Running AES-128 Example
See the FPGA Projects section for important details of the FPGA design framework.
 
=== 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>
 
This will reduce noise in the power measurement.
 
Once the USB clock is off, you must use a special trigger IO pin (since the address/data interface is disabled). This trigger pin can be toggled to trigger your cryptographic core, rather than relying on a register in your FPGA design.
 
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()
#wait for scope to complete here
cw.usb_clk_setenabled(True)
</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.
=== Setting PLL Frequency ===
Approved_users, bureaucrat, administrator
1,956
edits

Navigation menu