Bitstream Interpretation Library (BIL)  0.1
DeviceCfgDbStats.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 #ifndef BIL_DEVICECFGDBSTATS_HPP
8 #define BIL_DEVICECFGDBSTATS_HPP
9 
10 #include <ostream>
12 #include <xdlrc/model/Device.hpp>
13 
14 
15 namespace bil {
16 
21  public:
22 
29  void printStats(const DeviceCfgDb& db, const Device& device, std::ostream& outStream);
30 
31 
32  private:
33 
34  void printTileType(const TileTypeCfgDb& db, const TileType& tileType);
35  void printPIPControlSet(const PIPControlSet& cs, size_t csIndex, const Wires& wires, const PIPs& pips);
36  void printPIPCounts(size_t indent, size_t total, size_t isolated, size_t zero, size_t notIsolated);
37 
38  std::ostream* m_outputStream;
39 
40  size_t m_devicePIPCount;
41  size_t m_deviceIsolatedPIPCount;
42  size_t m_deviceZeroPIPCount;
43  size_t m_deviceNotIsolatedPIPCount;
44 
45  size_t m_tileTypePIPCount;
46  size_t m_tileTypeIsolatedPIPCount;
47  size_t m_tileTypeZeroPIPCount;
48  size_t m_tileTypeNotIsolatedPIPCount;
49 
50  };
51 
52 }
53 
54 #endif