# US 8,578,104 B2 · Multiprocessor system with mixed software hardware controlled cache management

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

- Number: US 8,578,104 B2
- Document ID: US8578104B2
- Status: Granted
- Kind: B2
- Application number: 12/999,450
- Filed: 2009-06-09
- Published: 2011-04-21
- Granted: 2013-11-05
- Earliest claimed: 2008-06-17
- Assignees: NXP B.V.
- Applicants: Jan Hoogerbrugge; Andrei Sergeevich Terechko
- Inventors: Jan Hoogerbrugge; Andrei Sergeevich Terechko
- Web page: https://patentgrep.com/patent/US8578104B2

## CPC

- G06F 12/0837: with software control, e.g. non-cacheable data
- G06F 9/3004: {to perform operations on memory}
- G06F 9/30087: {Synchronisation or serialisation instructions}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A multiprocessor system has a background memory and a plurality of processing elements, each comprising a processor core and a cache circuit. The processor cores execute programs of instructions and the cache circuits cache background memory data accessed by the programs. A write back monitor circuit is used to buffer write addresses used for writing data by at least part of the processor cores. The programs contain commands to read the buffered write back addresses from the write back monitor circuit and commands from the programs to invalidate cached data for the write back addresses read by the commands to read the buffered write back addresses. Thus cache management is performed partly by hardware and partly by the program that uses the cache. The processing core may be a VLIW core, in which case instruction slots that are not used by the program can be made useful to include instructions for cache management.

## Claims

### Claim 1

A multiprocessor system, comprising:
an interface to a background memory;
a plurality of processing elements, each comprising a processor core and a cache circuit, coupled between the processor core and the interface for caching background memory data accessed by a program of the processor core; and
a write back monitor circuit configured to buffer write addresses used for writing data by at least part of the processor cores, the processor core of at least one of the processing elements being configured to support commands from the program to read write back addresses from the write back monitor circuit and to invalidate cached data in the cache circuit of the at least one processing element for the write back addresses.

### Claim 2 (depends on 1)

A multiprocessor system according to claim 1, wherein the processor core of said at least one of the processing elements is a VLIW processor core, configured to execute instructions that each comprise a plurality of commands for mutually parallel execution, the commands including the commands to read write back addresses and to invalidate cached data.

### Claim 3 (depends on 1)

A multiprocessor system according to claim 1, wherein the write back monitor circuit is configured to detect an overflow condition when a lost write address is removed from the buffer before the lost write address is read by the program, or the lost write address is not written into the buffer, and to signal the overflow condition to the processor core.

### Claim 4 (depends on 3)

A multiprocessor system according to claim 3, wherein the processor core of said at least one of the processing elements is configured to apply the command to invalidate to all cached data in the cache circuit in response to said signaling of the overflow condition.

### Claim 5 (depends on 1)

A multiprocessor system according to claim 1, wherein the write back monitor circuit is configured to store each write address in combination with write data for that write address.

### Claim 6 (depends on 1)

A multiprocessor system according to claim 1, wherein the processor core of said at least one of the processing elements comprises a program memory with a program including commands to access the cache circuit using background memory addresses as well as the commands to the commands to read write back addresses and the commands to invalidate cached data for the write back addresses read by the commands to read write back addresses.

### Claim 7 (depends on 1)

A multiprocessor system according to claim 1, wherein the write back monitor circuit is shared by the plurality of processing elements.

### Claim 8 (depends on 7)

A multiprocessor system according to claim 7, wherein the write back monitor circuit comprises a buffer memory operated as a circular buffer and read pointers pointing to locations in the buffer memory are provided for respective ones of the processing elements.

### Claim 9 (depends on 1)

A multiprocessor system according to claim 1, further comprising a plurality of write back monitor circuits, each for a respective one of the processing elements.

### Claim 10 (depends on 9)

A multiprocessor system according to claim 9, wherein at least one of the plurality of write back monitor circuits comprises an associative memory, addressable by the write addresses.

### Claim 11 (depends on 9)

A multiprocessor system according to claim 9, wherein at least one of the plurality of write back monitor circuits comprises a buffer memory operated as a circular buffer.

### Claim 12 (depends on 1)

A multiprocessor system according to claim 1, further comprising a synchronization circuit configured to stall execution of the program of at least one of the processing elements in response to a synchronization command in that program until a synchronization condition is met.

### Claim 13

A method of operating a multiprocessor system with a background memory and a plurality of processing elements, each comprising a processor core and a cache circuit coupled between the processor core and the background memory, the method comprising:
executing programs of instructions in the processor cores;
caching background memory data accessed by the programs in the cache circuits;
using a write back monitor circuit to buffer write addresses used for writing data by at least part of the processor cores,
executing commands from the programs to read the buffered write back addresses from the write back monitor circuit; and
executing commands from the programs to invalidate cached data for the write back addresses read by the commands to read the buffered write back addresses.

### Claim 14

A compiler for generating a program for a processor core in a multiprocessing system, the compiler being configured to
receive a definition of a task;
generate a program with commands to implement the task; and
add commands to said program to read buffered write back addresses from a write back monitor circuit and to invalidate cached data for the write back addresses read by the commands to read the buffered write back addresses.

### Claim 15 (depends on 14)

A compiler according to claim 14, wherein the processor core is a VLIW processor core with instructions that each contain a plurality of positions for commands, the compiler being configured to mix the commands to implement the task and the commands to read buffered write back addresses from a write back monitor circuit and to invalidate cached data for the write back addresses read by the commands to read the buffered write back addresses in the instructions.
