主权项 |
1. A circuit for accessing a memory, the memory comprising a scatter table storage region and a plurality of data storage regions, the scatter table storage region storing a plurality of entries, the entries recording starting addresses and sizes of the data storage regions, respectively, the circuit comprising:
an accessing circuit, coupled to the memory, accessing the memory; and a cache, coupled to the accessing circuit and the memory, reading the scatter table storage region, and storing one entry of the entries read from the scatter table storage region; wherein, when the accessing circuit needs to access one set of data stored in the data storage regions, the accessing circuit issues a read request to the cache to read the entry from the cache, determines whether the data is stored in the data storage region recorded by the entry according to the size of the data storage region recorded by the entry, and determines whether to access the memory to obtain the data according to the starting address of the data storage region recorded by the entry. |