The application relates to an error injection method and device,
computer equipment and a readable storage medium. The method comprises the following steps: determining an error injection requirement based on a configuration operation, the configuration operation being used for configuring at least one or a combination of a target
logical address, an error type and a trigger condition; converting the error injection requirement into an error injection command, storing the error injection command into a
content addressable memory (
CAM) for scheduling, and obtaining a scheduling result; and according to the scheduling result, issuing the error injection command and a
dynamic random access memory (
DRAM)
physical address to a corresponding
DRAM control unit to execute the error injection through the
DRAM control unit. Thus, the
system can remain in a normal operation state during the entire error injection process, without entering a special test mode, ensuring the normal execution of a refresh operation, and the interaction between AXI internal and
address mapping modules is reused, without affecting
business continuity, so that the universality is enhanced.