Counter and counting method
AssigneeSanechips Technology Co., Ltd.
InventorJunjie Yin
Life of this patent
Estimating the term…
Abstract
A counter includes: a computing module (100) and N counting modules (101). Each counting module includes a plurality of counting spaces corresponding to different counting entries, and counting spaces of the same counting entry in different counting modules have the same address, wherein the counting module is arranged to provide a value for computing to the computing module in response to a counting application of a counting application source. The computing module is arranged to read values of the same counting entry in different counting modules and accumulate the read values to obtain a total count value of the counting entry, N being an integer not less than 1. Also disclosed is a counting method.
Claims14
A counter, comprising:
- a computing module and N counting modules, wherein each counting module corresponds to a counting application source and comprises a plurality of counting spaces corresponding to different counting entries, and counting spaces of the same counting entry in different counting modules having the same address, wherein
- the counting module is arranged to conduct counting in response to a counting application of a counting application source corresponding to the counting module and provide a value for computing to the computing module;
- the computing module is arranged to read values of the same counting entry in different counting modules and accumulatively compute the read values to obtain a total count value of the counting entry;
- N is an integer greater than 1;
- the counting module further comprises:
- L poll counting sub-modules, L being an integer not less than 2;
- and
- each poll counting sub-module is arranged to conduct counting in response to the counting application of the counting application source within a counting period of the poll counting sub-module, and respond to a read-write operation of a non-counting application source within a non-counting period of the poll counting sub-module.
A counting method, comprising:
- allocating a counting module for each counting application source, and allocating respective counting spaces for different counting entries in each counting module, counting spaces of the same counting entry in different counting modules having the same address, the method further comprising:
- conducting, by each counting module, counting in response to a counting application of a counting application source corresponding to the counting module;
- and
- reading values of the same counting entry in different counting modules, and accumulatively computing the read values to obtain a total count value of the counting entry;
- wherein the method further comprises:
- allocating L poll counting sub-modules for each counting module;
- and
- allowing each poll counting sub-module to conduct counting in response to the counting application of the counting application source within a counting period of the poll counting sub-module, and respond to a read-write operation of a non-counting application source within a non-counting period of the poll counting sub-module,
- wherein L is an integer not less than 2.
A counter, comprising:
- a processor;
- and
- a plurality of memories for storing instructions executed by the processor;
- each memory corresponding to a counting application source and comprising a plurality of counting spaces corresponding to different counting entries, and counting spaces of the same counting entry in different memories having the same address, wherein the processor is arranged to:
- conduct counting in response to a counting application of a counting application source corresponding to the memory and provide a value for computing;
- and
- read values of the same counting entry in different memories and accumulatively compute the read values to obtain a total count value of the counting entry;
- wherein the processor is further arranged to:
- allocate a plurality of poll counting sub-modules for each counting module;
- and
- allow each poll counting sub-module to conduct counting in response to the counting application of the counting application source within a counting period of the poll counting sub-module, and respond to a read-write operation of a non-counting application source within a non-counting period of the poll counting sub-module.
Dependencies are inferred from the claim text.