gem5  v21.2.0.0
multiperspective_perceptron_8KB.cc
Go to the documentation of this file.
1 /*
2  * Copyright 2019 Texas A&M University
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are met:
6  *
7  * 1. Redistributions of source code must retain the above copyright notice,
8  * this list of conditions and the following disclaimer.
9  *
10  * 2. Redistributions in binary form must reproduce the above copyright notice,
11  * this list of conditions and the following disclaimer in the documentation
12  * and/or other materials provided with the distribution.
13  *
14  * 3. Neither the name of the copyright holder nor the names of its
15  * contributors may be used to endorse or promote products derived from this
16  * software without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22  * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29  *
30  * Author: Daniel A. Jiménez
31  * Adapted to gem5 by: Javier Bueno Hedo
32  *
33  */
34 
35 /*
36  * Multiperspective Perceptron Predictor (by Daniel A. Jiménez)
37  * - 8KB version
38  */
39 
41 
42 namespace gem5
43 {
44 
45 namespace branch_prediction
46 {
47 
49  const MultiperspectivePerceptron8KBParams &p)
51 {
52 }
53 
54 void
56  addSpec(new BIAS(2.40625, 0, 6, *this));
57  addSpec(new GHIST(0, 19, 1.4375, 0, 6, *this));
58  addSpec(new GHIST(0, 65, 1.0, 0, 6, *this));
59  addSpec(new GHIST(21, 64, 1.0, 0, 6, *this));
60  addSpec(new GHIST(75, 150, 1.0625, 0, 6, *this));
61  addSpec(new GHISTMODPATH(0, 7, 3, 1.625, 0, 6, *this));
62  addSpec(new GHISTPATH(11, 2, -1, 1.25, 0, 6, *this));
63  addSpec(new GHISTPATH(15, 4, -1, 1.125, 0, 6, *this));
64  addSpec(new GHISTPATH(31, 1, -1, 1.40625, 0, 6, *this));
65  addSpec(new GHISTPATH(7, 1, -1, 1.5, 600, 6, *this));
66  addSpec(new IMLI(4, 1.28125, 375, 6, *this));
67  addSpec(new LOCAL(-1, 1.5625, 512, 6, *this));
68  addSpec(new RECENCY(14, 4, -1, 1.25, 0, 6, *this));
69  addSpec(new RECENCYPOS(31, 1.875, 0, 6, *this));
70  addSpec(new SGHISTPATH(0, 4, 3, 1.65625, 0, 6, *this));
71  addSpec(new SGHISTPATH(1, 2, 5, 2.53125, 0, 5, *this));
72 }
73 
74 } // namespace branch_prediction
75 } // namespace gem5
gem5::branch_prediction::MultiperspectivePerceptron::SGHISTPATH
Definition: multiperspective_perceptron.hh:999
gem5::branch_prediction::MultiperspectivePerceptron::GHISTPATH
Definition: multiperspective_perceptron.hh:804
gem5::branch_prediction::MultiperspectivePerceptron8KB::createSpecs
void createSpecs() override
Creates the tables of the predictor.
Definition: multiperspective_perceptron_8KB.cc:55
gem5::branch_prediction::MultiperspectivePerceptron::GHISTMODPATH
Definition: multiperspective_perceptron.hh:877
gem5::branch_prediction::MultiperspectivePerceptron::GHIST
Available features.
Definition: multiperspective_perceptron.hh:494
multiperspective_perceptron_8KB.hh
gem5::branch_prediction::MultiperspectivePerceptron8KB::MultiperspectivePerceptron8KB
MultiperspectivePerceptron8KB(const MultiperspectivePerceptron8KBParams &p)
Definition: multiperspective_perceptron_8KB.cc:48
gem5::branch_prediction::MultiperspectivePerceptron::addSpec
void addSpec(HistorySpec *spec)
Add a table spec to the prefetcher.
Definition: multiperspective_perceptron.hh:487
gem5::branch_prediction::MultiperspectivePerceptron
Definition: multiperspective_perceptron.hh:54
gem5::MipsISA::p
Bitfield< 0 > p
Definition: pra_constants.hh:326
gem5::branch_prediction::MultiperspectivePerceptron::IMLI
Definition: multiperspective_perceptron.hh:684
gem5::branch_prediction::MultiperspectivePerceptron::RECENCYPOS
Definition: multiperspective_perceptron.hh:957
gem5::branch_prediction::MultiperspectivePerceptron::LOCAL
Definition: multiperspective_perceptron.hh:753
gem5::branch_prediction::MultiperspectivePerceptron::BIAS
Definition: multiperspective_perceptron.hh:625
gem5
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Definition: tlb.cc:60
gem5::branch_prediction::MultiperspectivePerceptron::RECENCY
Definition: multiperspective_perceptron.hh:641

Generated on Tue Dec 21 2021 11:34:26 for gem5 by doxygen 1.8.17