# US 2004/0073772 A1 · Method and apparatus for thread-based memory access in a multithreaded processor

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

- Number: US 2004/0073772 A1
- Document ID: US20040073772A1
- Status: Published application
- Kind: A1
- Application number: 10/269,247
- Filed: 2002-10-11
- Published: 2004-04-15
- Earliest claimed: 2002-10-11
- Assignees: Sandbridge Technologies, Inc.
- Inventors: Erdem Hokenek; Mayan Moudgill; C. John Glossner
- Web page: https://patentgrep.com/patent/US20040073772A1

## CPC

- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/3824: {Operand accessing}
- G06F 12/06: Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication (G06F12/08 takes precedence)
- G06F 12/0842: for multiprocessing or multitasking
- G06F 12/0846: Cache with multiple tag or data arrays being simultaneously accessible
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Techniques for thread-based memory access by a multithreaded processor are disclosed. The multithreaded processor determines a thread identifier associated with a particular processor thread, and utilizes at least a portion of the thread identifier to select a particular portion of an associated memory to be accessed by the corresponding processor thread. In an illustrative embodiment, a first portion of the thread identifier is utilized to select one of a plurality of multiple-bank memory elements within the memory, and a second portion of the thread identifier is utilized to select one of a plurality of memory banks within the selected one of the multiple-bank memory elements. The first portion may comprise one or more most significant bits of the thread identifier, while the second portion comprises one or more least significant bits of the thread identifier. Advantageously, the invention reduces memory access times and power consumption, while preventing the stalling of any processor threads.

## Claims

### Claim 1

A method for accessing a memory associated with a multithreaded processor, the method comprising the steps of:
determining a thread identifier associated with a particular thread of the multithreaded processor; and
utilizing at least a portion of the thread identifier to select a particular portion of the memory to be accessed by the corresponding processor thread.

### Claim 2 (depends on 1)

The method of claim 1 wherein the utilizing step further comprises the steps of utilizing a first portion of the thread identifier to select one of a plurality of multiple-bank memory elements within the memory and utilizing a second portion of the thread identifier to select one of a plurality of memory banks within the selected one of the multiple-bank memory elements.

### Claim 3 (depends on 2)

The method of claim 2 wherein the first portion comprises one or more most significant bits of the thread identifier.

### Claim 4 (depends on 2)

The method of claim 2 wherein the second portion comprises one or more least significant bits of the thread identifier.

### Claim 5 (depends on 2)

The method of claim 2 wherein each of the multiple-bank memory elements includes an even memory bank and an odd memory bank, and a least significant bit of the second portion is utilized to select one of the even memory bank and the odd memory bank for access by the corresponding processor thread.

### Claim 6 (depends on 1)

The method of claim 1 wherein the memory comprises a main memory coupled to the multithreaded processor.

### Claim 7 (depends on 1)

The method of claim 1 wherein the memory comprises a data memory of the multithreaded processor.

### Claim 8 (depends on 1)

The method of claim 1 wherein the memory comprises a cache memory of the multithreaded processor.

### Claim 9 (depends on 8)

The method of claim 8 wherein the cache memory comprises a plurality of thread caches, at least a given one of the thread caches comprising a memory array having one or more sets of memory locations.

### Claim 10 (depends on 9)

The method of claim 9 wherein the given thread cache further comprises a thread identifier register for storing the thread identifier.

### Claim 11 (depends on 1)

The method of claim 1 wherein the multithreaded processor is configured to utilize token triggered threading.

### Claim 12 (depends on 11)

The method of claim 11 wherein the token triggered threading utilizes a token to identify in association with a current processor clock cycle a particular context that will be permitted to issue an instruction for a subsequent clock cycle.

### Claim 13 (depends on 1)

The method of claim 1 wherein the multithreaded processor is configured for pipelined instruction processing.

### Claim 14

A processor system comprising:
a multithreaded processor; and
a memory associated with the multithreaded processor;
the multithreaded processor being operative to determine a thread identifier associated with a particular thread of the multithreaded processor, and to utilize at least a portion of the thread identifier to select a particular portion of the memory to be accessed by the corresponding processor thread.

### Claim 15

An article of manufacture comprising a machine-readable storage medium having embodied thereon program code for use in accessing a memory associated with a multithreaded processor, wherein the program code when executed by the processor implements the steps of:
determining a thread identifier associated with a particular thread of the multithreaded processor; and
utilizing at least a portion of the thread identifier to select a particular portion of the memory to be accessed by the corresponding processor thread.
