The disclosure provides a kind of embedded
simulation switch's power utilization
information acquisition terminal fault
simulation method and device, specifically, terminal receives remote host instruction, obtains switch trigger
mask, trigger target value, state
precondition, fault data template and reset condition by
parsing;Current global
state vector of terminal is generated, and it is compared by being operated with
precondition mask and expected value, if it is satisfied, then according to trigger
mask and target value, update global
state vector, flip or set corresponding logic switch;When logic switch enters trigger state, locate to the
data cache area of key function node, first
backup original target data, then execute bit by bit
exclusive or operation to cache area data and fault template, complete the generation and injection of fault data;Reset condition is monitored continuously during
simulation execution, reset all logic switches to default state, and using
backup data restores
data cache area to original state, clear simulation trace, terminate fault simulation process.