torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PlacerHeuristicVirtex5.hpp
Go to the documentation of this file.
1 // Torc - Copyright 2011-2013 University of Southern California. All Rights Reserved.
2 // $HeadURL$
3 // $Id$
4 
5 // This program is free software: you can redistribute it and/or modify it under the terms of the
6 // GNU General Public License as published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
11 // the GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License along with this program. If
14 // not, see <http://www.gnu.org/licenses/>.
15 
16 /// \file
17 /// \brief Header for the Placer class.
18 
19 #ifndef TORC_PLACER_PLACERHEURISTICVIRTEX5_HPP
20 #define TORC_PLACER_PLACERHEURISTICVIRTEX5_HPP
21 
23 
24 namespace torc {
25 namespace placer {
26 
27  /// \brief Simulated annealing algorithm class.
29  protected:
30  //types
32  typedef boost::uint32_t uint32;
33 
34  DDB& mDB;
36 
39  //COOLING SCHEDULE
40  //MOVE SELECTION PROBABILTY FOR TYPES
41 
42  public:
43  // the heuristic may be the site mapping structure...
44  // heuristic should contain most of the numeric constants here
45  // probably functions for cooling schedule and such as well
46  // in fact, the heuristic may wrap the placement entirely... as we do in routing
47  PlacerHeuristicVirtex5(DDB& inDB, DesignSharedPtr inDesign) : mDB(inDB), mDesign(inDesign),
48  mMovesPerTemperature(1), mIntialTemperature(1) {
49 
50 
51 
52  //
53 
54 
55 
56 
57 
58  }
59 
61 
64  uint32 updateTemperature() { return 0; }
65 
66  void updateCostFull() {}
67  void updateCostRemovePair() {} // remove a pair of instance from cost
68  void updateCostAddPair() {} // add a pair of instances from cost
69 
70 
71  }; // class PlacerHeuristicVirtex5
72 } // namespace placer
73 } // namespace torc
74 
75 #endif // TORC_PLACER_PLACERHEURISTICVIRTEX5_HPP
torc::physical::DesignSharedPtr DesignSharedPtr
Simulated annealing algorithm class.
Device database, including complete wiring and logic support.
Definition: DDB.hpp:42
PlacerHeuristicVirtex5(DDB &inDB, DesignSharedPtr inDesign)
Header for the Placer class.
Simulated annealing algorithm class.