bus/dfi: fix multiphase naming
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 19 Feb 2012 16:57:04 +0000 (17:57 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 19 Feb 2012 16:57:04 +0000 (17:57 +0100)
migen/bus/dfi.py

index b2137cb399513ec259fac64f6d636d6d6f8d9f5d..b6f407d5c82d1dd2fe316f8ae6b9f7c986e3449a 100644 (file)
@@ -34,9 +34,9 @@ class Interface:
                                if (m2s and signal[0] == M_TO_S) or (s2m and signal[0] == S_TO_M):
                                        if add_suffix:
                                                if signal[0] == M_TO_S:
-                                                       suffix = "_p" + int(n)
+                                                       suffix = "_p" + str(n)
                                                else:
-                                                       suffix = "_w" + int(n)
+                                                       suffix = "_w" + str(n)
                                        else:
                                                suffix = ""
                                        r.append(("dfi_" + signal[1] + suffix, getattr(phase, signal[1])))