gem5  v20.1.0.0
Public Member Functions | Public Attributes | List of all members
MultiperspectivePerceptron::HistorySpec Struct Referenceabstract

Base class to implement the predictor tables. More...

#include <multiperspective_perceptron.hh>

Inheritance diagram for MultiperspectivePerceptron::HistorySpec:
MultiperspectivePerceptron::ACYCLIC MultiperspectivePerceptron::BIAS MultiperspectivePerceptron::BLURRYPATH MultiperspectivePerceptron::GHIST MultiperspectivePerceptron::GHISTMODPATH MultiperspectivePerceptron::GHISTPATH MultiperspectivePerceptron::IMLI MultiperspectivePerceptron::LOCAL MultiperspectivePerceptron::MODHIST MultiperspectivePerceptron::MODPATH MultiperspectivePerceptron::PATH MultiperspectivePerceptron::RECENCY MultiperspectivePerceptron::RECENCYPOS MultiperspectivePerceptron::SGHISTPATH

Public Member Functions

 HistorySpec (int _p1, int _p2, int _p3, double _coeff, int _size, int _width, MultiperspectivePerceptron &_mpp)
 
virtual unsigned int getHash (ThreadID tid, Addr pc, Addr pc2, int t) const =0
 Gets the hash to index the table, using the pc of the branch, and the index of the table. More...
 
virtual void setBitRequirements () const
 Sets the size requirements of the table, used when initializing to set the proper size of the tables. More...
 

Public Attributes

const int p1
 First parameter. More...
 
const int p2
 Second parameter. More...
 
const int p3
 Third parameter. More...
 
const double coeff
 Coefficient of the feature, models the accuracy of the feature. More...
 
const int size
 Pre-assigned size in bits assigned to this feature. More...
 
const int width
 Width of the table in bits
More...
 
MultiperspectivePerceptronmpp
 Reference to the branch predictor class. More...
 

Detailed Description

Base class to implement the predictor tables.

Definition at line 216 of file multiperspective_perceptron.hh.

Constructor & Destructor Documentation

◆ HistorySpec()

MultiperspectivePerceptron::HistorySpec::HistorySpec ( int  _p1,
int  _p2,
int  _p3,
double  _coeff,
int  _size,
int  _width,
MultiperspectivePerceptron _mpp 
)
inline

Definition at line 232 of file multiperspective_perceptron.hh.

Member Function Documentation

◆ getHash()

virtual unsigned int MultiperspectivePerceptron::HistorySpec::getHash ( ThreadID  tid,
Addr  pc,
Addr  pc2,
int  t 
) const
pure virtual

◆ setBitRequirements()

virtual void MultiperspectivePerceptron::HistorySpec::setBitRequirements ( ) const
inlinevirtual

Member Data Documentation

◆ coeff

const double MultiperspectivePerceptron::HistorySpec::coeff

Coefficient of the feature, models the accuracy of the feature.

Definition at line 224 of file multiperspective_perceptron.hh.

Referenced by MultiperspectivePerceptron::computeOutput(), and MultiperspectivePerceptron::train().

◆ mpp

MultiperspectivePerceptron& MultiperspectivePerceptron::HistorySpec::mpp

◆ p1

const int MultiperspectivePerceptron::HistorySpec::p1

◆ p2

const int MultiperspectivePerceptron::HistorySpec::p2

◆ p3

const int MultiperspectivePerceptron::HistorySpec::p3

◆ size

const int MultiperspectivePerceptron::HistorySpec::size

Pre-assigned size in bits assigned to this feature.

Definition at line 226 of file multiperspective_perceptron.hh.

◆ width

const int MultiperspectivePerceptron::HistorySpec::width

Width of the table in bits

Definition at line 228 of file multiperspective_perceptron.hh.

Referenced by MultiperspectivePerceptron::computeOutput(), and MultiperspectivePerceptron::train().


The documentation for this struct was generated from the following file:

Generated on Wed Sep 30 2020 14:02:28 for gem5 by doxygen 1.8.17