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
5c0bf4ab
Commit
5c0bf4ab
authored
4 years ago
by
Rasmus Karlsson
Browse files
Options
Downloads
Patches
Plain Diff
Modified split(). Did not work before, now it works
parent
dfa29032
No related branches found
No related tags found
1 merge request
!34
Resolve "Operation Splitting"
Pipeline
#14030
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
+8
-2
8 additions, 2 deletions
b_asic/signal_flow_graph.py
with
8 additions
and
2 deletions
b_asic/signal_flow_graph.py
+
8
−
2
View file @
5c0bf4ab
...
...
@@ -240,13 +240,19 @@ class SFG(AbstractOperation):
# For each input_signal, connect it to the corresponding operation
for
port
,
input_operation
in
zip
(
self
.
inputs
,
self
.
input_operations
):
# Disconnect the previous signal to the destination
dest
=
input_operation
.
output
(
0
).
signals
[
0
].
destination
dest
.
clear
()
# Connect the signal to the new destination
port
.
signals
[
0
].
set_destination
(
input_operation
.
output
(
0
).
signals
[
0
].
destination
)
port
.
signals
[
0
].
set_destination
(
dest
)
# For each output_signal, connect it to the corresponding operation
for
port
,
output_operation
in
zip
(
self
.
outputs
,
self
.
output_operations
):
# Disconnect the previous signal to the source
src
=
output_operation
.
input
(
0
).
signals
[
0
].
source
src
.
clear
()
# Connect the signal to the new source
port
.
signals
[
0
].
set_source
(
output_operation
.
input
[
0
].
signals
[
0
].
sou
rc
e
)
port
.
signals
[
0
].
set_source
(
s
rc
)
...
...
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