diff options
| author | Mahmoud <[email protected]> | 2019-10-16 15:33:11 -0400 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2019-10-16 15:33:11 -0400 |
| commit | bce4e08d51e3f5817f174f639c56f34104b6efe1 (patch) | |
| tree | 74eeedd574b8bae822f653c125e14630f206ddab /src/gpgpu-sim/local_interconnect.h | |
| parent | 998bbc82176e1579c8500aa0c01bb00395da74dc (diff) | |
adding new stats, verbose, granting arbit in the local xbar
Diffstat (limited to 'src/gpgpu-sim/local_interconnect.h')
| -rw-r--r-- | src/gpgpu-sim/local_interconnect.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gpgpu-sim/local_interconnect.h b/src/gpgpu-sim/local_interconnect.h index a784da8..f431013 100644 --- a/src/gpgpu-sim/local_interconnect.h +++ b/src/gpgpu-sim/local_interconnect.h @@ -52,12 +52,14 @@ struct inct_config unsigned out_buffer_limit; unsigned subnets; Arbiteration_type arbiter_algo; + unsigned verbose; + unsigned grant_cycles; }; class xbar_router { public: - xbar_router(unsigned router_id, enum Interconnect_type m_type, unsigned n_shader, unsigned n_mem, unsigned m_in_buffer_limit, unsigned m_out_buffer_limit, enum Arbiteration_type m_arbit_type); + xbar_router(unsigned router_id, enum Interconnect_type m_type, unsigned n_shader, unsigned n_mem, const struct inct_config& m_localinct_config); ~xbar_router(); void Push(unsigned input_deviceID, unsigned output_deviceID, void* data, unsigned int size); void* Pop(unsigned ouput_deviceID); @@ -71,6 +73,9 @@ public: //some stats unsigned long long cycles; unsigned long long conflicts; + unsigned long long conflicts_util; + unsigned long long cycles_util; + unsigned long long reqs_util; unsigned long long out_buffer_full; unsigned long long out_buffer_util; unsigned long long in_buffer_full; @@ -99,6 +104,10 @@ private: enum Interconnect_type router_type; unsigned active_in_buffers,active_out_buffers; Arbiteration_type arbit_type; + unsigned verbose; + + unsigned grant_cycles; + unsigned grant_cycles_count; friend class LocalInterconnect; |
