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
dfa29032
Commit
dfa29032
authored
4 years ago
by
Rasmus Karlsson
Browse files
Options
Downloads
Patches
Plain Diff
Added assertions before functionality of Split
parent
b1784dde
No related branches found
No related tags found
1 merge request
!34
Resolve "Operation Splitting"
Pipeline
#13855
failed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
b_asic/signal_flow_graph.py
+4
-1
4 additions, 1 deletion
b_asic/signal_flow_graph.py
with
4 additions
and
1 deletion
b_asic/signal_flow_graph.py
+
4
−
1
View file @
dfa29032
...
...
@@ -234,7 +234,10 @@ class SFG(AbstractOperation):
def
split
(
self
)
->
Iterable
[
Operation
]:
"""
Iterates over the SFG
'
s Input- and OutputSignals to reconnect them to each necessary operation inside the SFG,
so that the inner operations of the SFG can function on their own, effectively replacing the SFG.
"""
assert
len
(
self
.
inputs
)
==
len
(
self
.
input_operations
),
"
Number of inputs does not match the number of input_operations in SFG.
"
assert
len
(
self
.
outputs
)
==
len
(
self
.
output_operations
),
"
Number of outputs does not match the number of output_operations SFG.
"
# For each input_signal, connect it to the corresponding operation
for
port
,
input_operation
in
zip
(
self
.
inputs
,
self
.
input_operations
):
# Connect the signal to the new destination
...
...
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