From f8af078d3df49dd6d2d44aecd90a5cad62582345 Mon Sep 17 00:00:00 2001 From: JanLJL Date: Thu, 11 Mar 2021 01:55:57 +0100 Subject: [PATCH] guarantee 0 latency for None values in DB --- osaca/data/icl.yml | 51 +------------------------------------ osaca/semantics/hw_model.py | 2 +- 2 files changed, 2 insertions(+), 51 deletions(-) diff --git a/osaca/data/icl.yml b/osaca/data/icl.yml index 70d5534..6156780 100644 --- a/osaca/data/icl.yml +++ b/osaca/data/icl.yml @@ -31397,55 +31397,6 @@ instruction_forms: port_pressure: [[1, '0156']] # model_importer.py instructions.xml ICL throughput: 0.25 # model_importer.py instructions.xml ICL uops: 1 # model_importer.py instructions.xml ICL -- name: JB # model_importer.py instructions.xml ICL - operands: # model_importer.py instructions.xml ICL - - class: identifier # model_importer.py instructions.xml ICL - latency: ~ # model_importer.py instructions.xml ICL - port_pressure: [[1, '06']] # model_importer.py instructions.xml ICL - throughput: 0.5 # model_importer.py instructions.xml ICL - uops: 1 # model_importer.py instructions.xml ICL -- name: JBE # model_importer.py instructions.xml ICL - operands: # model_importer.py instructions.xml ICL - - class: identifier # model_importer.py instructions.xml ICL - latency: ~ # model_importer.py instructions.xml ICL - port_pressure: [[1, '06']] # model_importer.py instructions.xml ICL - throughput: 0.5 # model_importer.py instructions.xml ICL - uops: 1 # model_importer.py instructions.xml ICL -- name: JL # model_importer.py instructions.xml ICL - operands: # model_importer.py instructions.xml ICL - - class: identifier # model_importer.py instructions.xml ICL - latency: ~ # model_importer.py instructions.xml ICL - port_pressure: [[1, '06']] # model_importer.py instructions.xml ICL - throughput: 0.5 # model_importer.py instructions.xml ICL - uops: 1 # model_importer.py instructions.xml ICL -- name: JLE # model_importer.py instructions.xml ICL - operands: # model_importer.py instructions.xml ICL - - class: identifier # model_importer.py instructions.xml ICL - latency: ~ # model_importer.py instructions.xml ICL - port_pressure: [[1, '06']] # model_importer.py instructions.xml ICL - throughput: 0.5 # model_importer.py instructions.xml ICL - uops: 1 # model_importer.py instructions.xml ICL -- name: JO # model_importer.py instructions.xml ICL - operands: # model_importer.py instructions.xml ICL - - class: identifier # model_importer.py instructions.xml ICL - latency: ~ # model_importer.py instructions.xml ICL - port_pressure: [[1, '06']] # model_importer.py instructions.xml ICL - throughput: 0.5 # model_importer.py instructions.xml ICL - uops: 1 # model_importer.py instructions.xml ICL -- name: JS # model_importer.py instructions.xml ICL - operands: # model_importer.py instructions.xml ICL - - class: identifier # model_importer.py instructions.xml ICL - latency: ~ # model_importer.py instructions.xml ICL - port_pressure: [[1, '06']] # model_importer.py instructions.xml ICL - throughput: 0.5 # model_importer.py instructions.xml ICL - uops: 1 # model_importer.py instructions.xml ICL -- name: JZ # model_importer.py instructions.xml ICL - operands: # model_importer.py instructions.xml ICL - - class: identifier # model_importer.py instructions.xml ICL - latency: ~ # model_importer.py instructions.xml ICL - port_pressure: [[1, '06']] # model_importer.py instructions.xml ICL - throughput: 0.5 # model_importer.py instructions.xml ICL - uops: 1 # model_importer.py instructions.xml ICL - name: LEA # model_importer.py instructions.xml ICL operands: # model_importer.py instructions.xml ICL - class: memory # model_importer.py instructions.xml ICL @@ -31465,7 +31416,7 @@ instruction_forms: imd: int # model_importer.py instructions.xml ICL - class: register # model_importer.py instructions.xml ICL name: gpr # model_importer.py instructions.xml ICL - latency: ~ # model_importer.py instructions.xml ICL + latency: 0 # model_importer.py instructions.xml ICL port_pressure: [[1, '0156']] # model_importer.py instructions.xml ICL throughput: 0.25 # model_importer.py instructions.xml ICL uops: 1 # model_importer.py instructions.xml ICL diff --git a/osaca/semantics/hw_model.py b/osaca/semantics/hw_model.py index 7e5ca3c..2911dc0 100755 --- a/osaca/semantics/hw_model.py +++ b/osaca/semantics/hw_model.py @@ -181,7 +181,7 @@ class MachineModel(object): def get_load_latency(self, reg_type): """Return load latency for given register type.""" - return self._data['load_latency'][reg_type] + return self._data['load_latency'][reg_type] if self._data['load_latency'][reg_type] else 0 def get_load_throughput(self, memory): """Return load thorughput for given register type."""