Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
platin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SysWCEC-uArch
platin
Commits
70c77d41
Commit
70c77d41
authored
5 years ago
by
Phillip Raffeck
Browse files
Options
Downloads
Patches
Plain Diff
cache analysis: comments
parent
4e8c7417
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/analysis/ecb.rb
+1
-1
1 addition, 1 deletion
lib/analysis/ecb.rb
lib/analysis/wca.rb
+2
-0
2 additions, 0 deletions
lib/analysis/wca.rb
with
3 additions
and
1 deletion
lib/analysis/ecb.rb
+
1
−
1
View file @
70c77d41
...
@@ -38,7 +38,7 @@ class ECBAnalysis
...
@@ -38,7 +38,7 @@ class ECBAnalysis
# Calculates set of accessed cache blocks locally for this stream of
# Calculates set of accessed cache blocks locally for this stream of
# instructions. Modifications of the cache by calls are ignored.
# instructions. Modifications of the cache by calls are ignored.
def
ecb
(
instructions
,
cache_config
)
def
ecb
(
instructions
,
cache_config
)
cache
=
Cache
.
new
(
cache_config
)
cache
=
Cache
.
new
(
cache_config
)
# Only used for address calculation
ecb
=
Set
.
new
ecb
=
Set
.
new
instructions
.
each
do
|
instr
|
instructions
.
each
do
|
instr
|
tag
,
set
,
addr
=
cache
.
split_address
(
instr
.
address
)
tag
,
set
,
addr
=
cache
.
split_address
(
instr
.
address
)
...
...
This diff is collapsed.
Click to expand it.
lib/analysis/wca.rb
+
2
−
0
View file @
70c77d41
...
@@ -374,9 +374,11 @@ class WCA
...
@@ -374,9 +374,11 @@ class WCA
wcet
[
wcet_for_obj
]
=
[
cycles
,
power_states
.
to_a
]
wcet
[
wcet_for_obj
]
=
[
cycles
,
power_states
.
to_a
]
node
.
successors
.
select
{
|
s
|
s
.
isr_entry?
}.
each
{
|
int
|
node
.
successors
.
select
{
|
s
|
s
.
isr_entry?
}.
each
{
|
int
|
# find successors of isr_entries that activate tasks
activators
=
topological_sort
(
int
,
GCFGLocalTrait
.
new
).
select
{
|
n
|
activators
=
topological_sort
(
int
,
GCFGLocalTrait
.
new
).
select
{
|
n
|
n
.
abb
.
nil?
?
false
:
n
.
abb
.
task_activation?
n
.
abb
.
nil?
?
false
:
n
.
abb
.
task_activation?
}
}
# find nodes of activated tasks which are the global successors of the activation nodes
activations
=
activators
.
map
{
|
act
|
activations
=
activators
.
map
{
|
act
|
topological_sort
(
act
,
GCFGLocalTrait
.
new
).
map
{
|
n
|
n
.
successors
(
:global
)
}
topological_sort
(
act
,
GCFGLocalTrait
.
new
).
map
{
|
n
|
n
.
successors
(
:global
)
}
}.
flatten
}.
flatten
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment