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
!365
Improve content rendering
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Improve content rendering
contentimprovement
into
master
Overview
0
Commits
1
Pipelines
1
Changes
4
Merged
Oscar Gustafsson
requested to merge
contentimprovement
into
master
2 years ago
Overview
0
Commits
1
Pipelines
1
Changes
4
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
0f49938b
1 commit,
2 years ago
4 files
+
4
−
31
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
b_asic/architecture.py
+
4
−
5
Options
@@ -8,7 +8,6 @@ from typing import Dict, Iterable, Iterator, List, Optional, Set, Tuple, Union,
import
matplotlib.pyplot
as
plt
from
graphviz
import
Digraph
from
b_asic.mpl_utils
import
FigureWrapper
from
b_asic.port
import
InputPort
,
OutputPort
from
b_asic.process
import
MemoryVariable
,
OperatorProcess
,
PlainMemoryVariable
from
b_asic.resources
import
ProcessCollection
@@ -192,16 +191,16 @@ class Resource(HardwareBlock):
return
self
.
_assignment
is
not
None
@property
def
content
(
self
)
->
Figure
Wrapper
:
def
content
(
self
)
->
plt
.
Figure
:
"""
Return a graphical representation of the content.
This is visible in enriched shells, but the object
in
itself has no further
meaning.
This is visible in enriched shells, but the object itself has no further
meaning
(it is a Matplotlib Figure)
.
"""
fig
,
ax
=
plt
.
subplots
()
self
.
plot_content
(
ax
)
return
FigureWrapper
(
fig
)
return
fig
class
ProcessingElement
(
Resource
):
Loading