The topic
A power side channel reads information from the supply current. In CMOS, a current spike shows that the output switched. The trace does not show whether the output went high or low.
Where it belongs
Course: Digital logic.
Teach this after: CMOS switching and truth tables. An earlier version was homework in embedded systems in Spring 2022.
Files and how to use them
There is no slide deck and no file to download. After the CMOS lecture, students open the unknown circuit in the exercise below. Leave the labeled gates closed until they have an answer.
- Unknown circuit. Use this in class, after the CMOS lecture. Students step the inputs, record the voltage plot, and build the transition table. The link sits with the steps below.
- Labeled gates. Leave these closed until students have committed to an answer. They are for the discussion afterward.
Video lectures
These are links, not files stored with the module. Play one in class, or send the link to students.
Further reading
Optional papers for the instructor, or for a student who wants to read past the assignment.
- Kocher, Jaffe, and Jun, “Differential Power Analysis,” Advances in Cryptology (CRYPTO), pp. 388–397, 1999.
- Mangard, Oswald, and Popp, Power Analysis Attacks: Revealing the Secrets of Smart Cards, Springer, 2007. The book-length treatment. This lab is one gate and one sense resistor.
The exercise
An unknown two-input gate is in a black box. The attacker can see inputs A and B and the supply pin. The output is hidden. A sense resistor between the supply and the source turns switching current into a voltage. A large spike means the output transitioned. A small bump does not. The trace does not encode the direction of the transition.
Outcome
The transient shows that an output transition happened, not whether it was a rising or a falling edge. A gate and its complement produce the same transition table. The student names both truth tables and explains why the measurement cannot separate them. The module asks for no countermeasure. That ambiguity is the starting point for masking.
The work
- Open the unknown circuit and step the inputs. Capture the voltage plot for the sequence 00, then 01, then 11, and mark the moments the inputs change.
- For each row of the transition table, stop the simulation, reset, apply the initial input, run about 20 ms, change to the new input, and run about 20 ms. Record whether a real transition occurred.
- From that table, give every truth table that would produce the same transitions, and show the work.
The early form of this exercise was a graded homework in embedded systems in Spring 2022, before the module moved to the digital-logic setting the catalog now uses. No survey was collected for it.
Open the unknown circuit in Falstad
Known gates, for the discussion after students have committed to an answer
These circuits are labeled. They are there so a class can compare a trace they already interpreted with a gate whose function is no longer hidden.



