1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Cast WL to int

This commit is contained in:
Alex Forencich 2015-03-21 03:19:43 -07:00
parent 4981d7cacd
commit 54bfdaa8c0

View File

@ -147,7 +147,7 @@ def AXIStreamSource(clk, rst,
b = False
if tkeep is not None:
M = len(tkeep)
WL = (len(tdata)+M-1)/M
WL = int((len(tdata)+M-1)/M)
if WL == 8:
b = True
@ -219,7 +219,7 @@ def AXIStreamSink(clk, rst,
M = 1
b = False
M = len(tkeep)
WL = (len(tdata)+M-1)/M
WL = int((len(tdata)+M-1)/M)
if WL == 8:
b = True