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
c117d89a
Commit
c117d89a
authored
5 years ago
by
Ivar Härnqvist
Browse files
Options
Downloads
Patches
Plain Diff
fix merge
parent
8a855b8b
Branches
Branches containing commit
No related tags found
2 merge requests
!67
WIP: B-ASIC version 1.0.0 hotfix
,
!65
B-ASIC version 1.0.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
b_asic/signal_flow_graph.py
+1
-3
1 addition, 3 deletions
b_asic/signal_flow_graph.py
with
1 addition
and
3 deletions
b_asic/signal_flow_graph.py
+
1
−
3
View file @
c117d89a
...
@@ -353,7 +353,6 @@ class SFG(AbstractOperation):
...
@@ -353,7 +353,6 @@ class SFG(AbstractOperation):
"""
"""
return
self
.
_components_by_name
.
get
(
name
,
[])
return
self
.
_components_by_name
.
get
(
name
,
[])
<<<<<<<
HEAD
def
find_result_keys_by_name
(
self
,
name
:
Name
,
output_index
:
int
=
0
)
->
Sequence
[
ResultKey
]:
def
find_result_keys_by_name
(
self
,
name
:
Name
,
output_index
:
int
=
0
)
->
Sequence
[
ResultKey
]:
"""
Find all graph components with the specified name and
"""
Find all graph components with the specified name and
return a sequence of the keys to use when fetching their results
return a sequence of the keys to use when fetching their results
...
@@ -368,7 +367,7 @@ class SFG(AbstractOperation):
...
@@ -368,7 +367,7 @@ class SFG(AbstractOperation):
if
isinstance
(
comp
,
Operation
):
if
isinstance
(
comp
,
Operation
):
keys
.
append
(
comp
.
key
(
output_index
,
comp
.
graph_id
))
keys
.
append
(
comp
.
key
(
output_index
,
comp
.
graph_id
))
return
keys
return
keys
=======
def
replace_component
(
self
,
component
:
Operation
,
_id
:
GraphID
):
def
replace_component
(
self
,
component
:
Operation
,
_id
:
GraphID
):
"""
Find and replace all components matching either on GraphID, Type or both.
"""
Find and replace all components matching either on GraphID, Type or both.
Then return a new deepcopy of the sfg with the replaced component.
Then return a new deepcopy of the sfg with the replaced component.
...
@@ -647,7 +646,6 @@ class SFG(AbstractOperation):
...
@@ -647,7 +646,6 @@ class SFG(AbstractOperation):
"""
TODO: docstring
"""
"""
TODO: docstring
"""
for
op
in
self
.
get_components_with_type_name
(
type_name
):
for
op
in
self
.
get_components_with_type_name
(
type_name
):
op
.
set_latency_offsets
(
latency_offsets
)
op
.
set_latency_offsets
(
latency_offsets
)
>>>>>>>
d2ae5743259f581c116bb3772d17c3b2023ed9e0
def
_add_component_unconnected_copy
(
self
,
original_component
:
GraphComponent
)
->
GraphComponent
:
def
_add_component_unconnected_copy
(
self
,
original_component
:
GraphComponent
)
->
GraphComponent
:
assert
original_component
not
in
self
.
_original_components_to_new
,
"
Tried to add duplicate SFG component
"
assert
original_component
not
in
self
.
_original_components_to_new
,
"
Tried to add duplicate SFG component
"
...
...
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