# US 11,119,924 B2 · Interface device including ports and a cache memory, and control method thereof

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

- Number: US 11,119,924 B2
- Document ID: US11119924B2
- Status: Granted
- Kind: B2
- Application number: 15/919,608
- Filed: 2018-03-13
- Published: 2018-09-27
- Granted: 2021-09-14
- Earliest claimed: 2017-03-22
- Assignees: Canon Kabushiki Kaisha
- Applicants: Canon Kabushiki Kaisha
- Inventors: Tadayuki Ito
- Web page: https://patentgrep.com/patent/US11119924B2

## CPC

- G06F 12/0815: Cache consistency protocols
- G06F 12/084: with a shared cache
- G06F 12/0846: Cache with multiple tag or data arrays being simultaneously accessible
- G06F 12/0853: Cache with multiport tag or data arrays
- G06F 12/0855: Overlapped cache accessing, e.g. pipeline (G06F12/0846 takes precedence)
- G06F 2212/1008: Correctness of operation, e.g. memory ordering
- G06F 2212/1021: Hit rate improvement
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In order to allow efficient data communication, an interface device that includes N ports, comprises: a cache memory that is shared by the N ports and includes a plurality of cache tags each of which is allocated to one of the N ports; and N cache determination units corresponding to the N ports. Each of the N cache determination units comprises: a determiner configured to determine, based on all of the values of the plurality of cache tags, whether a cache miss has occurred in the cache memory, and an update unit configured to update, when the determiner determines that a cache miss has occurred, cache tag values allocated to a self-port.

## Claims

### Claim 1

An interface device that includes N ports, wherein N is an integer greater than or equal to 2, comprising:
a cache memory that is shared by the N ports and includes a plurality of cache tags, wherein each of the plurality of cache tags is allocated to one of the N ports; and
a cache determination unit corresponding to one of the N ports,
wherein the cache determination unit comprises:
a determiner configured to determine that a cache miss has occurred or not in the cache memory based on values of the plurality of cache tags allocated to the N ports if data request is broadcasted, and
an update unit configured to update, when the determiner determines that a cache miss has occurred, values of the plurality of cache tags allocated to the N ports, and
wherein, in the determiner,
a data request address value string in the one of the N ports is configured as a first pipeline,
a cache tag string in the one of the N ports is configured as a second pipeline which serves as a counterflow pipeline, and
data request address value strings in the others of the N ports are configured as (N−1) third pipelines, and
wherein the determiner includes:
a first determiner configured to perform a cache miss determination by comparing a node of the first pipeline and a node of the second pipeline,
a second determiner configured to perform the cache miss determination by comparing the node of the first pipeline and nodes of the (N−1) third pipelines, and
a third determiner configured to perform a final determination by tallying determination results from the first determiner and the second determiner.

### Claim 2 (depends on 1)

The device according to claim 1, wherein the cache memory is configured as a fully associative-type cache memory.

### Claim 3 (depends on 1)

The device according to claim 1, further comprising:
an acquisition unit configured to acquire, when the determiner determines that the cache miss has occurred, data from an external memory connected to a bus via the bus, which is connected by a port different from the N ports, and to store the acquired data in the cache memory.

### Claim 4 (depends on 3)

The device according to claim 3, wherein N devices are connected to the N ports, and a data transfer length in at least one device is different from a data transfer length in another device.

### Claim 5 (depends on 3)

The device according to claim 3, wherein at least one of a reception area for a read request and a transmission area for a write request when a cache miss has occurred is allocated to the cache memory.

### Claim 6 (depends on 1)

The device according to claim 1, further comprising:
a synchronization pointer configured to manage synchronization of the N ports,
wherein the update unit updates the synchronization pointer at the time of one of a cache miss, cache sharing, and writing to the cache memory.

### Claim 7 (depends on 1)

The device according to claim 1, wherein there are the same number of ports as the layers of a stacked memory connected by TSV (Through Silicon Via).

### Claim 8 (depends on 1)

The device according to claim 1, wherein the cache memory includes an embedded DRAM.

### Claim 9 (depends on 1)

The device according to claim 1, further comprising:
a memory management unit configured to change data request address values of each port in accordance with a transfer destination.

### Claim 10 (depends on 1)

The device according to claim 1, wherein the cache tags allocated to the one of the N ports and the cache tags allocated to the others of the N ports do not belong to the same set.

### Claim 11

A control method of an interface device that includes N ports, wherein N is an integer greater than or equal to 2,
the interface device comprising a cache memory that is shared by the N ports and includes a plurality of cache tags, wherein each of the plurality of cache tags is allocated to one of the N ports, and a cache determination unit corresponding to one of the N ports,
the control method comprising:
determining, by the cache determination unit, that a cache miss has occurred or not in the cache memory based on values of the plurality of cache tags allocated to the N ports if data request is broadcasted, and
updating, in each of the N cache determination units, when it is determined that a cache miss has occurred, values of the plurality of cache tags allocated to the N ports,
wherein the determining includes:
a first determining operation to perform a cache miss determination by comparing data request address values in the one of the N ports and the values of cache tags allocated to the one of the N ports,
a second determining operation to perform the cache miss determination by comparing data request address values in the one of the N ports and the values of cache tags allocated to the others of the N ports, and
a third determining operation to perform a final determination by tallying determination results from the first determining operation and the second determining operation, and
wherein in the determining,
a data request address value string in the one of the N ports is configured as a first pipeline,
a cache tag string in the one of the N ports is configured as a second pipeline which serves as a counterflow pipeline,
data request address value strings in the others of the N ports are configured as (N−1) third pipelines,
the first determining operation is configured to compare a node of the first pipeline and a node of the second pipeline, and
the second determining operation is configured to compare the node of the first pipeline and nodes of the (N−1) third pipelines.

### Claim 12 (depends on 11)

The method according to claim 11, further comprising:
acquiring, when it is determined that the cache miss has occurred in the determining, data from an external memory connected to a bus via the bus, which is connected by a port different from the N ports, and storing the acquired data in the cache memory.

### Claim 13 (depends on 11)

The method according to claim 11,
wherein the interface device comprises a synchronization pointer configured to manage synchronization of the N ports, and
in the updating, the synchronization pointer is updated at the time of one of a cache miss, cache sharing, and writing to the cache memory.

### Claim 14 (depends on 11)

The method according to claim 11, further comprising:
changing data request address values of the respective ports in accordance with a transfer destination.

### Claim 15 (depends on 11)

The method according to claim 11, wherein in the determining, when data request address values in the one of the N ports do not match the cache tags allocated to the one of the N ports, performing the determining on cache tags allocated to the others of the N ports.

### Claim 16

A non-transitory computer-readable recording medium storing a program that causes a computer that includes N ports, wherein N is an integer greater than or equal to 2, to function as an interface device comprising:
a cache memory that is shared by the N ports and includes a plurality of cache tags, wherein each of the plurality of cache tags is allocated to one of the N ports; and
a cache determination unit corresponding to one of the N ports,
wherein the cache determination unit comprises:
a determiner configured to determine that a cache miss has occurred or not in the cache memory based on values of the plurality of cache tags allocated to the N ports if data request is broadcasted, and
an update unit configured to update, when the determiner determines that a cache miss has occurred, values of the plurality of cache tags allocated to the N ports, and
wherein, in the determiner,
a data request address value string in the one of the N ports is configured as a first pipeline,
a cache tag string in the one of the N ports is configured as a second pipeline which serves as a counterflow pipeline, and
data request address value strings in the others of the N ports are configured as (N−1) third pipelines, and
wherein the determiner includes:
a first determiner configured to perform a cache miss determination by comparing a node of the first pipeline and a node of the second pipeline,
a second determiner configured to perform the cache miss determination by comparing the node of the first pipeline and nodes of the (N−1) third pipelines, and
a third determiner configured to perform a final determination by tallying determination results from the first determiner and the second determiner.
