From c06a821452be8b331548641d5adc82df9891d0e8 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 12 Mar 2013 16:14:13 +0100 Subject: [PATCH] generic_platform: implicit get_fragment --- mibuild/generic_platform.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mibuild/generic_platform.py b/mibuild/generic_platform.py index ca5d9bd0..89360bc4 100644 --- a/mibuild/generic_platform.py +++ b/mibuild/generic_platform.py @@ -198,6 +198,8 @@ class GenericPlatform: self.add_source(os.path.join(root, filename), language) def get_verilog(self, fragment, clock_domains=None, **kwargs): + 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 # at the end of this function. -- 2.30.2