46namespace branch_prediction
51 numThreads(params.numThreads),
58 : statistics::
Group(parent),
59 ADD_STAT(lookups, statistics::units::Count::get(),
60 "Number of BTB lookups"),
61 ADD_STAT(misses, statistics::units::Count::get(),
62 "Number of BTB misses"),
63 ADD_STAT(updates, statistics::units::Count::get(),
64 "Number of BTB updates"),
65 ADD_STAT(mispredict, statistics::units::Count::get(),
66 "Number of BTB mispredictions. "
67 "No target found or target wrong."),
68 ADD_STAT(evictions, statistics::units::Count::get(),
69 "Number of BTB evictions")
71 using namespace statistics;
73 .
init(enums::Num_BranchType)
77 .
init(enums::Num_BranchType)
81 .
init(enums::Num_BranchType)
85 .
init(enums::Num_BranchType)
90 for (
int i = 0;
i < enums::Num_BranchType;
i++) {
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
BranchTargetBuffer(const Params ¶ms)
BranchTargetBufferParams Params
Derived & subname(off_type index, const std::string &name)
Set the subfield name for the given index, and marks this stat to print at the end of simulation.
Derived & flags(Flags _flags)
Set the flags and marks this stat to print at the end of simulation.
Derived & init(size_type size)
Set this vector to have the given size.
#define ADD_STAT(n,...)
Convenience macro to add a stat to a statistics group.
const FlagsType pdf
Print the percent of the total that this entry represents.
const FlagsType nozero
Don't print if this is zero.
const FlagsType total
Print the total.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
statistics::Vector misses
statistics::Vector mispredict
statistics::Vector lookups
statistics::Scalar evictions
statistics::Vector updates
BranchTargetBufferStats(statistics::Group *parent)