torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DeviceWrapper.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 DeviceWrapper class.
18 
19 #ifndef TORC_PLACER_DEVICEWRAPPER_HPP
20 #define TORC_PLACER_DEVICEWRAPPER_HPP
21 
24 
25 namespace torc {
26 namespace placer {
27 
28  /// \brief Wrapper of the device database for placing the design.
29 
30  class DeviceWrapper {
31  protected:
32  //types
35  typedef boost::uint32_t uint32;
36 
37  //typedef std::map<uint32, uint32> InstanceTypeToCandidateTypeMap;
38  typedef std::vector<uint32> InstanceTypeToCandidateTypeMap;
39 
41  typedef std::vector<const Site*> SitePtrVector;
42  typedef std::vector<SitePtrVector> SitePtrVectorVector;
43  typedef std::vector<SitePtrVectorVector> SitePtrVectorVectorVector;
44 
45  typedef std::set<Site*> SitePtrSet;
46  typedef std::vector<SitePtrSet> SitePtrSetVector;
47  typedef std::vector<SitePtrSetVector> SitePtrSetVectorVector;
48 
49  public:
50  DDB& mDB;
51  public:
52  const Sites& mSites;
54 
55 
56  public:
58  : mDB(inDB), mSites(inDB.getSites()), mTypeMapping(inMapping) {
59 
60  }
62 
63  }; // class DeviceWrapper
64 } // namespace placer
65 } // namespace torc
66 
67 #endif // TORC_PLACER_DEVICEWRAPPER_HPP
std::set< Site * > SitePtrSet
std::vector< const Site * > SitePtrVector
Device database, including complete wiring and logic support.
Definition: DDB.hpp:42
std::vector< SitePtrSet > SitePtrSetVector
Wrapper of the device database for placing the design.
std::vector< SitePtrVector > SitePtrVectorVector
Encapsulation of a device logic site.
Definition: Site.hpp:30
Site type and population data for the family and the device.
Definition: Sites.hpp:45
Placement mapping for legal instance types to site types.
Header for the Placement class.
Header for the DDB class.
std::vector< uint32 > InstanceTypeToCandidateTypeMap
PlacementSiteTypeMapping & mTypeMapping
std::vector< SitePtrSetVector > SitePtrSetVectorVector
std::vector< SitePtrVectorVector > SitePtrVectorVectorVector
architecture::Sites Sites
DeviceWrapper(DDB &inDB, PlacementSiteTypeMapping &inMapping)