diff options
Diffstat (limited to 'gen/edf_generators.py')
-rw-r--r-- | gen/edf_generators.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gen/edf_generators.py b/gen/edf_generators.py index eda23e4..cca4d44 100644 --- a/gen/edf_generators.py +++ b/gen/edf_generators.py | |||
@@ -269,4 +269,15 @@ class CflSplitPgmGenerator(EdfPgmGenerator): | |||
269 | if exp_params['level'] == 'ALL': | 269 | if exp_params['level'] == 'ALL': |
270 | # kludge: assume global task sets are always schedulable | 270 | # kludge: assume global task sets are always schedulable |
271 | is_sched = True | 271 | is_sched = True |
272 | |||
273 | if is_sched: | ||
274 | # compute the minimum time to produce/consume, so this can be discounted | ||
275 | # from the execution time during runtime | ||
276 | for ti in ts: | ||
277 | consume_amount = ti.wss | ||
278 | produce_amount = sum([e.wss for e in ti.node.outEdges]) | ||
279 | consume_time = overheads.read(consume_amount) | ||
280 | produce_time = overheads.write(produce_amount) | ||
281 | ti.cost_discount = consume_time + produce_time | ||
282 | |||
272 | return is_sched, ts | 283 | return is_sched, ts |