From: Luke Kenneth Casson Leighton Date: Wed, 27 Mar 2019 23:28:00 +0000 (+0000) Subject: add comments X-Git-Tag: ls180-24jan2020~1455 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a3cdfa7b1ee1ca893bca79be0cbb61802381568;p=ieee754fpu.git add comments --- diff --git a/src/add/singlepipe.py b/src/add/singlepipe.py index c2afcbe3..4b61c4c5 100644 --- a/src/add/singlepipe.py +++ b/src/add/singlepipe.py @@ -238,6 +238,14 @@ def eq(o, i): the Record's field spec. Alternatively, an object with the same member names as the Record may be assigned: it does not have to *be* a Record. + + ArrayProxy is also special-cased, it's a bit messy: whilst ArrayProxy + has an eq function, the object being assigned to it (e.g. a python + object) might not. despite the *input* having an eq function, + that doesn't help us, because it's the *ArrayProxy* that's being + assigned to. so.... we cheat. use the ports() function of the + python object, enumerate them, find out the list of Signals that way, + and assign them. """ if not isinstance(o, Sequence): o, i = [o], [i]