From: Sebastien Bourdeauducq Date: Sat, 12 Sep 2015 11:40:07 +0000 (+0800) Subject: genlib: cleanup CRG X-Git-Tag: 24jan2021_ls180~2099^2~3^2~94 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9667d61e841a63180309732aa7b620f25a952d23;p=litex.git genlib: cleanup CRG --- diff --git a/migen/genlib/io.py b/migen/genlib/io.py index db1cfdef..3439f088 100644 --- a/migen/genlib/io.py +++ b/migen/genlib/io.py @@ -48,12 +48,12 @@ class CRG(Module): clk = clk_se # Power on Reset (vendor agnostic) - rst_n = Signal() - self.sync.por += rst_n.eq(1 & ~rst) + rst = Signal(reset=1) + self.sync.por += rst.eq(rst) self.comb += [ self.cd_sys.clk.eq(clk), self.cd_por.clk.eq(clk), - self.cd_sys.rst.eq(~rst_n) + self.cd_sys.rst.eq(rst) ]