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
dd5a1c74
Commit
dd5a1c74
authored
2 years ago
by
Oscar Gustafsson
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue with cyclic schedule. Closes
#100
parent
1cab407f
No related branches found
No related tags found
No related merge requests found
Pipeline
#72477
passed
2 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
b_asic/schedule.py
+8
-9
8 additions, 9 deletions
b_asic/schedule.py
examples/thirdorderblwdf.py
+1
-1
1 addition, 1 deletion
examples/thirdorderblwdf.py
examples/threepointwinograddft.py
+1
-1
1 addition, 1 deletion
examples/threepointwinograddft.py
with
10 additions
and
11 deletions
b_asic/schedule.py
+
8
−
9
View file @
dd5a1c74
...
...
@@ -15,7 +15,7 @@ import io
from
b_asic.signal_flow_graph
import
SFG
from
b_asic.graph_component
import
GraphID
from
b_asic.special_operations
import
Delay
,
Output
from
b_asic
import
OutputPort
,
Signal
class
Schedule
:
"""
Schedule of an SFG with scheduled Operations.
"""
...
...
@@ -43,14 +43,13 @@ class Schedule:
max_end_time
=
self
.
_get_max_end_time
()
if
not
self
.
_cyclic
:
if
schedule_time
is
None
:
self
.
_schedule_time
=
max_end_time
elif
schedule_time
<
max_end_time
:
raise
ValueError
(
"
Too short schedule time for non-cyclic Schedule entered.
"
)
else
:
self
.
_schedule_time
=
schedule_time
if
schedule_time
is
None
:
self
.
_schedule_time
=
max_end_time
elif
schedule_time
<
max_end_time
:
raise
ValueError
(
f
"
Too short schedule time. Minimum is
{
max_end_time
}
.
"
)
else
:
self
.
_schedule_time
=
schedule_time
def
start_time_of_operation
(
self
,
op_id
:
GraphID
)
->
int
:
"""
Get the start time of the operation with the specified by the op_id.
"""
...
...
This diff is collapsed.
Click to expand it.
examples/thirdorderblwdf.py
+
1
−
1
View file @
dd5a1c74
...
...
@@ -35,4 +35,4 @@ import numpy as np
import
matplotlib.pyplot
as
plt
plt
.
plot
(
w
,
20
*
np
.
log10
(
np
.
abs
(
h
)
/
2
))
schedule
=
Schedule
(
sfg
,
cyclic
=
Fals
e
)
schedule
=
Schedule
(
sfg
,
cyclic
=
Tru
e
)
This diff is collapsed.
Click to expand it.
examples/threepointwinograddft.py
+
1
−
1
View file @
dd5a1c74
...
...
@@ -38,4 +38,4 @@ sfg.set_execution_time_of_type(ConstantMultiplication.type_name(), 1)
sfg
.
set_execution_time_of_type
(
Addition
.
type_name
(),
1
)
sfg
.
set_execution_time_of_type
(
Subtraction
.
type_name
(),
1
)
schedule
=
Schedule
(
sfg
,
cyclic
=
Fals
e
)
schedule
=
Schedule
(
sfg
,
cyclic
=
Tru
e
)
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