Fragment -> _Fragment
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 26 Jul 2013 13:13:24 +0000 (15:13 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 26 Jul 2013 13:13:24 +0000 (15:13 +0200)
mibuild/generic_platform.py

index 86c12651e6164e7cbd6c9ad9a83b887ab8a6a9e4..bfd6af73ffe1bcd66ff49c0c11a21c53385669ad 100644 (file)
@@ -2,6 +2,7 @@ from copy import copy
 import os, argparse
 
 from migen.fhdl.std import *
+from migen.fhdl.structure import _Fragment
 from migen.genlib.record import Record
 from migen.fhdl import verilog
 
@@ -194,7 +195,7 @@ class GenericPlatform:
                                        self.add_source(os.path.join(root, filename), language)
 
        def get_verilog(self, fragment, **kwargs):
-               if not isinstance(fragment, Fragment):
+               if not isinstance(fragment, _Fragment):
                        fragment = fragment.get_fragment()
                # We may create a temporary clock/reset generator that would request pins.
                # Save the constraint manager state so that such pin requests disappear