Skip to content
Snippets Groups Projects

Add slack time scheduling, redid earliest deadline, added max-fan-out and hybrid scheduler, also added example

Closed Simon Bjurek requested to merge add-slack-time-sched into master
3 files
+ 88
19
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 62
0
@@ -1696,6 +1696,37 @@ class DontCare(AbstractOperation):
@@ -1696,6 +1696,37 @@ class DontCare(AbstractOperation):
def __str__(self) -> str:
def __str__(self) -> str:
return "dontcare"
return "dontcare"
 
def get_plot_coordinates(
 
self,
 
) -> 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),
 
),
 
)
 
 
def get_input_coordinates(self) -> tuple[tuple[float, float], ...]:
 
# doc-string inherited
 
return tuple()
 
 
def get_output_coordinates(self) -> tuple[tuple[float, float], ...]:
 
# doc-string inherited
 
return ((0, 0.5),)
 
class Sink(AbstractOperation):
class Sink(AbstractOperation):
r"""
r"""
@@ -1740,3 +1771,34 @@ class Sink(AbstractOperation):
@@ -1740,3 +1771,34 @@ class Sink(AbstractOperation):
def __str__(self) -> str:
def __str__(self) -> str:
return "sink"
return "sink"
 
 
def get_plot_coordinates(
 
self,
 
) -> 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),
 
),
 
)
 
 
def get_input_coordinates(self) -> tuple[tuple[float, float], ...]:
 
# doc-string inherited
 
return tuple()
 
 
def get_output_coordinates(self) -> tuple[tuple[float, float], ...]:
 
# doc-string inherited
 
return ((0, 0.5),)
Loading