Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B-ASIC - Better ASIC Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Computer Engineering
B-ASIC - Better ASIC Toolbox
Commits
752932ff
Commit
752932ff
authored
4 months ago
by
Simon Bjurek
Browse files
Options
Downloads
Patches
Plain Diff
fixed bug in scheduling
parent
7b61cb78
No related branches found
No related tags found
No related merge requests found
Pipeline
#158421
passed
4 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
b_asic/schedule.py
+25
-4
25 additions, 4 deletions
b_asic/schedule.py
with
25 additions
and
4 deletions
b_asic/schedule.py
+
25
−
4
View file @
752932ff
...
@@ -365,10 +365,10 @@ class Schedule:
...
@@ -365,10 +365,10 @@ class Schedule:
available_time
=
(
available_time
=
(
cast
(
int
,
source
.
latency_offset
)
cast
(
int
,
source
.
latency_offset
)
+
self
.
_start_times
[
source
.
operation
.
graph_id
]
+
self
.
_start_times
[
source
.
operation
.
graph_id
]
-
self
.
_schedule_time
*
self
.
_laps
[
signal
.
graph_id
]
)
)
if
available_time
>
self
.
_schedule_time
:
if
available_time
>
self
.
_schedule_time
:
available_time
-=
self
.
_schedule_time
available_time
-=
self
.
_schedule_time
available_time
-=
self
.
_schedule_time
*
self
.
_laps
[
signal
.
graph_id
]
else
:
else
:
available_time
=
(
available_time
=
(
cast
(
int
,
source
.
latency_offset
)
cast
(
int
,
source
.
latency_offset
)
...
@@ -458,6 +458,26 @@ class Schedule:
...
@@ -458,6 +458,26 @@ class Schedule:
raise
ValueError
(
raise
ValueError
(
f
"
New schedule time (
{
time
}
) too short, minimum:
{
max_end_time
}
.
"
f
"
New schedule time (
{
time
}
) too short, minimum:
{
max_end_time
}
.
"
)
)
# if updating the scheduling time -> update laps due to operations
# reading and writing in different iterations (across the edge)
if
self
.
_schedule_time
is
not
None
:
for
signal_id
in
self
.
_laps
.
keys
():
port
=
self
.
_sfg
.
find_by_id
(
signal_id
).
destination
source_port
=
port
.
signals
[
0
].
source
source_op
=
source_port
.
operation
source_port_start_time
=
self
.
_start_times
[
source_op
.
graph_id
]
source_port_latency_offset
=
source_op
.
latency_offsets
[
f
"
out
{
source_port
.
index
}
"
]
if
(
source_port_start_time
+
source_port_latency_offset
>
self
.
_schedule_time
and
source_port_start_time
+
source_port_latency_offset
<=
time
):
self
.
_laps
[
signal_id
]
+=
1
self
.
_schedule_time
=
time
self
.
_schedule_time
=
time
return
self
return
self
...
@@ -945,11 +965,12 @@ class Schedule:
...
@@ -945,11 +965,12 @@ class Schedule:
f
"
out
{
source_port
.
index
}
"
f
"
out
{
source_port
.
index
}
"
]
]
if
(
if
(
lap
==
0
source_port_start_time
+
source_port_latency_offset
and
source_port_start_time
+
source_port_latency_offset
>
self
.
_schedule_time
>
self
.
_schedule_time
):
):
lap
=
1
lap
+=
(
source_port_start_time
+
source_port_latency_offset
)
//
self
.
_schedule_time
destination_laps
.
append
((
port
.
operation
.
graph_id
,
port
.
index
,
lap
))
destination_laps
.
append
((
port
.
operation
.
graph_id
,
port
.
index
,
lap
))
...
...
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