# US 2018/0323789 A1 · Hierarchical statisically multiplexed counters and a method thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2018/0323789 A1
- Document ID: US20180323789A1
- Status: Published application
- Kind: A1
- Application number: 16/019,780
- Filed: 2018-06-27
- Published: 2018-11-08
- Earliest claimed: 2014-06-11
- Assignees: Cavium, Inc.
- Applicants: Cavium, Inc.
- Inventors: Weihuang Wang; Gerald Schmidt; Srinath Atluri; Weinan Ma; Shrikant Sundaram Lnu
- Web page: https://patentgrep.com/patent/US20180323789A1

## CPC

- H03K 21/026: {comprising logic circuits}
- H03K 23/64: with a base or radix other than a power of two (H03K23/40 - H03K23/62 take precedence)
- H04L 47/62: characterised by scheduling criteria
- H04L 49/9084: {Reactions to storage capacity overflow}
- H03K 21/00: Details of pulse counters or frequency dividers
- H03K 21/10: comprising logic circuits
- H03K 23/00: Pulse counters comprising counting chains; Frequency dividers comprising counting chains (H03K29/00 takes precedence)
- H03K 23/004: {Counters counting in a non-natural counting order, e.g. random counters}
- H03K 23/005: {using minimum change code, e.g. Gray Code}
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments of the present invention relate to an architecture that uses hierarchical statistically multiplexed counters to extend counter life by orders of magnitude. Each level includes statistically multiplexed counters. The statistically multiplexed counters includes P base counters and S subcounters, wherein the S subcounters are dynamically concatenated with the P base counters. When a row overflow in a level occurs, counters in a next level above are used to extend counter life. The hierarchical statistically multiplexed counters can be used with an overflow FIFO to further extend counter life.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

A method of updating a counter in a counter architecture that includes a hierarchy of levels of statistically multiplexed counters, the method comprising:
determining whether a corresponding row of the counter in a current level of the hierarchy of levels overflows;
based on the determination that the corresponding row in the current level does not overflow, processing each level below the current level by using a first routine and processing the current level by using a second routine; and
based on the determination that the corresponding row in the current level does overflow, determining whether a corresponding row of the counter in a next level above overflows;
based on the determination that the corresponding row of the counter in the next level above does not overflow, processing each level below the next level above by using the first routine and processing the next level above by using the second routine; and
based on the determination that the corresponding row of the counter in the next level above does overflow,
when the next level above is not the highest level in the hierarchy of levels, returning to the step of determining whether a corresponding row of the counter in a next level above overflows, and
when the next level above is the highest level in the hierarchy of levels, processing the next level above and each level below the next level above by using the first routine and updating an overflow queue.

### Claim 22 (depends on 21)

The method of claim 21, wherein the first routine includes incrementing the counter in the corresponding level and shrinking the counter in the corresponding level.

### Claim 23 (depends on 21)

The method of claim 21, wherein the second routine includes incrementing the counter in the corresponding level.

### Claim 24 (depends on 23)

The method of claim 23, wherein the incrementing the counter includes expanding a size of the counter in the corresponding level.

### Claim 25 (depends on 21)

The method of claim 21, wherein updating the overflow queue includes pushing a counter identifier of the counter and an overflow width into the overflow queue.

### Claim 26 (depends on 21)

The method of claim 21, wherein the overflow queue is a FIFO buffer.

### Claim 27 (depends on 21)

The method of claim 21, wherein the current level is the lowest level in the hierarchy of levels.

### Claim 28 (depends on 21)

The method of claim 21, further comprising:
processing data in the overflow queue;
identifying a wrap-around counter by the data in the overflow queue;
reading a value stored of the identified counter in each level; and
clearing the identified counter in each level.

### Claim at position 10

29-46. (canceled)

### Claim 47

A method of updating a counter in a counter architecture that includes a hierarchy of levels of statistically multiplexed counters, the method comprising:
determining a number of the hierarchy of levels having a corresponding row of the counter in the hierarchy of levels that overflows;
determining a highest level of the number of the hierarchy of levels that is the highest in the hierarchy; and
processing the highest level and each level of the hierarchy of levels below the highest level that using a first routine and processing a remainder of the hierarchy of the levels not a part of the number using a second routine.

### Claim 48 (depends on 47)

The method of claim 47, further comprising, when the highest level is the highest level in the hierarchy of levels, updating an overflow queue.

### Claim 49 (depends on 47)

The method of claim 47, wherein the first routine includes incrementing the counter in the corresponding level and shrinking the counter in the corresponding level.

### Claim 50 (depends on 47)

The method of claim 47, wherein the second routine includes incrementing the counter in the corresponding level.

### Claim 51 (depends on 49)

The method of claim 49, wherein the incrementing the counter includes expanding a size of the counter in the corresponding level.

### Claim 52 (depends on 48)

The method of claim 48, wherein updating the overflow queue includes pushing a counter identifier of the counter and an overflow width into the overflow queue.

### Claim 53 (depends on 47)

The method of claim 47, wherein the overflow queue is a FIFO buffer.

### Claim 55 (depends on 47)

The method of claim 47, further comprising:
processing data in the overflow queue;
identifying a wrap-around counter by the data in the overflow queue;
reading a value stored of the identified counter in each level; and
clearing the identified counter in each level.

### Claim 56

A method of updating a counter in a counter architecture that includes a hierarchy of levels of statistically multiplexed counters, the method comprising:
determining a number of the hierarchy of levels having a corresponding row of the counter in the hierarchy of levels that overflows;
determining a highest level of the number of the hierarchy of levels that is the highest in the hierarchy;
when the highest level is the highest level in the hierarchy of levels, updating an overflow queue;
processing data in the overflow queue;
identifying a wrap-around counter by the data in the overflow queue;
reading a value stored of the identified counter in each level; and
clearing the identified counter in each level.

### Claim 57 (depends on 56)

The method of claim 56, wherein updating the overflow queue includes pushing a counter identifier of the counter and an overflow width into the overflow queue.

### Claim 58 (depends on 56)

The method of claim 56, further comprising processing the highest level and each level of the hierarchy of levels below the highest level that using a first routine and processing a remainder of the hierarchy of the levels not a part of the number using a second routine.

### Claim 59 (depends on 58)

The method of claim 58, wherein the first routine includes incrementing the counter in the corresponding level and shrinking the counter in the corresponding level and the second routine includes incrementing the counter in the corresponding level.
