The invention discloses a CPU
instruction set comparison
verification method based on an open-source Spike simulator, and the method comprises the steps: taking the Spike simulator as a golden
reference model, and constructing a collaborative
verification platform; monitoring an instruction submission event in real time, driving Spike to execute a peer-to-peer instruction and comparing the architecture states of the two parties in real time; external interruption and abnormal events are synchronously monitored and synchronized to the Spike simulator, and periodic-level synchronous
verification of asynchronous events is achieved; monitoring an access transaction of a
peripheral register, extracting an access feature,
synchronizing the access feature to a virtual
peripheral model in the Spike in real time, and updating a model state to maintain architecture consistency; the state snapshot is exported at the preset
breakpoint based on the Spike simulator, the snapshot is loaded in the
SystemVerilog environment for state reconstruction and RTL
simulation, and defect diagnosis information is output by analyzing a comparison result, so that
software and hardware problems are efficiently positioned, and the development efficiency of a CPU
chip is improved.