PandA-2024.02
FPAssign.cpp
Go to the documentation of this file.
1 /*
2  *
3  * _/_/_/ _/_/ _/ _/ _/_/_/ _/_/
4  * _/ _/ _/ _/ _/_/ _/ _/ _/ _/ _/
5  * _/_/_/ _/_/_/_/ _/ _/_/ _/ _/ _/_/_/_/
6  * _/ _/ _/ _/ _/ _/ _/ _/ _/
7  * _/ _/ _/ _/ _/ _/_/_/ _/ _/
8  *
9  * ***********************************************
10  * PandA Project
11  * URL: http://panda.dei.polimi.it
12  * Politecnico di Milano - DEIB
13  * System Architectures Group
14  * ***********************************************
15  * Copyright (C) 2004-2024 Politecnico di Milano
16  *
17  * This file is part of the PandA framework.
18  *
19  * The PandA framework is free software; you can redistribute it and/or modify
20  * it under the terms of the GNU General Public License as published by
21  * the Free Software Foundation; either version 3 of the License, or
22  * (at your option) any later version.
23  *
24  * This program is distributed in the hope that it will be useful,
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27  * GNU General Public License for more details.
28  *
29  * You should have received a copy of the GNU General Public License
30  * along with this program. If not, see <http://www.gnu.org/licenses/>.
31  *
32  */
43 #include "config_SKIP_WARNING_SECTIONS.hpp"
45 
46 #if SKIP_WARNING_SECTIONS
47 #pragma GCC diagnostic ignored "-Wshadow"
48 #pragma GCC diagnostic ignored "-Wsign-conversion"
49 #endif
50 
51 #include <cmath>
52 #include <cstring>
53 #include <iosfwd>
54 #include <sstream>
55 #include <vector>
56 
57 #include <cstddef>
58 #include <gmp.h>
59 
60 #include "utils.hpp"
61 #include <gmpxx.h>
62 
63 #include "FPAssign.hpp"
64 
65 #include "custom_map.hpp"
66 #include <cmath>
67 #include <cstdlib>
68 #include <iomanip>
69 #include <list>
70 #include <locale>
71 #include <sstream>
72 #include <string>
73 #include <vector>
74 
75 #include <cstdio>
76 #include <mpfr.h>
77 
78 using namespace std;
79 
80 namespace flopoco
81 {
82  extern vector<Operator*> oplist;
83 
84 #define DEBUGVHDL 0
85 
86  FPAssign::FPAssign(Target* _target, int wE, int wF) : Operator(_target)
87  {
88  ostringstream name;
89 
90  name << "FPAssign_" << wE << "_" << wF;
91  setName(name.str());
92 
93  setCopyrightString("Fabrizio Ferrandi (2011-2018)");
94 
95  /* Set up the IO signals */
96 
97  addFPInput("X", wE, wF);
98  addFPOutput("R", wE, wF);
99 
100  /* VHDL code description */
101  vhdl << tab << "R <= X;" << endl;
102  }
103 
104  FPAssign::~FPAssign() = default;
105 
106  void FPAssign::emulate(TestCase*)
107  {
108  // TODO
109  }
110 
112  {
113  }
114 
115 } // namespace flopoco
Forward declarations of FloPoCo classes.
void buildStandardTestCases(TestCaseList *tcl) override
Definition: FPAssign.cpp:111
ub1 tab[]
Definition of hash function for EdgeDescriptor.
Definition: graph.hpp:1321
redefinition of map to manage ordered/unordered structures
FPAssign module for flopoco.
void emulate(TestCase *tc) override
Definition: FPAssign.cpp:106
~FPAssign() override
destructor
vector< Operator * > oplist
Definition: FPge_expr.cpp:88

Generated on Mon Feb 12 2024 13:02:56 for PandA-2024.02 by doxygen 1.8.13