From 47101197a956c95287349e1c6f1c211cdbc2380d Mon Sep 17 00:00:00 2001 From: Andreas Abel Date: Mon, 11 May 2020 16:11:12 +0200 Subject: [PATCH] partial reg latencies --- tools/cpuBench/cpuBench.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/cpuBench/cpuBench.py b/tools/cpuBench/cpuBench.py index 70d6ce2..1f38f71 100755 --- a/tools/cpuBench/cpuBench.py +++ b/tools/cpuBench/cpuBench.py @@ -2117,10 +2117,15 @@ def getLatencies(instrNode, instrNodeList, tpDict, htmlReports): inputOpnds.append(opNode) if opNode.attrib.get('w', '0') == '1': outputOpnds.append(opNode) - if opNode.attrib['type'] == 'mem' and opNode.attrib.get('r', '0') == '0': + if opNode.attrib.get('r', '0') == '1': + continue + if opNode.attrib['type'] == 'mem': inputOpnds.append(opNode) # address of memory write - if opNode.attrib['type'] == 'reg' and opNode.attrib.get('conditionalWrite', '0') == '1': - inputOpnds.append(opNode) + elif opNode.attrib['type'] == 'reg': + if opNode.attrib.get('conditionalWrite', '0') == '1': + inputOpnds.append(opNode) + elif opNode.attrib.get('width', '') in ['8', '16'] and opNode.text.split(',')[0] in GPRegs: + inputOpnds.append(opNode) archNode = instrNode.find('./architecture[@name="' + arch + '"]') measurementNode = archNode.find('./measurement')