torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::placer::PlacerHeuristicBase Class Reference

Simulated annealing algorithm class. More...

#include <PlacerHeuristicBase.hpp>

+ Inheritance diagram for torc::placer::PlacerHeuristicBase:
+ Collaboration diagram for torc::placer::PlacerHeuristicBase:

Public Member Functions

 PlacerHeuristicBase (DeviceWrapper &inDevice, DesignSharedPtr inDesign)
 
 ~PlacerHeuristicBase ()
 
uint32 getMovesPerTemperature ()
 
uint32 getInitialTemperature ()
 
uint32 updateTemperature ()
 
void updateCostFull ()
 
void updateCostRemovePair ()
 
void updateCostAddPair ()
 

Protected Types

typedef architecture::DDB DDB
 
typedef boost::uint32_t uint32
 
typedef
torc::physical::DesignSharedPtr 
DesignSharedPtr
 

Protected Attributes

DeviceWrappermDevice
 
DesignSharedPtr mDesign
 
uint32 mMovesPerTemperature
 
uint32 mInitialTemperature
 

Detailed Description

Simulated annealing algorithm class.

Definition at line 30 of file PlacerHeuristicBase.hpp.

Member Typedef Documentation

typedef boost::uint32_t torc::placer::PlacerHeuristicBase::uint32
protected

Definition at line 34 of file PlacerHeuristicBase.hpp.

Constructor & Destructor Documentation

torc::placer::PlacerHeuristicBase::PlacerHeuristicBase ( DeviceWrapper inDevice,
DesignSharedPtr  inDesign 
)
inline

Definition at line 50 of file PlacerHeuristicBase.hpp.

51  : mDevice(inDevice), mDesign(inDesign),
53 
54  // crawl the design to extract RPMS and create corresponding site types.
55  /*InstanceSharedPtrVector::iterator p = mDesign->instancesBegin();
56  InstanceSharedPtrVector::iterator e = mDesign->instancesEnd();
57  for ( ; p != e; p++) {
58  InstanceSharedPtr instance = *p;
59  uint32 typeIndex = mDevice.mTypeMapping.getTypeIndex(instance->getType());
60  instance->setAnnotation(ePlacerInstanceTypeIndex, typeIndex);
61 
62  mAllInstances.push_back(instance);
63  mAllInstancesByType[typeIndex].push_back(instance);
64  }*/
65 
66 
67 
68  }
torc::placer::PlacerHeuristicBase::~PlacerHeuristicBase ( )
inline

Definition at line 70 of file PlacerHeuristicBase.hpp.

70 {}

Member Function Documentation

uint32 torc::placer::PlacerHeuristicBase::getInitialTemperature ( )
inline

Definition at line 73 of file PlacerHeuristicBase.hpp.

+ Here is the caller graph for this function:

uint32 torc::placer::PlacerHeuristicBase::getMovesPerTemperature ( )
inline

Definition at line 72 of file PlacerHeuristicBase.hpp.

+ Here is the caller graph for this function:

void torc::placer::PlacerHeuristicBase::updateCostAddPair ( )
inline

Definition at line 78 of file PlacerHeuristicBase.hpp.

78 {} // add a pair of instances from cost
void torc::placer::PlacerHeuristicBase::updateCostFull ( )
inline

Definition at line 76 of file PlacerHeuristicBase.hpp.

76 {}
void torc::placer::PlacerHeuristicBase::updateCostRemovePair ( )
inline

Definition at line 77 of file PlacerHeuristicBase.hpp.

77 {} // remove a pair of instance from cost
uint32 torc::placer::PlacerHeuristicBase::updateTemperature ( )
inline

Definition at line 74 of file PlacerHeuristicBase.hpp.

74 { return 0; }

Field Documentation

DesignSharedPtr torc::placer::PlacerHeuristicBase::mDesign
protected

Definition at line 38 of file PlacerHeuristicBase.hpp.

DeviceWrapper& torc::placer::PlacerHeuristicBase::mDevice
protected

Definition at line 37 of file PlacerHeuristicBase.hpp.

uint32 torc::placer::PlacerHeuristicBase::mInitialTemperature
protected

Definition at line 41 of file PlacerHeuristicBase.hpp.

uint32 torc::placer::PlacerHeuristicBase::mMovesPerTemperature
protected

Definition at line 40 of file PlacerHeuristicBase.hpp.


The documentation for this class was generated from the following file: