newaetech / chipwhisperer

ChipWhisperer - the complete open-source toolchain for side-channel power analysis and glitching attacks
http://chipwhisperer.com
Other
1.12k stars 285 forks source link

Document how to generate the partial reconfiguration files #69

Closed x8-999-github closed 1 year ago

x8-999-github commented 7 years ago

I started documenting how to build the FPGA source code for the CW-lite version but currently I am lacking information on how to generate the partial reconfiguration files (.p files).

It would be very nice to give feedback on the current build process and document how to create the configuration files.

https://github.com/x8-999-github/cw-projects-experiments/blob/master/docs/firmware_build.md

colinoflynn commented 7 years ago

Gotcha, am mobile right now, will check when back. It was documented somewgere but might have been on old wiki

On August 30, 2017 12:13:05 PM ikseight notifications@github.com wrote:

I started documenting how to build the FPGA source code for the CW-lite version but currently I am lacking information on how to generate the partial reconfiguration files (.p files).

It would be very nice to give feedback on the current build process and document how to create the configuration files.

https://github.com/x8-999-github/cw-projects-experiments/blob/master/docs/firmware_build.md

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/newaetech/chipwhisperer/issues/69

colinoflynn commented 7 years ago

I can't seem to find the PR build process documentation, but to quickly answer this:

Let me know if any of those steps fail!

x8-999-github commented 7 years ago

Following the given instructions resulted in cwlite-glitchoffset.p and cwlite-glitchwidth.p that have the same sha1sum as the original files. It indeed took quite a while to recompile the code.

colinoflynn commented 7 years ago

Excellent, glad it worked! The long time is due to the fact Spartan 6 has no partial reconfiguration support (officially), so we couldn't get any help from Xilinx w.r.t. how to smartly generate the files. At some point if someone can find the mapping between the DCM parameter --> bitstream bits this could be done in a few seconds, but for now we use the entire FPGA Editor flow which edits the high-level file, then regenerates the bitstream.

alex-dewar commented 1 year ago

Now documented at https://rtfm.newae.com/Capture/ChipWhisperer-Lite/#generating-partial-reconfig-files