Searched refs:counter (Results 1 - 25 of 43) sorted by relevance

12

/gem5/src/base/
H A Dsat_counter.hh53 * Implements an n bit saturating counter and provides methods to
63 * Constructor for the counter. The explicit keyword is used to make
64 * sure the user does not assign a number to the counter thinking it
65 * will be used as a counter value when it is in fact used as the number
68 * @param bits How many bits the counter will have.
69 * @param initial_val Starting value for the counter.
73 counter(initial_val)
76 "Number of bits exceeds counter size");
78 "Saturating counter's Initial value exceeds max value.");
84 counter(othe
253 uint8_t counter; member in class:SatCounter
[all...]
H A Dsat_counter.test.cc44 SatCounter counter(bits);
47 counter++;
50 ASSERT_EQ(counter, max_value);
59 SatCounter counter(bits);
62 counter--;
65 ASSERT_EQ(counter, 0);
69 * Test initializing the counter with a value, updating it and then resetting.
75 SatCounter counter(bits, initial_value);
76 ASSERT_EQ(counter, initial_value);
77 counter
[all...]
/gem5/src/systemc/tests/systemc/misc/cae_test/general/arith/subtract/bitwidth/
H A Ddisplay.cpp43 int counter = 0; local
44 while(counter<100){
48 counter++;
/gem5/src/systemc/tests/systemc/misc/cae_test/general/arith/subtract/decrement/
H A Ddisplay.cpp43 int counter = 0; local
45 while(counter++<100){
/gem5/src/systemc/tests/systemc/misc/user_guide/chpt3.2/
H A Dcounter.cpp22 counter.cpp --
38 /* File containing functionality of counter */
40 #include "counter.h"
42 void counter::entry()
H A Dcounter.h22 counter.h --
38 /* Header file for the counter that counts number of strings found */
42 SC_MODULE( counter )
44 SC_HAS_PROCESS( counter );
52 counter(sc_module_name NAME, function
H A Dmain.cpp40 #include "counter.h"
52 counter cnt("COUNTER", clk, found);
/gem5/src/systemc/tests/systemc/misc/cae_test/general/arith/divide/datatypes/
H A Ddisplay.cpp43 int counter = 0; local
46 while(counter<100){
50 counter++;
/gem5/src/systemc/tests/systemc/misc/user_guide/chpt3.1/
H A Dcounter.h22 counter.h --
38 /* Header file for the counter that counts number of strings found */
42 SC_MODULE( counter )
44 SC_HAS_PROCESS( counter );
52 counter(sc_module_name NAME, function
H A Dcounter.cpp22 counter.cpp --
38 /* File containing functionality of counter */
40 #include "counter.h"
42 void counter::entry()
/gem5/src/mem/cache/prefetch/
H A Dsignature_path_v2.cc82 if (sig.counter == 0) return 0.0;
84 (((double) lookahead.counter) / sig.counter);
91 if (sig.counter == 0) return 0.0;
92 return ((double) entry.counter) / sig.counter;
99 if (pattern_entry.counter.isSaturated()) {
100 pattern_entry.counter >>= 1;
102 entry.counter >>= 1;
105 if (pstride_entry.counter
[all...]
H A Dirregular_stream_buffer.hh70 /** Address Mapping entry, holds an address and a confidence counter */
73 SatCounter counter; member in struct:IrregularStreamBufferPrefetcher::AddressMapping
74 AddressMapping(unsigned bits) : address(0), counter(bits)
91 entry.counter.reset();
H A Dspatio_temporal_memory_streaming.hh77 /** 2-bit confidence counter */
78 SatCounter counter; member in struct:STeMSPrefetcher::ActiveGenerationTableEntry::SequenceEntry
83 SequenceEntry() : counter(2), offset(0), delta(0)
99 seq_entry.counter.reset();
125 // the corresponding counter, if not, add the offset to the array
127 if (seq_entry.counter > 0) {
129 seq_entry.counter++;
132 // If the counter is 0 it means that this position is not
134 seq_entry.counter++;
H A Dsignature_path.hh84 /** A stride entry with its counter */
89 /** Saturating counter */
90 SatCounter counter; member in struct:SignaturePathPrefetcher::PatternStrideEntry
91 PatternStrideEntry(unsigned bits) : stride(0), counter(bits)
94 /** Pattern entry data type, a set of stride and counter entries */
99 /** use counter, used by SPPv2 */
100 SatCounter counter; member in struct:SignaturePathPrefetcher::PatternEntry
102 : strideEntries(num_strides, counter_bits), counter(counter_bits)
109 entry.counter.reset();
112 counter
[all...]
/gem5/src/systemc/tests/systemc/misc/cae_test/general/arith/subtract/datatypes/
H A Ddisplay.cpp43 int counter = 0; local
44 while(counter++<100){
/gem5/src/systemc/tests/systemc/misc/cae_test/general/arith/subtract/sharing/
H A Ddisplay.cpp43 int counter = 0; local
44 while(counter++<100){
/gem5/src/systemc/tests/systemc/misc/cae_test/general/bitwise/and/datatypes/
H A Ddisplay.cpp43 int counter = 0; local
44 while(counter++<40){
/gem5/src/systemc/tests/systemc/misc/cae_test/general/bitwise/not/datatypes/
H A Ddisplay.cpp43 int counter = 0; local
44 while(counter++<40){
/gem5/src/systemc/tests/systemc/misc/cae_test/general/bitwise/or/datatypes/
H A Ddisplay.cpp43 int counter = 0; local
44 while(counter++<100){
/gem5/src/systemc/tests/systemc/misc/cae_test/general/bitwise/xor/datatypes/
H A Ddisplay.cpp43 int counter = 0; local
44 while(counter++<40){
/gem5/src/dev/
H A Dintel_8254_timer.cc44 counter[0] = counter0;
45 counter[1] = counter1;
46 counter[2] = counter2;
52 counter[0] = new Counter(this, name + ".counter0", 0);
53 counter[1] = new Counter(this, name + ".counter1", 1);
54 counter[2] = new Counter(this, name + ".counter2", 2);
66 counter[sel]->latchCount();
68 counter[sel]->setRW(data.rw);
69 counter[sel]->setMode(data.mode);
70 counter[se
[all...]
/gem5/src/systemc/tests/systemc/misc/cae_test/general/arith/addition/datatypes/
H A Dstimulus.cpp53 int counter = 0; local
62 while(counter<100){
79 counter++;
/gem5/src/systemc/tests/systemc/misc/cae_test/general/bitwise/shl/datatypes/
H A Dstimulus.cpp54 int counter = 0; local
63 while(counter<100){
80 counter++;
/gem5/src/systemc/tests/systemc/misc/cae_test/general/bitwise/shl/sharing/
H A Dstimulus.cpp54 int counter = 0; local
63 while(counter<100){
80 counter++;
/gem5/src/systemc/tests/systemc/misc/cae_test/general/bitwise/shr/sharing/
H A Dstimulus.cpp54 int counter = 0; local
63 while(counter<100){
80 counter++;

Completed in 19 milliseconds

12