An integrated circuit device includes at least one functional module which
outputs save data in synchronism with a saving clock signal, a power
supply control unit which selects one of the functional modules, and
controls stop and resumption of power supply to the selected functional
module, a save data storage unit which stores save data output from a
functional module selected by the power supply control unit, and an error
checking and correction unit which performs error checking and correction
for the save data stored in the save data storage unit when the save data
is to be restored to the functional module in synchronism with a
restoration clock signal.