Skip to content
Snippets Groups Projects
Commit 0e99be0f authored by Simon Bjurek's avatar Simon Bjurek
Browse files

updated so that execution time does not have to be set for dont cares

parent 7dcacd09
No related branches found
No related tags found
No related merge requests found
Pipeline #156315 passed
......@@ -1677,6 +1677,7 @@ class DontCare(AbstractOperation):
output_count=1,
name=name,
latency_offsets={"out0": 0},
execution_time=0,
)
@classmethod
......@@ -1753,6 +1754,7 @@ class Sink(AbstractOperation):
output_count=0,
name=name,
latency_offsets={"in0": 0},
execution_time=0,
)
@classmethod
......@@ -1777,28 +1779,14 @@ class Sink(AbstractOperation):
) -> tuple[tuple[tuple[float, float], ...], tuple[tuple[float, float], ...]]:
# Doc-string inherited
return (
(
(-0.5, 0),
(-0.5, 1),
(-0.25, 1),
(0, 0.5),
(-0.25, 0),
(-0.5, 0),
),
(
(-0.5, 0),
(-0.5, 1),
(-0.25, 1),
(0, 0.5),
(-0.25, 0),
(-0.5, 0),
),
((0, 0), (0, 1), (0.25, 1), (0.5, 0.5), (0.25, 0), (0, 0)),
((0, 0), (0, 1), (0.25, 1), (0.5, 0.5), (0.25, 0), (0, 0)),
)
def get_input_coordinates(self) -> tuple[tuple[float, float], ...]:
# doc-string inherited
return tuple()
return ((0, 0.5),)
def get_output_coordinates(self) -> tuple[tuple[float, float], ...]:
# doc-string inherited
return ((0, 0.5),)
return tuple()
......@@ -27,10 +27,8 @@ sfg
# %%
# Set latencies and execution times.
sfg.set_latency_of_type(DontCare.type_name(), 0) # REMOVE!!!
sfg.set_latency_of_type(MADS.type_name(), 3)
sfg.set_latency_of_type(Reciprocal.type_name(), 2)
sfg.set_execution_time_of_type(DontCare.type_name(), 0) # REMOVE!!!
sfg.set_execution_time_of_type(MADS.type_name(), 1)
sfg.set_execution_time_of_type(Reciprocal.type_name(), 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment