diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2014-01-31 21:55:03 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2014-01-31 21:55:03 -0500 |
commit | 21a605fb8fe90f3b2659cb9d93039232bb2bddc4 (patch) | |
tree | 3d32f1912a5a639f7152adee608e307369408da0 /gen/edf_generators.py | |
parent | c55e81ec12f80f60846b251aa7bbe0f6c044e7e8 (diff) |
Compute costs for reading and writing data.wip-ecrts14-pgm
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 |