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
d6025095
Commit
d6025095
authored
2 years ago
by
Hugo Winbladh
Committed by
Oscar Gustafsson
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix linting problems
parent
5dfb76ea
No related branches found
No related tags found
1 merge request
!420
Add method to reconstruct SFG from a schedule
Pipeline
#100172
skipped
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
b_asic/schedule.py
+6
-4
6 additions, 4 deletions
b_asic/schedule.py
with
6 additions
and
4 deletions
b_asic/schedule.py
+
6
−
4
View file @
d6025095
...
@@ -760,12 +760,14 @@ class Schedule:
...
@@ -760,12 +760,14 @@ class Schedule:
delay_list
=
self
.
_sfg
.
find_by_type_name
(
Delay
.
type_name
())
delay_list
=
self
.
_sfg
.
find_by_type_name
(
Delay
.
type_name
())
def
_reintroduce_delays
(
self
)
->
SFG
:
def
_reintroduce_delays
(
self
)
->
SFG
:
"""
Reintroduce delay elements to each signal according to the ``_laps`` variable.
"""
"""
reconstructed_sfg
=
self
.
_sfg
()
Reintroduce delay elements to each signal according to the ``_laps`` variable.
"""
new_sfg
=
self
.
_sfg
()
for
signal_id
,
lap
in
self
.
_laps
.
items
():
for
signal_id
,
lap
in
self
.
_laps
.
items
():
for
delays
in
range
(
lap
):
for
delays
in
range
(
lap
):
reconstructed_sfg
=
reconstructed
_sfg
.
insert_operation_after
(
signal_id
,
Delay
())
new_sfg
=
new
_sfg
.
insert_operation_after
(
signal_id
,
Delay
())
return
reconstructed
_sfg
()
return
new
_sfg
()
def
_schedule_alap
(
self
)
->
None
:
def
_schedule_alap
(
self
)
->
None
:
"""
Schedule the operations using as-late-as-possible scheduling.
"""
"""
Schedule the operations using as-late-as-possible scheduling.
"""
...
...
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