From ca6d6954c145525918bf06ecb195b2872e69f05c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 6 Aug 2014 19:38:11 +0800 Subject: [PATCH] targets/ppro: use migen reset synchronizer --- targets/ppro.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/ppro.py b/targets/ppro.py index 5416316c..bd811d71 100644 --- a/targets/ppro.py +++ b/targets/ppro.py @@ -1,6 +1,7 @@ from fractions import Fraction from migen.fhdl.std import * +from migen.genlib.resetsync import AsyncResetSynchronizer from misoclib import lasmicon, spiflash from misoclib.sdramphy import gensdrphy @@ -48,8 +49,7 @@ class _CRG(Module): ) self.specials += Instance("BUFG", i_I=pll[4], o_O=self.cd_sys.clk) self.specials += Instance("BUFG", i_I=pll[5], o_O=self.cd_sys_ps.clk) - self.specials += Instance("FD", p_INIT=1, i_D=~pll_lckd, - i_C=self.cd_sys.clk, o_Q=self.cd_sys.rst) + self.specials += AsyncResetSynchronizer(self.cd_sys, ~pll_lckd) self.specials += Instance("ODDR2", p_DDR_ALIGNMENT="NONE", p_INIT=0, p_SRTYPE="SYNC", -- 2.30.2