diff --git a/mibuild/crg.py b/mibuild/crg.py index 0d4dcfbb5..6448ec49c 100644 --- a/mibuild/crg.py +++ b/mibuild/crg.py @@ -1,6 +1,7 @@ from migen.fhdl.structure import * +from migen.fhdl.module import Module -class CRG: +class CRG(Module): def get_clock_domains(self): r = dict() for k, v in self.__dict__.items(): @@ -8,9 +9,6 @@ class CRG: r[v.name] = v return r - def get_fragment(self): - return Fragment() - class SimpleCRG(CRG): def __init__(self, platform, clk_name, rst_name): self.cd = ClockDomain("sys")