Skip to content
Snippets Groups Projects

Better schedule, including plotting

Merged Oscar Gustafsson requested to merge plotschedule into master
1 file
+ 5
5
Compare changes
  • Side-by-side
  • Inline
+ 5
5
@@ -183,7 +183,7 @@ class TestExecutionTime:
def test_set_execution_time(self):
bfly = Butterfly()
bfly.set_exection_time(3)
bfly.exection_time = 3
assert bfly.execution_time == 3
@@ -208,7 +208,7 @@ class TestCopyOperation:
class TestPlotCoordinates():
def test_simple_case(self):
cmult = ConstantMultiplication(0.5)
cmult.set_exection_time(1)
cmult.execution_time = 1
cmult.set_latency(3)
lat, exe = cmult.get_plot_coordinates()
@@ -217,7 +217,7 @@ class TestPlotCoordinates():
def test_complicated_case():
bfly = Butterfly(latency_offsets={'in0': 2, 'in1': 3, 'out0': 5, 'out1': 10})
bfly.execution_time(7)
bfly.execution_time = 7
lat, exe = bfly.get_plot_coordinates()
assert lat == [[2, 0], [2, 0.5], [3, 0.5], [3, 1], [10, 1], [10, 0.5], [5, 0.5], [5, 0], [2, 0]]
@@ -227,7 +227,7 @@ class TestPlotCoordinates():
class TestIOCoordinates():
def test_simple_case(self):
cmult = ConstantMultiplication(0.5)
cmult.set_exection_time(1)
cmult.execution_time = 1
cmult.set_latency(3)
i_c, o_c = cmult.get_io_coordinates()
@@ -236,7 +236,7 @@ class TestIOCoordinates():
def test_complicated_case():
bfly = Butterfly(latency_offsets={'in0': 2, 'in1': 3, 'out0': 5, 'out1': 10})
bfly.set_execution_time(7)
bfly.execution_time = 7
i_c, o_c = bfly.get_io_coordinates()
assert i_c == [[2, 0.25], [3, 0.75]]
Loading