Skip to content
Snippets Groups Projects
Commit 9e0dfb54 authored by Lucian Petrica's avatar Lucian Petrica
Browse files

Rounding depth only to powers of 2 for compatibility with Vivado

parent f1bd8ebf
No related branches found
No related tags found
No related merge requests found
......@@ -71,9 +71,7 @@ def optimize_depth(depth):
return 2
if depth <= 32:
return 32
if depth <= 1024:
return int(2 ** math.ceil(math.log2(depth)))
return int(math.ceil(depth / 1024) * 1024)
return int(2 ** math.ceil(math.log2(depth)))
class InsertAndSetFIFODepths(Transformation):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment