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