Merge pull request #1183 from trabucayre/fix_yosys_synth
litex/soc/cores/clock/xilinx_common: fix yosys synth: replace FD by FDCE
This commit is contained in:
commit
7acdac2e51
|
@ -145,7 +145,7 @@ class XilinxClocking(Module, AutoCSR):
|
||||||
def add_reset_delay(self, cycles):
|
def add_reset_delay(self, cycles):
|
||||||
for i in range(cycles):
|
for i in range(cycles):
|
||||||
reset = Signal()
|
reset = Signal()
|
||||||
self.specials += Instance("FD", i_C=self.clkin, i_D=self.reset, o_Q=reset)
|
self.specials += Instance("FDCE", i_C=self.clkin, i_CE=1, i_CLR=0, i_D=self.reset, o_Q=reset)
|
||||||
self.reset = reset
|
self.reset = reset
|
||||||
|
|
||||||
def do_finalize(self):
|
def do_finalize(self):
|
||||||
|
|
Loading…
Reference in New Issue