In one aspect, an electronic device that has been partitioned into
segments by using clock gating or signal gating is tested. One of the
segments that is a source of a failure is identified. Diagnostic
procedures are applied to the identified segment to determine a cause of
the failure.