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:
parent
4981d7cacd
commit
54bfdaa8c0
@ -147,7 +147,7 @@ def AXIStreamSource(clk, rst,
|
|||||||
b = False
|
b = False
|
||||||
if tkeep is not None:
|
if tkeep is not None:
|
||||||
M = len(tkeep)
|
M = len(tkeep)
|
||||||
WL = (len(tdata)+M-1)/M
|
WL = int((len(tdata)+M-1)/M)
|
||||||
if WL == 8:
|
if WL == 8:
|
||||||
b = True
|
b = True
|
||||||
|
|
||||||
@ -219,7 +219,7 @@ def AXIStreamSink(clk, rst,
|
|||||||
M = 1
|
M = 1
|
||||||
b = False
|
b = False
|
||||||
M = len(tkeep)
|
M = len(tkeep)
|
||||||
WL = (len(tdata)+M-1)/M
|
WL = int((len(tdata)+M-1)/M)
|
||||||
if WL == 8:
|
if WL == 8:
|
||||||
b = True
|
b = True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user