From 709845e61858f2789bd0622362b5012e9ededebe Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 11 Feb 2013 17:54:01 +0100 Subject: [PATCH] generic_platform: fix request --- mibuild/generic_platform.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mibuild/generic_platform.py b/mibuild/generic_platform.py index 2f8fd4ae..cf230094 100644 --- a/mibuild/generic_platform.py +++ b/mibuild/generic_platform.py @@ -35,7 +35,7 @@ def _lookup(description, name, number): for resource in description: if resource[0] == name and (number is None or resource[1] == number): return resource - raise ConstraintError("Resource not found") + raise ConstraintError("Resource not found: " + name + "." + str(number)) def _resource_type(resource, name_map): t = None @@ -107,8 +107,8 @@ class ConstraintManager: if isinstance(t, int): assert(isinstance(obj, Signal) and obj.nbits == t) else: - for name, nbits in t: - sig = getattr(obj, name) + for attr, nbits in t: + sig = getattr(obj, attr) assert(isinstance(sig, Signal) and sig.nbits == nbits) # Register the request -- 2.30.2