---
# Add description/tips for each metric in this section.
# So it could be shown in hover.
Metric Description:

# Define the panel properties and properties of each metric in the panel.
Panel Config:
  id: 1300
  title: Instruction Cache
  data source:
    - metric_table:
        id: 1301
        title: Speed-of-Light
        header:
          metric: Metric
          value: Avg
          unit: Unit
          tips: Tips
        metric:
          Bandwidth:
            value: AVG(((SQC_ICACHE_REQ * 100000) / (($max_sclk * $sqc_per_gpu)
              * (End_Timestamp - Start_Timestamp))))
            unit: Pct of Peak
            tips:
          Cache Hit Rate:
            value: AVG(((SQC_ICACHE_HITS * 100) / ((SQC_ICACHE_HITS + SQC_ICACHE_MISSES)
              + SQC_ICACHE_MISSES_DUPLICATE)))
            unit: Pct of Peak
            tips:
          L1I-L2 Bandwidth:
            value: AVG(((SQC_TC_INST_REQ * 100000) / (2 * ($max_sclk * $sqc_per_gpu)
              * (End_Timestamp - Start_Timestamp))))
            unit: Pct of Peak
            tips:
        comparable: false # for now
        cli_style: simple_bar

    - metric_table:
        id: 1302
        title: Instruction Cache Accesses
        header:
          metric: Metric
          avg: Avg
          min: Min
          max: Max
          unit: Unit
          tips: Tips
        metric:
          Req:
            avg: AVG((SQC_ICACHE_REQ / $denom))
            min: MIN((SQC_ICACHE_REQ / $denom))
            max: MAX((SQC_ICACHE_REQ / $denom))
            unit: (Req  + $normUnit)
            tips:
          Hits:
            avg: AVG((SQC_ICACHE_HITS / $denom))
            min: MIN((SQC_ICACHE_HITS / $denom))
            max: MAX((SQC_ICACHE_HITS / $denom))
            unit: (Hits  + $normUnit)
            tips:
          Misses - Non Duplicated:
            avg: AVG((SQC_ICACHE_MISSES / $denom))
            min: MIN((SQC_ICACHE_MISSES / $denom))
            max: MAX((SQC_ICACHE_MISSES / $denom))
            unit: (Misses  + $normUnit)
            tips:
          Misses - Duplicated:
            avg: AVG((SQC_ICACHE_MISSES_DUPLICATE / $denom))
            min: MIN((SQC_ICACHE_MISSES_DUPLICATE / $denom))
            max: MAX((SQC_ICACHE_MISSES_DUPLICATE / $denom))
            unit: (Misses  + $normUnit)
            tips:
          Cache Hit Rate:
            avg: AVG(((100 * SQC_ICACHE_HITS) / ((SQC_ICACHE_HITS + SQC_ICACHE_MISSES)
              + SQC_ICACHE_MISSES_DUPLICATE)))
            min: MIN(((100 * SQC_ICACHE_HITS) / ((SQC_ICACHE_HITS + SQC_ICACHE_MISSES)
              + SQC_ICACHE_MISSES_DUPLICATE)))
            max: MAX(((100 * SQC_ICACHE_HITS) / ((SQC_ICACHE_HITS + SQC_ICACHE_MISSES)
              + SQC_ICACHE_MISSES_DUPLICATE)))
            unit: pct
            tips:
          Instruction Fetch Latency:
            avg: AVG((SQ_ACCUM_PREV_HIRES / SQ_IFETCH))
            min: MIN((SQ_ACCUM_PREV_HIRES / SQ_IFETCH))
            max: MAX((SQ_ACCUM_PREV_HIRES / SQ_IFETCH))
            unit: Cycles
            coll_level: SQ_IFETCH_LEVEL
            tips:
    - metric_table:
        id: 1303
        title: Instruction Cache - L2 Interface
        header:
          metric: Metric
          avg: Avg
          min: Min
          max: Max
          unit: Unit
          tips: Tips
        metric:
          L1I-L2 Bandwidth:
            avg: AVG(((SQC_TC_INST_REQ * 64) / $denom))
            min: MIN(((SQC_TC_INST_REQ * 64) / $denom))
            max: MAX(((SQC_TC_INST_REQ * 64) / $denom))
            unit: (Bytes + $normUnit)
            tips:
