[fix] prevent Vivado from inferring DSP48 in AXIBurst2Beat
authorchmousset <ch.mousset@gmail.com>
Wed, 14 Aug 2019 09:30:39 +0000 (11:30 +0200)
committerchmousset <ch.mousset@gmail.com>
Wed, 14 Aug 2019 09:30:39 +0000 (11:30 +0200)
litex/soc/interconnect/axi.py

index 9089c275f28418c80932eac420c2ba4c18271ce1..2ccf19d99494f2970cf69646489c708de19705c9 100644 (file)
@@ -113,7 +113,7 @@ class AXIBurst2Beat(Module):
 
         # compute parameters
         self.comb += beat_size.eq(1 << ax_burst.size)
-        self.comb += beat_wrap.eq(ax_burst.len*beat_size)
+        self.comb += beat_wrap.eq(ax_burst.len << ax_burst.size)
 
         # combinatorial logic
         self.comb += [