A circuit generally comprising a logic module and a security module is
disclosed. The logic module may be configured to set a plurality of
values to a plurality of predetermined values respectively while in a
scan mode. The security module may be configured to (i) disable a scan
capability of the values while in a non-lowest security mode of at least
three security modes and (ii) enabling the scan capability while in a
lowest security mode of the security modes.