The invention discloses a
fault injection and detection method based on RTL, and relates to the technical field of
aerospace fault-tolerant calculation, the
fault injection and detection method is compatible with three single-particle fault types of SEU, SET and SEL, the injection bit number, duration and position can be customized by a user, and based on random number file configuration, the problems of
single fault type and parameter solidification of an existing tool are solved; a bypass injection mechanism controlled by a
timer is adopted, and a fault data flow is switched in a specified
clock period, so that a
trunk data flow is not influenced, and the occupation of
system resources is reduced; a forward detection module is designed based on (13, 8) extended Hamming codes, a receiving end quickly locates the fault type and position through a syndrome look-up table,
original data does not need to be transmitted back, and detection
delay is effectively controlled; a streamlined design is adopted, check bit generation,
fault injection, syndrome generation and fault information output are executed in parallel, and hardware resource overhead is obviously optimized.