Skip to content

Commit 746e22d

Browse files
committed
is_dataflow_object()
1 parent 4a62d41 commit 746e22d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

veriloggen/dataflow/dtypes.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
# Object ID counter for object sorting key
1111
global_object_counter = 0
1212

13+
#-------------------------------------------------------------------------------
14+
def is_dataflow_object(*objs):
15+
for obj in objs:
16+
if isinstance(obj, _Node):
17+
return True
18+
return False
19+
1320
#-------------------------------------------------------------------------------
1421
def Constant(value, fixed=True, point=0):
1522
if isinstance(value, int):

veriloggen/dataflow/scheduler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def fill_gap(self, node, end_stage):
5454
r = node._get_delayed_value(i + 1)
5555
if r is not None:
5656
prev = r
57+
cur_end_stage += 1
5758
continue
5859
r = dtypes._Delay(prev)
5960
r._set_start_stage(cur_end_stage)

0 commit comments

Comments
 (0)