From: Sebastien Bourdeauducq Date: Fri, 15 Mar 2013 09:48:43 +0000 (+0100) Subject: CRG: use new Module API X-Git-Tag: 24jan2021_ls180~2099^2~443^2~57 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24910173b7ac82573805f3eb1aa87b2c4b76c4f4;p=litex.git CRG: use new Module API --- diff --git a/mibuild/crg.py b/mibuild/crg.py index 0d4dcfbb..6448ec49 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")