Skip to content
Snippets Groups Projects
Unverified Commit 67a4544c authored by Yaman Umuroglu's avatar Yaman Umuroglu Committed by GitHub
Browse files

[InsertTLastMarker] update DynIters value types

parent c2c3712b
No related branches found
No related tags found
No related merge requests found
...@@ -37,8 +37,10 @@ import numpy as np ...@@ -37,8 +37,10 @@ import numpy as np
class InsertTLastMarker(Transformation): class InsertTLastMarker(Transformation):
"""Ensure that the graph is terminated with a TLastMarker node, inserting """Ensure that the graph is started/terminated with a TLastMarker node, inserting
one if necessary.""" one if necessary. Use constructor args to determine type of TLastMarker to be inserted.
More information available on the TLastMarker documentation.
"""
def __init__(self, both=False, external=True, dynamic=True): def __init__(self, both=False, external=True, dynamic=True):
super().__init__() super().__init__()
...@@ -78,7 +80,7 @@ class InsertTLastMarker(Transformation): ...@@ -78,7 +80,7 @@ class InsertTLastMarker(Transformation):
NumIters=num_iters, NumIters=num_iters,
StreamWidth=stream_width, StreamWidth=stream_width,
ElemWidth=elem_width, ElemWidth=elem_width,
DynIters=("true" if self.dyniters else "false"), DynIters=(1 if self.dyniters else 0),
Direction="out", Direction="out",
Protocol=("external" if self.external else "internal"), Protocol=("external" if self.external else "internal"),
domain="finn", domain="finn",
...@@ -117,7 +119,7 @@ class InsertTLastMarker(Transformation): ...@@ -117,7 +119,7 @@ class InsertTLastMarker(Transformation):
NumIters=num_iters, NumIters=num_iters,
StreamWidth=stream_width, StreamWidth=stream_width,
ElemWidth=elem_width, ElemWidth=elem_width,
DynIters=("true" if self.dyniters else "false"), DynIters=(1 if self.dyniters else 0),
Direction="in", Direction="in",
Protocol=("external" if self.external else "internal"), Protocol=("external" if self.external else "internal"),
domain="finn", domain="finn",
......
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