From 9a627db1899e2c959a72e806f3ed5905e4c870ca Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 14 Nov 2021 16:45:40 +0000 Subject: [PATCH] add a few more asserts just to be safe --- src/spec/testing_stage1.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spec/testing_stage1.py b/src/spec/testing_stage1.py index be21252..a15f68f 100644 --- a/src/spec/testing_stage1.py +++ b/src/spec/testing_stage1.py @@ -194,9 +194,12 @@ class DummyPlatform(TemplatedPlatform): # each of these returns a tuple (res, pin, port, attrs) for pad, core in zip(pads, core): pin = pad[1] + corepin = core[1] if pin is None: continue # skip when pin is None + assert corepin is not None # if pad was None, core should be too print ("iter", pad, pin.name) assert pin.name not in self.padlookup # no overwrites allowed! + assert pin.name == corepin.name # has to be the same! self.padlookup[pin.name] = core # finally return the value just like ResourceManager.request() -- 2.30.2