genlib: cleanup CRG
authorSebastien Bourdeauducq <sb@m-labs.hk>
Sat, 12 Sep 2015 11:40:07 +0000 (19:40 +0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Sat, 12 Sep 2015 11:40:07 +0000 (19:40 +0800)
migen/genlib/io.py

index db1cfdef0d96a78b73adad60bc03008bdeef20fa..3439f08832a1ab8c42b3caba267777538bf31878 100644 (file)
@@ -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)
         ]