back.rtlil: fix translation of Cat.
authorwhitequark <whitequark@whitequark.org>
Fri, 21 Dec 2018 01:48:02 +0000 (01:48 +0000)
committerwhitequark <whitequark@whitequark.org>
Fri, 21 Dec 2018 01:48:02 +0000 (01:48 +0000)
nmigen/back/rtlil.py

index a4c8a61bfdfe84f4b7f9f2da5954f3169ce5b62f..433dd2060bc9b399551f5ed102d71a13f196e145 100644 (file)
@@ -298,7 +298,7 @@ class _ValueCompiler(xfrm.AbstractValueTransformer):
         raise NotImplementedError # :nocov:
 
     def on_Cat(self, value):
-        return "{{ {} }}".format(" ".join(reversed([self(o) for o in value.operands])))
+        return "{{ {} }}".format(" ".join(reversed([self(o) for o in value.parts])))
 
     def _prepare_value_for_Slice(self, value):
         raise NotImplementedError # :nocov: