From: Luke Kenneth Casson Leighton Date: Sat, 20 Apr 2019 21:53:34 +0000 (+0100) Subject: add ports function to RecordObject X-Git-Tag: ls180-24jan2020~1205 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0dc1b6c1a5ca3bcd0e04005fd1b01cdb4fc572f8;p=ieee754fpu.git add ports function to RecordObject --- diff --git a/src/add/singlepipe.py b/src/add/singlepipe.py index 52decdbb..231b9ab3 100644 --- a/src/add/singlepipe.py +++ b/src/add/singlepipe.py @@ -197,6 +197,9 @@ class RecordObject(Record): for x in self.fields.values(): yield x + def ports(self): + return list(self) + class PrevControl: """ contains signals that come *from* the previous stage (both in and out)