fhdl/autofragment: empty build_fragment by default
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 9 Mar 2013 18:10:47 +0000 (19:10 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 9 Mar 2013 18:10:47 +0000 (19:10 +0100)
migen/fhdl/autofragment.py

index 277ad76129daff93876b911b39a95574da208034..413b9d82fb2ad9eddaf21f69f5a8434bb58c18bb 100644 (file)
@@ -120,4 +120,4 @@ class FModule:
                        object.__setattr__(self, name, value)
 
        def build_fragment(self):
-               raise NotImplementedError("FModule.build_fragment needs to be overloaded")
+               pass # do nothing (e.g. module has only submodules)