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
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user