Patent ID: 8458414
Filing Date: 2013-06-04
Classification: G06F

Abstract:
1. A method for accessing a memory, wherein the memory has a plurality of memory blocks each having a plurality of memory units, the method comprising: fetching, at least, a first instruction and a second instruction; decoding the first instruction to obtain a first operation field and a first address field, and decoding the second instruction to obtain a second operation field and a second address field, wherein each of the first operation field and the second operation field indicates a type of operation for accessing the memory, the first address field comprises a first upper address corresponding to a first memory block and a first lower address corresponding to a first memory unit of the first memory block, and the second address field comprises a second upper address corresponding to a second memory block and a second lower address corresponding to a second memory unit of the second memory block; determining whether the first instruction and the second instruction are two instructions performing a same type of operation on a same memory block; and performing the type of operation indicated by the first operation field and the second operation field on the corresponding memory block if the first instruction and the second instruction are the two instructions performing the same type of operation on the same memory block; wherein the first instruction and the second instruction are executed only after the determination of whether the first instruction and the second instruction are two instructions performing the same type of operation on the same memory block.