# US 10,956,045 B2 · Apparatus and method for issuing access requests to a memory controller

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,956,045 B2
- Document ID: US10956045B2
- Status: Granted
- Kind: B2
- Application number: 14/969,414
- Filed: 2015-12-15
- Published: 2016-06-30
- Granted: 2021-03-23
- Earliest claimed: 2014-12-31
- Assignees: Arm Limited
- Applicants: ARM Limited
- Inventors: Andreas Hansson; Ian Rudolf Bratt
- Web page: https://patentgrep.com/patent/US10956045B2

## CPC

- G06F 3/061: {Improving I/O performance}
- G06F 3/0629: {Configuration or reconfiguration of storage systems}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0673: {Single storage device}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 12/126: with special data handling, e.g. priority of data or instructions, handling errors or pinning
- G06F 13/16: for access to memory bus (G06F13/28 takes precedence)
- G06F 13/1631: {through address comparison}
- G06F 12/12: Replacement control
- G06F 2212/221: Static RAM
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus and method are provided for issuing access requests to a memory controller for a memory device whose memory structure consists of a plurality of sub-structures. The apparatus has a request interface for issuing access requests to the memory controller, each access request identifying a memory address. Within the apparatus static abstraction data is stored providing an indication of one or more of the sub-structures of the memory device, and the apparatus also stores an indication of outstanding access requests issued from the request interface. Next access request selection circuitry is then arranged to select from a plurality of candidate access requests a next access request to issue from the request interface. That selection is dependent on sub-structure indication data that is derived from application of an abstraction data function, using the static abstraction data, to the memory addresses of the candidate access requests and the outstanding access requests. Such an approach enables the apparatus to provide a series of access requests to the memory controller with the aim of enabling the memory controller to perform a more optimal access sequence with regard to the memory device.

## Claims

### Claim 1

A requesting agent device, comprising:
a request interface to issue access requests from the requesting agent device to a memory controller for a memory device whose memory structure consists of a plurality of sub-structures, each access request identifying a memory address;
an abstraction data storage to store static abstraction data providing an indication of one or more of the sub-structures;
an outstanding access requests storage to store an indication of outstanding access requests issued from the request interface; and
next access request selection circuitry to select from a plurality of candidate access requests a next access request for issuance from the request interface to the memory controller, said selection being dependent on sub-structure indication data derived from application of an abstraction data function, using said static abstraction data, to the memory addresses of the candidate access requests and the outstanding access requests,
wherein the requesting agent device comprises on-chip memory interface circuitry of an integrated circuit, and the memory controller is off-chip.

### Claim 2 (depends on 1)

A requesting agent device as claimed in claim 1, further comprising:
comparison data generation circuitry to produce comparison data for a memory address by applying said abstraction data function to said memory address; and
sub-structure indication data generation circuitry to generate said sub-structure indication data for each candidate access request by comparing the comparison data produced for the memory address of that candidate access request with the comparison data produced for the memory address of at least a subset of said outstanding access requests.

### Claim 3 (depends on 2)

A requesting agent device as claimed in claim 2, wherein said at least a subset of said outstanding access requests comprises all outstanding access requests indicated in said outstanding access requests storage.

### Claim 4 (depends on 1)

A requesting agent device as claimed in claim 1, wherein said plurality of sub-structures comprise a plurality of parallel sub-structures that are accessible in parallel, each parallel sub-structure comprising a plurality of locality sub-structures, for each parallel sub-structure only one locality sub-structure being accessible at a time.

### Claim 5 (depends on 4)

A requesting agent device as claimed in claim 4, wherein the static abstraction data provides an encoding of said parallel sub-structures and said locality sub-structures.

### Claim 6 (depends on 5)

A requesting agent device as claimed in claim 5, wherein:
the static abstraction data comprises a parallelism mask and a locality mask; and
for a chosen memory address, the application of said abstraction data function comprises applying the parallelism mask to said chosen memory address to produce first comparison data indicative of a parallel sub-structure associated with the chosen memory address, and applying the locality mask to said chosen memory address to produce second comparison data indicative of a locality sub-structure associated with the chosen memory address.

### Claim 7 (depends on 1)

A requesting agent device as claimed in claim 1, wherein said sub-structure indication data provides locality indication data for each candidate access request with respect to the outstanding access requests.

### Claim 8 (depends on 7)

A requesting agent device as claimed in claim 7 wherein:
the static abstraction data comprises a parallelism mask and a locality mask; and
for a chosen memory address, the application of said abstraction data function comprises applying the parallelism mask to said chosen memory address to produce first comparison data indicative of a parallel sub-structure associated with the chosen memory address, and applying the locality mask to said chosen memory address to produce second comparison data indicative of a locality sub-structure associated with the chosen memory address;
wherein said locality indication data provides a locality hit indication for a candidate access request if the first and second comparison data produced for the memory address of the candidate access request matches the first and second comparison data produced for the memory address of an outstanding access request.

### Claim 9 (depends on 7)

A requesting agent device as claimed in claim 7, wherein:
the static abstraction data comprises a parallelism mask and a locality mask; and
for a chosen memory address, the application of said abstraction data function comprises applying the parallelism mask to said chosen memory address to produce first comparison data indicative of a parallel sub-structure associated with the chosen memory address, and applying the locality mask to said chosen memory address to produce second comparison data indicative of a locality sub-structure associated with the chosen memory address;
wherein said locality indication data provides a locality conflict indication for a candidate access request if the first comparison data produced for the memory address of the candidate access request matches the first comparison data produced for the memory address of an outstanding access request, but the second comparison data produced for the memory address of the candidate access request does not match the second comparison data produced for the memory address of that outstanding access request.

### Claim 10 (depends on 9)

A requesting agent device as claimed in claim 9, wherein said locality indication data provides a locality hit indication for a candidate access request if the first and second comparison data produced for the memory address of the candidate access request matches the first and second comparison data produced for the memory address of an outstanding access request, and wherein the next access request selection circuitry is arranged to select the next access request for issuance from the request interface with reference to the locality hit indications and locality conflict indications produced for each of the plurality of candidate access requests.

### Claim 11 (depends on 10)

A requesting agent device as claimed in claim 10, wherein the next access request selection circuitry is arranged to select access requests for issuance from the request interface so as to give preference to access requests having locality hit indications.

### Claim 12 (depends on 10)

A requesting agent device as claimed in claim 10, wherein the next access request selection circuitry is arranged to select access requests for issuance from the request interface so as to give preference to access requests that do not have locality conflict indications.

### Claim 13 (depends on 1)

A requesting agent device as claimed in claim 1, wherein the static abstraction data is generated at initialisation time of the memory controller.

### Claim 14 (depends on 13)

A requesting agent device as claimed in claim 13, wherein the static abstraction data is not altered during run-time of the memory controller.

### Claim 15 (depends on 1)

A requesting agent device as claimed in claim 1, wherein the outstanding access requests storage is responsive to acknowledgement data from the memory controller to remove from the indication of outstanding access requests any access request that is no longer outstanding.

### Claim 16 (depends on 15)

A requesting agent device as claimed in claim 15, wherein for at least one type of access request the outstanding access requests storage is arranged to apply predetermined criteria to determine when an outstanding access request is no longer to be considered outstanding, and to remove from the indication of outstanding access requests any access request that is no longer considered outstanding.

### Claim 17 (depends on 1)

A requesting agent device as claimed in claim 1, wherein the request interface is coupled to the memory controller via an interconnect structure employing an interconnect protocol.

### Claim 18 (depends on 1)

A requesting agent device as claimed in claim 1, wherein the requesting agent device is a cache provided within a data processing system.

### Claim 19

A method of issuing access requests from a requesting agent device to a memory controller for a memory device whose memory structure consists of a plurality of sub-structures, each access request identifying a memory address, the method comprising:
storing, within the requesting agent device, static abstraction data providing an indication of one or more of the sub-structures;
storing, within the requesting agent device, an indication of outstanding access requests issued from a request interface of the requesting agent device; and
selecting from a plurality of candidate access requests a next access request for issuance from the request interface to the memory controller, said selection being dependent on sub-structure indication data derived from application of an abstraction data function, using said static abstraction data, to the memory addresses of the candidate access requests and the outstanding access requests,
wherein the requesting agent device comprises on-chip memory interface circuitry of an integrated circuit, and the memory controller is off-chip.
