genlib: cleanup CRG

This commit is contained in:
Sebastien Bourdeauducq 2015-09-12 19:40:07 +08:00
parent 1bdb9bee22
commit 9667d61e84
1 changed files with 3 additions and 3 deletions

View 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)
]