Fragment -> _Fragment

This commit is contained in:
Sebastien Bourdeauducq 2013-07-26 15:13:24 +02:00
parent 78776b4bc9
commit f7f19b78e4
1 changed files with 2 additions and 1 deletions

View 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