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
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