From 85dd02d4d7643e97e034d487b49c93a54e1f1c9e Mon Sep 17 00:00:00 2001 From: Stefan Holst Date: Sun, 7 Nov 2021 18:51:41 +0900 Subject: [PATCH] interpret N as unassigned in STIL --- src/kyupy/stil.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kyupy/stil.py b/src/kyupy/stil.py index fe714cb..7cacc5b 100644 --- a/src/kyupy/stil.py +++ b/src/kyupy/stil.py @@ -40,7 +40,7 @@ class StilFile: unload = {} for so_port in self.so_ports: if so_port in call.parameters: - unload[so_port] = call.parameters[so_port].replace('\n', '') + unload[so_port] = call.parameters[so_port].replace('\n', '').replace('N', '-') if len(capture) > 0: self.patterns.append(ScanPattern(sload, launch, capture, unload)) capture = {} @@ -48,11 +48,11 @@ class StilFile: sload = {} for si_port in self.si_ports: if si_port in call.parameters: - sload[si_port] = call.parameters[si_port].replace('\n', '') + sload[si_port] = call.parameters[si_port].replace('\n', '').replace('N', '-') if call.name.endswith('_launch'): - launch = dict((k, v.replace('\n', '')) for k, v in call.parameters.items()) + launch = dict((k, v.replace('\n', '').replace('N', '-')) for k, v in call.parameters.items()) if call.name.endswith('_capture'): - capture = dict((k, v.replace('\n', '')) for k, v in call.parameters.items()) + capture = dict((k, v.replace('\n', '').replace('N', '-')) for k, v in call.parameters.items()) def _maps(self, c): interface = list(c.interface) + [n for n in c.nodes if 'DFF' in n.kind]