build/xilinx/XilinxMultiRegImpl: fix n=0 case
This commit is contained in:
parent
ec7dc2d8f4
commit
9da28c4ea5
|
@ -78,6 +78,7 @@ class XilinxMultiRegImpl(MultiRegImpl):
|
|||
if not hasattr(i, "attr"):
|
||||
i0, i = i, Signal()
|
||||
self.comb += i.eq(i0)
|
||||
if len(self.regs):
|
||||
self.regs[0].attr.add("mr_ff")
|
||||
for r in self.regs:
|
||||
r.attr.add("async_reg")
|
||||
|
|
Loading…
Reference in New Issue