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:
enjoy-digital 2022-01-25 22:26:18 +01:00 committed by GitHub
commit 7acdac2e51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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):