From: Luke Kenneth Casson Leighton Date: Sun, 14 Nov 2021 16:45:40 +0000 (+0000) Subject: add a few more asserts just to be safe X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a627db1899e2c959a72e806f3ed5905e4c870ca;p=pinmux.git add a few more asserts just to be safe --- 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()