Claims
- 1. A method of operating shared memory in a multiple processor system comprising the steps of:maintaining by default a token with a first processor by writing a token bit in a first register with a second processor, the token enabling access to shared memory; clearing a flag bit in a second register with the first processor to indicate that the first processor has completed access of the shared memory; determining that the second processor requires access to the shared memory; determining that the first processor has completed access of the shared memory by reading the cleared flag bit in the second register with the second processor; transferring the token to the second processor by rewriting the token bit in the first register with the second processor; accessing the shared memory with the second processor; and returning the token from the second processor to the first processor after said step of accessing the shared memory with the second processor by rewriting the token bit in the first register with the second processor.
- 2. The method of claim 1 wherein the first and second processors comprise digital signal processors.
- 3. The method of claim 1 wherein the first and second processors form a part of an audio decoder.
- 4. The method of claim 1 wherein the shared memory comprises random access memory.
- 5. The method of claim 1 wherein the token comprises a write token for enabling write accesses to the shared memory.
- 6. The method of claim 1 wherein the token comprises a read token for enabling read accesses to the shared memory.
- 7. A multiple processor system comprising:first and second digital signal processors; a shared memory for exchanging data between said first and second processors; a first register for storing a token represented by a token bit readable by said first processor and writeable by said second processor, said token controlling access to said shared memory and held by said first processor in default; and a second register for storing a flag bit indicating whether said first digital signal processor is accessing said shared memory, said flag bit in said second register writeable by said first processor and readable by said second processor, said second processor operable to write to said token bit in said first register to transfer said token to said second processor in response to a state of said flag bit in said second register indicating that the first processor has completed accessing said shared memory and to rewrite said token bit to return the token to the first processor in default after access to said shared memory by said second processor.
- 8. The processing device of claim 7 wherein said first and second digital signal processors are fabricated on a single chip.
- 9. The processing device of claim 7 wherein said first and second digital signal processors are operable to process digital audio data.
- 10. The processing device of claim 7 wherein said token comprises a write token and said access comprises a write to said shared memory.
- 11. The processing device of claim 7 wherein said token comprises a read token and said access comprises a read from said shared memory.
CROSS-REFERENCE TO RELATED APPLICATION
The following co-pending and co-assigned application contains related information and is hereby incorporated by reference: Ser. No. 08/970,979, entitled DUAL PROCESSOR DIGITAL AUDIO DECODER WITH SHARED MEMORY DATA TRANSFER, AND SYSTEMS AND METHODS USING THE SAME; filed Nov. 14, 1997, now U.S. Pat. No. 6,081,783;
Ser. No. 08/970,794, entitled “METHODS FOR BOOTING A MULTIPROCESSOR SYSTEM, filed Nov. 14, 1997, now U.S. Pat. No. 6,012,142;
Ser. No. 08/970,372, entitled “METHODS FOR DEBUGGING A MULTIPROCESSOR SYSTEM, filed Nov. 14, 1997, now U.S. Pat. No. 6,101,598;
Ser. No. 08/969,883, entitled “INTER-PROCESSOR COMMUNICATION CIRCUITRY AND METHODS, filed Nov. 14, 1997, now U.S. Pat. No. 6,145,007;
Ser. No. 08/970,796, entitled “ZERO DETECTION CIRCUITRY AND METHODS, filed Nov. 14, 1997, now U.S. Pat. No. 5,978,825;
Ser. No. 08/970,841, U.S. Pat. No. 5,907,263 granted May 25, 1999; entitled “A BIAS CURRENT TUNING AND METHODS USING THE SAME; filed Nov. 14, 1997;
Ser. No. 08/971,080, entitled DUAL PROCESSOR AUDIO DECODER AND METHODS WITH SUSTAINED DATA PIPELINING DURING ERROR CONDITIONS, filed Nov. 14, 1997, now U.S. Pat. No. 6,009,389; and
Ser. No. 08/970,302, U.S. Pat. No. 5,960,401 granted Sep. 28, 1999; entitled “METHODS FOR DEBUGGING A MULTIPROCESSOR SYSTEM, filed Nov. 14, 1997.
US Referenced Citations (4)