The invention belongs to the field of integrated circuits and computer
system structures, and provides a caching method and
system for a memory access unit of a
superscalar processor, and the method comprises the steps: receiving a plurality of memory access instructions in the same period, and determining a corresponding
Bank in a to-be-accessed cache through the memory access instructions; after the memory access instruction obtains a
cache access permission, if cache line missing occurs, generating a missing request, merging all the missing requests, and performing parallel prefetching training on the merged missing requests by utilizing a mode of fusing a constant step length prefetching mode and a complex step length prefetching mode to obtain a prefetching request and a prefetching cache address corresponding to the prefetching request; requesting a missing cache line from the first-level cache to the second-level cache based on the missing
queue, and writing the missing cache line back to the cache line of the corresponding
data cache in the first-level cache; and storing the
bus consistency request by using the sniffing
queue, judging whether the data in the multi-core cache are consistent or not by using the consistency request, and performing consistency modification according to a judgment result. The
cache hit rate and the
bandwidth utilization rate are improved.