Claims
- 1. A method of processing data comprising:writing a data block of size m where m is greater than zero into a queue; reading a data block of size n where n is greater than zero from the queue and where the size of n is different from the size of m; managing a read pointer of the queue; managing a write pointer of the queue; and managing a set of flags indicating a status for the queue, the set of flags including a full flag, a nearly full flag, an empty flag and a nearly empty flag.
- 2. The method of claim 1, further comprising:receiving instructions from a programmable state machine to increment a read pointer.
- 3. The method of claim 1, further comprising:receiving instructions from a programmable state machine to increment a write pointer.
- 4. The method of claim 1 further comprising:receiving configuration parameters to configure the queue, the configuration parameters including a size of the queue, a base address of the queue, a full watermark value and an empty watermark value.
- 5. The method of claim 1 wherein the queue is a first-in-first-out (FIFO) queue.
- 6. The method of claim 1 wherein the queue has a configurable size.
- 7. The method of claim 1, further comprising reading and writing data of different sizes from a plurality of queues.
- 8. An apparatus comprising:a memory that stores executable instructions; a processor that executes the instructions to: write a data block of size m where m is greater than zero into a queue; read a data block of size n where n is greater than zero from the queue and where the size of n is different from the size of m; manage a read pointer of the queue; manage a write pointer of the queue; and manage a set of flags indicating a status for the queue, the set of flags including a full flag, a nearly full flag, an empty flag and a nearly empty flag.
- 9. The apparatus of claim 8, further comprising instructions to:receive instructions from a programmable state machine to increment a read pointer.
- 10. The apparatus of claim 8, further comprising instructions to:receive instructions from a programmable state machine to increment a write pointer.
- 11. The apparatus of claim 8, further comprising instructions to:receive configuration parameters to configure the queue, the configuration parameters including a size of the queue, a base address of the queue, a full watermark value and an empty watermark value.
- 12. The apparatus of claim 8 wherein the queue is a first-in-first-out (FIFO) queue.
- 13. The apparatus of claim 8 wherein the queue has a configurable size.
- 14. The apparatus of claim 8, further comprising instructions to:read and write data of different sizes from a plurality of queues.
- 15. An article comprising a machine-readable medium that stores executable instructions for managing a queue, the instructions causing a machine to:write a data block of size m where m is greater than zero into a queue; read a data block of size n where n is greater than zero from the queue and where the size of n is different from the size of m; manage a read pointer of the queue; manage a write pointer of the queue; and manage a set of flags indicating a status for the queue, the set of flags including a full flag, a nearly full flag, an empty flag and a nearly empty flag.
- 16. The article of claim 15, further comprising instructions causing the machine to:receive instructions from a programmable state machine to increment a read pointer.
- 17. The article of claim 15, further comprising instructions causing the machine to:receive instructions from a programmable state machine to increment a write pointer.
- 18. The article of claim 15, further comprising instructions causing the machine to:receive configuration parameters to configure the queue, the configuration parameters including a size of the queue, a base address of the queue, a full watermark value and an empty watermark value.
- 19. The article of claim 15 wherein the queue is a first-in-first-out (FIFO) queue.
- 20. The article of claim 15 wherein the queue has a configurable size.
- 21. The article of claim 15, further comprising instructions causing the machine to:read and write data of different sizes from a plurality of queues.
PRIORITY TO OTHER APPLICATIONS
This application claims priority from U.S. Provisional Application No. 60/314,443 filed Aug. 23, 2001, and titled “Hardware Services for a Programmable State Machine.”
US Referenced Citations (3)
Number |
Name |
Date |
Kind |
5459839 |
Swarts et al. |
Oct 1995 |
A |
5557744 |
Kobayakawa et al. |
Sep 1996 |
A |
6032179 |
Osborne |
Feb 2000 |
A |
Provisional Applications (1)
|
Number |
Date |
Country |
|
60/314443 |
Aug 2001 |
US |