Learning tool to visualize CW-Husky glitch parameters

Hi all,

When I started using the ChipWhisperer-Husky, I had a hard time picturing what the glitch parameters actually do. Everything is set in steps, which scale to nanoseconds and phase degrees depending on your clock frequency and phase-shift resolution, so the same step count means different real timing on different setups. It was tough to imagine how a given offset/width/repeat combo would actually look on the clock.

So while learning, I built a small tool to visualize it, and it turned out useful enough that I figured I’d share.

What it does:

  • Tune the glitch parameters (offset, width, repeat, ext offset, trigger, clock source) and instantly see the resulting pulse on a timeline
  • Zoom and drag the glitch on the graph; the numbers and the visualization stay in sync
  • Built-in steps ↔ ns ↔ degrees converter, with tooltips on each parameter
  • Warnings for unsafe or contradictory settings
  • Exports the matching ChipWhisperer Python so you can run it on real hardware
  • Save/load projects, undo/redo

It runs fully offline in the browser, so no hardware is needed to just play around and get a feel for the parameters.

I mostly built it for my own learning, so feel free to use it, modify it, or take whatever’s useful. If anything doesn’t match real Husky behavior, I’d love the feedback.

Hope it helps someone who’s at the same point I was. :slightly_smiling_face:

1 Like

Nice, thank you for sharing!

Just a small correction: on the project page you say that steps map non-linearly; in fact they do map linearly.

I also want to draw attention to this notebook which allows glitches to be visualized in a similar way but in a notebook.