Bitstream Interpretation Library (BIL)  0.1
DeviceCfgDbFiller.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 #ifndef BIL_DEVICECFGDBFILLER_HPP
8 #define BIL_DEVICECFGDBFILLER_HPP
9 
10 #include <map>
12 
13 
14 namespace bil {
15 
16  class Device;
17  class TileType;
18 
19 
28  public:
29 
30  /**********************************************************************/
31  /* DATABASE FILLING */
32  /**********************************************************************/
33 
39  void initDeviceDb(DeviceCfgDb& deviceDb, const Device& device);
40 
47  void initTileTypeDb(TileTypeCfgDb& tileTypeDb, const TileType& tileType, size_t tileTypeIndex);
48 
49 
50  private:
51 
52  PIPControlSet& addPIPControlSet(size_t endWireIndex);
53  void collapsePIPControlSets();
54 
55 
56  PIPControlSets* m_pipControlSets;
57  typedef std::map<size_t, size_t> pipControlSetMap_t;
58  pipControlSetMap_t m_pipControlSetMap;
59 
60  };
61 
62 }
63 
64 #endif