Apparatus and method for managing memory in a network switch
First Claim
1. A method for managing memory in a network switch, said method comprising the steps of:
- providing a memory, wherein the memory includes a plurality of memory locations configured to store data therein;
providing a memory address pool having a plurality of available memory addresses arranged therein, wherein each of the plurality of memory addresses corresponds to a specific memory location; and
providing a memory address pointer, wherein the memory address pointer indicates a next available memory address in the memory address pool;
wherein when a release of a released memory address does not occur in a same clock cycle as a request for an available address, the method further comprises;
reading available memory addresses from the memory address pool using a last in first out operation;
writing released memory addresses into the memory address pool; and
adjusting a position of the memory address pointer upon a read or a write operation from the memory address pool; and
wherein when the release of the released memory address occurs in the same clock cycle as the request for the available address, the method further comprises;
passing off the released memory addresses in place of the available memory addresses.
6 Assignments
0 Petitions
Accused Products
Abstract
The present invention is related to a method and apparatus for managing memory in a network switch, wherein the memory includes the steps of providing a memory, wherein the memory includes a plurality of memory locations configured to store data therein and providing a memory address pool having a plurality of available memory addresses arranged therein, wherein each of the plurality of memory addresses corresponds to a specific memory location. The method further includes the steps of providing a memory address pointer, wherein the memory address pointer indicates a next available memory address in the memory address pool, and reading available memory addresses from the memory address pool using a last in first out operation. The method also includes writing released memory addresses into the memory address pool, adjusting a position of the memory address pointer upon a read or a write operation from the memory address pool.
-
Citations
19 Claims
-
1. A method for managing memory in a network switch, said method comprising the steps of:
-
providing a memory, wherein the memory includes a plurality of memory locations configured to store data therein;
providing a memory address pool having a plurality of available memory addresses arranged therein, wherein each of the plurality of memory addresses corresponds to a specific memory location; and
providing a memory address pointer, wherein the memory address pointer indicates a next available memory address in the memory address pool;
wherein when a release of a released memory address does not occur in a same clock cycle as a request for an available address, the method further comprises;
reading available memory addresses from the memory address pool using a last in first out operation;
writing released memory addresses into the memory address pool; and
adjusting a position of the memory address pointer upon a read or a write operation from the memory address pool; and
wherein when the release of the released memory address occurs in the same clock cycle as the request for the available address, the method further comprises;
passing off the released memory addresses in place of the available memory addresses. - View Dependent Claims (2)
-
-
3. A method for managing memory in a network switch, said method comprising the steps of:
-
receiving a request from a module for a next available memory address in a first clock cycle, comprising providing an address pointer for indicating the next available memory address in a memory address pool, wherein the address pointer releases and address in a last-in first-out operation;
receiving a released memory address in the first clock cycle; and
passing off the released memory address to the module requesting the next available memory address in place of the next available memory addresses in a second clock cycle, which is a next clock cycle after the first clock cycle. - View Dependent Claims (4)
-
-
5. A method for managing memory, said method comprising the steps of:
-
providing a memory having a predetermined number of memory storage locations therein;
providing a predetermined number of address in a stack, each of the predetermined number of addresses corresponding to a unique memory storage location; and
providing an address pointer for indicating a next available address to be used from the predetermined number of addresses in the stack, wherein the address pointer releases and address in a last-in first-out operation;
wherein the method further comprises a step of passing off an address released back to the stack to a request for an available address in place of a next available memory address when a release of an address back to the stack occurs in the same clock cycle as the request for an available address. - View Dependent Claims (6)
-
-
7. An apparatus for managing memory in a network switch, said apparatus comprising:
-
a memory address pool having a plurality of memory addresses, each of said plurality of memory addresses corresponding to an individual memory location in a memory; and
a memory controller in connection with said memory and said memory address pool, wherein said memory controller manages an address pointer for indicating a next available memory address in said memory address pool and is configured to pass off the released memory address in place of the available memory address upon a request for the available memory address in the same clock cycle. - View Dependent Claims (8, 9, 10, 11)
-
-
12. An apparatus for managing memory in a network switch, said apparatus comprising:
-
a memory address pool in connection with said memory, said memory address pool having a predetermined number of memory addresses therein, each of said predetermined number of memory addresses corresponding to an individual memory location in the memory; and
a memory controller in connection with said memory and said memory address pool, wherein said memory controller passes off a released memory address to a request for an available memory address in place of the available memory address when the request for said available memory address is received during the same clock cycle as said released memory address is released. - View Dependent Claims (13, 14, 15, 16, 17, 18)
-
-
19. An apparatus for managing memory in a network switch, said apparatus comprising:
-
a memory, wherein the memory includes a plurality of memory locations configured to store data therein;
a memory address pool having a plurality of available memory addresses arranged therein, wherein each of the plurality of memory addresses corresponds to a specific memory location;
means for managing a memory address pointer, wherein the memory address pointer indicates a next available memory address in the memory address pool;
means for reading available memory addresses from the memory address pool using a last in first out operation;
means for writing released memory addresses into the memory address pool; and
means for adjusting a position of the memory address pointer upon a read or a write operation from the memory address pool, wherein said means for reading and said means for writing are configured to pass off an available memory address in place of a next available memory address when a request to read an address is received during the same clock cycle as a request to write an address.
-
Specification