gem5  v20.1.0.0
multiperspective_perceptron_64KB.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  * - 64KB version
38  */
39 
41 
43  const MultiperspectivePerceptron64KBParams *p)
45 {
46 }
47 
48 void
50  addSpec(new ACYCLIC(10, -1, -1, 1.0, 0, 6, *this));
51  addSpec(new BLURRYPATH(10, 7, -1, 1.0, 0, 6, *this));
52  addSpec(new GHIST(0, 19, 1.3125, 0, 6, *this));
53  addSpec(new GHIST(0, 65, 0.85, 0, 6, *this));
54  addSpec(new GHIST(111, 222, 1.0, 0, 6, *this));
55  addSpec(new GHIST(115, 206, 1.0, 0, 6, *this));
56  addSpec(new GHIST(190, 336, 1.0, 0, 6, *this));
57  addSpec(new GHIST(21, 64, 1.0, 0, 6, *this));
58  addSpec(new GHIST(48, 119, 1.0, 0, 6, *this));
59  addSpec(new GHIST(67, 203, 0.75, 0, 6, *this));
60  addSpec(new GHIST(75, 150, 1.0, 0, 6, *this));
61  addSpec(new GHISTMODPATH(1, 5, 4, 1.45, 1913, 6, *this));
62  addSpec(new GHISTMODPATH(3, 13, 1, 1.0, 0, 6, *this));
63  addSpec(new GHISTPATH(105, 4, 0, 1.0, 0, 6, *this));
64  addSpec(new GHISTPATH(11, 2, -1, 1.25, 0, 6, *this));
65  addSpec(new GHISTPATH(15, 4, -1, 1.125, 0, 6, *this));
66  addSpec(new GHISTPATH(23, 4, -1, 1.0, 0, 6, *this));
67  addSpec(new GHISTPATH(31, 1, -1, 1.0, 0, 6, *this));
68  addSpec(new GHISTPATH(32, 2, -1, 1.0, 0, 6, *this));
69  addSpec(new GHISTPATH(36, 4, -1, 1.0, 0, 6, *this));
70  addSpec(new GHISTPATH(51, 1, 0, 1.0, 0, 6, *this));
71  addSpec(new GHISTPATH(7, 1, -1, 1.5, 0, 6, *this));
72  addSpec(new GHISTPATH(72, 1, -1, 1.0, 0, 6, *this));
73  addSpec(new GHISTPATH(86, 4, 0, 1.0, 0, 6, *this));
74  addSpec(new IMLI(1, 1.8125, 0, 6, *this));
75  addSpec(new IMLI(4, 1.78125, 1536, 6, *this));
76  addSpec(new LOCAL(-1, 1.0, 1024, 6, *this));
77  addSpec(new LOCAL(-1, 2.0, 3467, 6, *this));
78  addSpec(new MODHIST(1, 16, 0.9375, 0, 6, *this));
79  addSpec(new MODPATH(3, 20, 1, 1.0, 0, 6, *this));
80  addSpec(new PATH(13, 2, -1, 1.4375, 0, 6, *this));
81  addSpec(new PATH(27, 5, -1, 1.0, 0, 6, *this));
82  addSpec(new RECENCY(10, 3, -1, 0.55, 1024, 6, *this));
83  addSpec(new RECENCY(14, 4, -1, 1.3125, 0, 6, *this));
84  addSpec(new RECENCYPOS(31, 1.5, 0, 6, *this));
85  addSpec(new SGHISTPATH(1, 2, 5, 1.25, 768, 6, *this));
86  addSpec(new SGHISTPATH(1, 5, 2, 1.3125, 972, 6, *this));
87 }
88 
90 MultiperspectivePerceptron64KBParams::create()
91 {
92  return new MultiperspectivePerceptron64KB(this);
93 }
MultiperspectivePerceptron::GHISTMODPATH
Definition: multiperspective_perceptron.hh:856
MultiperspectivePerceptron::ACYCLIC
Definition: multiperspective_perceptron.hh:534
MultiperspectivePerceptron::addSpec
void addSpec(HistorySpec *spec)
Add a table spec to the prefetcher.
Definition: multiperspective_perceptron.hh:476
MultiperspectivePerceptron::RECENCY
Definition: multiperspective_perceptron.hh:626
MultiperspectivePerceptron::IMLI
Definition: multiperspective_perceptron.hh:668
MultiperspectivePerceptron::LOCAL
Definition: multiperspective_perceptron.hh:735
multiperspective_perceptron_64KB.hh
MultiperspectivePerceptron::MODHIST
Definition: multiperspective_perceptron.hh:582
MultiperspectivePerceptron::GHISTPATH
Definition: multiperspective_perceptron.hh:784
MultiperspectivePerceptron::MODPATH
Definition: multiperspective_perceptron.hh:757
MultiperspectivePerceptron::RECENCYPOS
Definition: multiperspective_perceptron.hh:934
MultiperspectivePerceptron::GHIST
Available features.
Definition: multiperspective_perceptron.hh:483
MultiperspectivePerceptron::BLURRYPATH
Definition: multiperspective_perceptron.hh:888
MultiperspectivePerceptron::SGHISTPATH
Definition: multiperspective_perceptron.hh:975
MultiperspectivePerceptron64KB::createSpecs
void createSpecs() override
Creates the tables of the predictor.
Definition: multiperspective_perceptron_64KB.cc:49
MultiperspectivePerceptron::PATH
Definition: multiperspective_perceptron.hh:689
MipsISA::p
Bitfield< 0 > p
Definition: pra_constants.hh:323
MultiperspectivePerceptron
Definition: multiperspective_perceptron.hh:48
MultiperspectivePerceptron64KB::MultiperspectivePerceptron64KB
MultiperspectivePerceptron64KB(const MultiperspectivePerceptron64KBParams *p)
Definition: multiperspective_perceptron_64KB.cc:42
MultiperspectivePerceptron64KB
Definition: multiperspective_perceptron_64KB.hh:46

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