From 24910173b7ac82573805f3eb1aa87b2c4b76c4f4 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 15 Mar 2013 10:48:43 +0100 Subject: [PATCH] CRG: use new Module API --- mibuild/crg.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 @@ def get_clock_domains(self): 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")