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
Merge requests
!392
Add IO cluster
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add IO cluster
iocluster
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Oscar Gustafsson
requested to merge
iocluster
into
master
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
4ee7b4a4
1 commit,
1 year ago
1 file
+
21
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
b_asic/architecture.py
+
21
−
7
Options
@@ -737,7 +737,11 @@ of :class:`~b_asic.architecture.ProcessingElement`
self
.
_build_dicts
()
def
_digraph
(
self
,
branch_node
=
True
,
cluster
=
True
,
splines
:
str
=
"
spline
"
self
,
branch_node
:
bool
=
True
,
cluster
:
bool
=
True
,
splines
:
str
=
"
spline
"
,
io_cluster
:
bool
=
True
,
)
->
Digraph
:
dg
=
Digraph
(
node_attr
=
{
'
shape
'
:
'
record
'
})
dg
.
attr
(
splines
=
splines
)
@@ -745,21 +749,31 @@ of :class:`~b_asic.architecture.ProcessingElement`
if
cluster
:
# Add subgraphs
if
len
(
self
.
_memories
):
with
dg
.
subgraph
(
name
=
'
cluster_
0
'
)
as
c
:
for
i
,
mem
in
enumerate
(
self
.
_memories
)
:
with
dg
.
subgraph
(
name
=
'
cluster_
memories
'
)
as
c
:
for
mem
in
self
.
_memories
:
c
.
node
(
mem
.
entity_name
,
mem
.
_struct_def
())
label
=
"
Memory
"
if
len
(
self
.
_memories
)
<=
1
else
"
Memories
"
c
.
attr
(
label
=
label
)
with
dg
.
subgraph
(
name
=
'
cluster_1
'
)
as
c
:
for
i
,
pe
in
enumerate
(
self
.
_processing_elements
):
c
.
node
(
pe
.
entity_name
,
pe
.
_struct_def
())
with
dg
.
subgraph
(
name
=
'
cluster_pes
'
)
as
c
:
for
pe
in
self
.
_processing_elements
:
if
pe
.
_type_name
not
in
(
'
in
'
,
'
out
'
):
c
.
node
(
pe
.
entity_name
,
pe
.
_struct_def
())
label
=
(
"
Processing element
"
if
len
(
self
.
_processing_elements
)
<=
1
else
"
Processing elements
"
)
c
.
attr
(
label
=
label
)
if
io_cluster
:
with
dg
.
subgraph
(
name
=
'
cluster_io
'
)
as
c
:
for
pe
in
self
.
_processing_elements
:
if
pe
.
_type_name
in
(
'
in
'
,
'
out
'
):
c
.
node
(
pe
.
entity_name
,
pe
.
_struct_def
())
c
.
attr
(
label
=
"
IO
"
)
else
:
for
pe
in
self
.
_processing_elements
:
if
pe
.
_type_name
in
(
'
in
'
,
'
out
'
):
dg
.
node
(
pe
.
entity_name
,
pe
.
_struct_def
())
else
:
for
i
,
mem
in
enumerate
(
self
.
_memories
):
dg
.
node
(
mem
.
entity_name
,
mem
.
_struct_def
())
Loading