Claims
- 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.
- 2. 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.
- 3. The method of claim 2 wherein the first portion comprises one or more most significant bits of the thread identifier.
- 4. The method of claim 2 wherein the second portion comprises one or more least significant bits of the thread identifier.
- 5. 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.
- 6. The method of claim 1 wherein the memory comprises a main memory coupled to the multithreaded processor.
- 7. The method of claim 1 wherein the memory comprises a data memory of the multithreaded processor.
- 8. The method of claim 1 wherein the memory comprises a cache memory of the multithreaded processor.
- 9. 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.
- 10. The method of claim 9 wherein the given thread cache further comprises a thread identifier register for storing the thread identifier.
- 11. The method of claim 1 wherein the multithreaded processor is configured to utilize token triggered threading.
- 12. 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.
- 13. The method of claim 1 wherein the multithreaded processor is configured for pipelined instruction processing.
- 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.
- 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.
RELATED APPLICATION(S)
[0001] The present invention is related to the inventions described in U.S. Patent Applications Attorney Docket No. 1007-6, entitled “Multithreaded Processor With Efficient Processing For Convergence Device Applications,” Attorney Docket No. 1007-7, entitled “Method and Apparatus for Register File Port Reduction in a Multithreaded Processor,” and Attorney Docket No. 1007-8, entitled “Method and Apparatus for Token Triggered Multithreading,” all of which are filed concurrently herewith and incorporated by reference herein.