Claims
- 1. A method of processing data comprising:
writing a data block of size m where m is greater than zero into a queue; and 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.
- 2. The method of claim 1 further comprising:
managing read pointers of the queue; and managing write pointers of the queue.
- 3. The method of claim 2 further comprising:
managing a set of flags indicating a status for each queue.
- 4. The method of claim 3 wherein the set of flags includes a full flag, a nearly full flag, an empty flag and a nearly empty flag.
- 5. The method of claim 1, further comprising:
receiving instructions from a programmable state machine to increment a read pointer.
- 6. The method of claim 1, further comprising:
receiving instructions from a programmable state machine to increment a write pointer.
- 7. 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 a empty watermark value.
- 8. The method of claim 1 wherein the queue is a first-in-first-out (FIFO) queue.
- 9. The method of claim 1 wherein the queue has a configurable size.
- 10. The method of claim 1, further comprising reading and writing data of different sizes from a plurality of queues.
- 11. An apparatus comprising:
a memory that stores executable instructions; and a processor that executes the instructions to:
write a data block of size m where m is greater than zero into a queue; and 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.
- 12. The apparatus of claim 11, further comprising instructions to:
manage read pointers of the queue; and manage write pointers of the queue.
- 13. The apparatus of claim 12, further comprising instructions to:
manage a set of flags indicating a status for each queue.
- 14. The apparatus of claim 13 wherein the set of flags includes a full flag, a nearly full flag, an empty flag and a nearly empty flag.
- 15. The apparatus of claim 11, further comprising instructions to:
receive instructions from a programmable state machine to increment a read pointer.
- 16. The method of claim 1, further comprising:
receiving instructions from a programmable state machine to increment a write pointer.
- 17. The apparatus of claim 11, 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 a empty watermark value.
- 18. The apparatus of claim 11 wherein the queue is a first-in-first-out (FIFO) queue.
- 19. The apparatus of claim 11 wherein the queue has a configurable size.
- 20. The apparatus of claim 11, further comprising instructions to:
read and write data of different sizes from a plurality of queues.
- 21. 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; and 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.
- 22. The article of claim 21, further comprising instructions causing the machine to:
manage read pointers of the queue; and manage write pointers of the queue.
- 23. The article of claim 22, further comprising instructions causing a machine to:
manage a set of flags indicating a status for each queue.
- 24. The article of claim 23 wherein the set of flags includes a full flag, a nearly full flag, an empty flag and a nearly empty flag.
- 25. The article of claim 21, further comprising instructions causing a machine to:
receive instructions from a programmable state machine to increment a read pointer.
- 26. The article of claim 21, further comprising instructions causing a machine to:
receive instructions from a programmable state machine to increment a write pointer.
- 27. The article of claim 21, further comprising instructions causing a 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 a empty watermark value.
- 28. The article of claim 21 wherein the queue is a first-in-first-out (FIFO) queue.
- 29. The article of claim 21 wherein the queue has a configurable size.
- 30. The article of claim 21, further comprising instructions causing a machine to:
read and write data of different sizes from a plurality of queues.
PRIORITY TO OTHER APPLICATIONS
[0001] 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.”
Provisional Applications (1)
|
Number |
Date |
Country |
|
60314443 |
Aug 2001 |
US |