From 7b83ef7b505c2d182679e97263aacd9622d38a81 Mon Sep 17 00:00:00 2001 From: JanLJL Date: Mon, 17 Jul 2023 14:52:22 +0200 Subject: [PATCH] fixed UnboundLocalError if tp assignment loop is not executed --- osaca/data/icx.yml | 10 ++++++++++ osaca/semantics/arch_semantics.py | 1 + 2 files changed, 11 insertions(+) diff --git a/osaca/data/icx.yml b/osaca/data/icx.yml index b01afb9..1284f6e 100644 --- a/osaca/data/icx.yml +++ b/osaca/data/icx.yml @@ -8191,6 +8191,16 @@ instruction_forms: port_pressure: [[1, '1'], [1, '5']] # model_importer.py instructions.xml ICL throughput: 1.0 # model_importer.py instructions.xml ICL uops: 2 # model_importer.py instructions.xml ICL +- name: IMUL # model_importer.py instructions.xml ICL + operands: # model_importer.py instructions.xml ICL + - class: register # model_importer.py instructions.xml ICL + name: gpr # model_importer.py instructions.xml ICL + - class: register # model_importer.py instructions.xml ICL + name: gpr # model_importer.py instructions.xml ICL + latency: 3 # model_importer.py instructions.xml ICL + port_pressure: [[1, '1']] # model_importer.py instructions.xml ICL + throughput: 1.0 # model_importer.py instructions.xml ICL + uops: 1 # model_importer.py instructions.xml ICL - name: NEG # model_importer.py instructions.xml ICL operands: # model_importer.py instructions.xml ICL - class: register # model_importer.py instructions.xml ICL diff --git a/osaca/semantics/arch_semantics.py b/osaca/semantics/arch_semantics.py index ef04dc8..4be77ad 100755 --- a/osaca/semantics/arch_semantics.py +++ b/osaca/semantics/arch_semantics.py @@ -42,6 +42,7 @@ class ArchSemantics(ISASemantics): INC = 0.01 kernel.reverse() port_list = self._machine_model.get_ports() + multiple_assignments = False for idx, instruction_form in enumerate(kernel[start:], start): multiple_assignments = False # if iform has multiple possible port assignments, check all in a DFS manner and take the best