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
!448
Add slots to architecture classes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add slots to architecture classes
archslots
into
master
Overview
1
Commits
6
Pipelines
7
Changes
2
Merged
Robier Al Kaadi
requested to merge
archslots
into
master
11 months ago
Overview
1
Commits
6
Pipelines
7
Changes
2
Expand
0
0
Merge request reports
Compare
master
version 6
f18c9b10
10 months ago
version 5
63d15ca1
10 months ago
version 4
a6a8392c
10 months ago
version 3
40c016e0
11 months ago
version 2
32734cf0
11 months ago
version 1
c8ba5d73
11 months ago
master (base)
and
latest version
latest version
aa2adc67
6 commits,
10 months ago
version 6
f18c9b10
6 commits,
10 months ago
version 5
63d15ca1
5 commits,
10 months ago
version 4
a6a8392c
4 commits,
10 months ago
version 3
40c016e0
3 commits,
11 months ago
version 2
32734cf0
2 commits,
11 months ago
version 1
c8ba5d73
1 commit,
11 months ago
2 files
+
280
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
b_asic/architecture.py
+
21
−
0
Options
@@ -53,6 +53,8 @@ class HardwareBlock:
entity_name : str, optional
The name of the resulting entity.
"""
__slots__
=
"
_entity_name
"
_entity_name
:
Optional
[
str
]
def
__init__
(
self
,
entity_name
:
Optional
[
str
]
=
None
):
self
.
_entity_name
:
Optional
[
str
]
=
None
@@ -379,6 +381,9 @@ class ProcessingElement(Resource):
"""
_color
=
f
"
#
{
''
.
join
(
f
'
{
v
:
0
>
2
X
}
'
for v in PE_COLOR)
}
"
__slots__
=
(
"
_process_collection
"
,
"
_entity_name
"
)
_process_collection
:
ProcessCollection
_entity_name
:
Optional
[
str
]
def
__init__
(
self
,
@@ -462,6 +467,22 @@ class Memory(Resource):
"""
_color
=
f
"
#
{
''
.
join
(
f
'
{
v
:
0
>
2
X
}
'
for v in MEMORY_COLOR)
}
"
_slots__
=
(
"
_process_collection
"
,
"
_memory_type
"
,
"
_entity_name
"
,
"
_read_ports
"
,
"
_write_ports
"
,
"
_total_ports
"
,
"
_assign
"
,
)
_process_collection
:
ProcessCollection
_memory_type
:
Literal
[
"
RAM
"
,
"
register
"
]
_entity_name
:
Optional
[
str
]
_read_ports
:
Optional
[
int
]
_write_ports
:
Optional
[
int
]
_total_ports
:
Optional
[
int
]
_assign
:
bool
def
__init__
(
self
,
Loading