The invention discloses a multi-core
cache consistency debugging method based on multi-view access, and belongs to the field of multi-core processor debugging. According to the method, an interface is debugged through a JTAG (
Joint Test Action Group), an upper computer specifies a target address in a main memory, five groups of data of a CPU (
Central Processing Unit)
view angle, an L1 data caching
view angle, an L1 instruction caching
view angle, an L2 view angle and a real memory view angle corresponding to the address are sequentially read, whether cache fails or not is judged by comparing
data consistency, and inconsistent cache levels are marked. The debugging
system comprises a built-in JTAG TAP controller, an enhanced debugging access module, a storage level access
arbiter and a data and state collector. According to the method, direct access of the JTAG interface to each level of cache data is realized, hardware modification or cache forbidding is not needed,
system operation is not interfered, the
cache consistency problem under a multi-core architecture can be quickly positioned, the debugging efficiency and accuracy are improved, and the method is suitable for a debugging scene of a large-scale multi-core processor.