00001 // Torc - Copyright 2011 University of Southern California. All Rights Reserved. 00002 // $HeadURL: https://torc-isi.svn.sourceforge.net/svnroot/torc-isi/branches/staging/0.9/src/torc/placer/PlacerHeuristicVirtex5.hpp $ 00003 // $Id: PlacerHeuristicVirtex5.hpp 10 2011-10-12 18:40:16Z nsteiner $ 00004 00005 // This program is free software: you can redistribute it and/or modify it under the terms of the 00006 // GNU General Public License as published by the Free Software Foundation, either version 3 of the 00007 // License, or (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00010 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 00011 // the GNU General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU General Public License along with this program. If 00014 // not, see <http://www.gnu.org/licenses/>. 00015 00016 /// \file 00017 /// \brief Header for the Placer class. 00018 00019 #ifndef TORC_PLACER_PLACERHEURISTICVIRTEX5_HPP 00020 #define TORC_PLACER_PLACERHEURISTICVIRTEX5_HPP 00021 00022 #include "torc/placer/PlacerHeuristicBase.hpp" 00023 00024 namespace torc { 00025 namespace placer { 00026 00027 /// \brief Simulated annealing algorithm class. 00028 class PlacerHeuristicVirtex5 : PlacerHeuristicBase { 00029 protected: 00030 //types 00031 typedef architecture::DDB DDB; 00032 typedef boost::uint32_t uint32; 00033 00034 DDB& mDB; 00035 DesignSharedPtr mDesign; 00036 00037 uint32 mMovesPerTemperature; 00038 uint32 mInitialTemperature; 00039 //COOLING SCHEDULE 00040 //MOVE SELECTION PROBABILTY FOR TYPES 00041 00042 public: 00043 // the heuristic may be the site mapping structure... 00044 // heuristic should contain most of the numeric constants here 00045 // probably functions for cooling schedule and such as well 00046 // in fact, the heuristic may wrap the placement entirely... as we do in routing 00047 PlacerHeuristicVirtex5(DDB& inDB, DesignSharedPtr inDesign) : mDB(inDB), mDesign(inDesign), 00048 mMovesPerTemperature(1), mIntialTemperature(1) { 00049 00050 00051 00052 // 00053 00054 00055 00056 00057 00058 } 00059 00060 ~PlacerHeuristicBase() {} 00061 00062 uint32 getMovesPerTemperature() { return mMovesPerTemperature; } 00063 uint32 getInitialTemperature() { return mInitialTemperature; } 00064 uint32 updateTemperature() { return 0; } 00065 00066 void updateCostFull() {} 00067 void updateCostRemovePair() {} // remove a pair of instance from cost 00068 void updateCostAddPair() {} // add a pair of instances from cost 00069 00070 00071 }; // class PlacerHeuristicVirtex5 00072 } // namespace placer 00073 } // namespace torc 00074 00075 #endif // TORC_PLACER_PLACERHEURISTICVIRTEX5_HPP