Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simuDAtor
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
simuDAtor
Commits
da276b0f
Commit
da276b0f
authored
10 months ago
by
Martin
Browse files
Options
Downloads
Patches
Plain Diff
s is the killer of good documentation quality
parent
b50a0fdd
No related branches found
No related tags found
1 merge request
!40
started to seperate state and parameters, ended up doing more work on keeping private variables private
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/simudator/core/modules/register.py
+2
-2
2 additions, 2 deletions
src/simudator/core/modules/register.py
with
2 additions
and
2 deletions
src/simudator/core/modules/register.py
+
2
−
2
View file @
da276b0f
...
@@ -72,7 +72,7 @@ class Register(Module):
...
@@ -72,7 +72,7 @@ class Register(Module):
def
get_state
(
self
)
->
dict
[
str
,
Any
]:
def
get_state
(
self
)
->
dict
[
str
,
Any
]:
"""
"""
Return
s
a dict of the register state.
Return a dict of the register state.
These states are changeable via set_states.
These states are changeable via set_states.
"""
"""
...
@@ -172,7 +172,7 @@ class IntegerRegister(Register):
...
@@ -172,7 +172,7 @@ class IntegerRegister(Register):
def
get_parameter
(
self
)
->
dict
[
str
,
Any
]:
def
get_parameter
(
self
)
->
dict
[
str
,
Any
]:
"""
"""
Return
s
a dict of the register parameter.
Return a dict of the register parameter
, i.e. its bit length
.
"""
"""
parameter
=
super
().
get_parameter
()
parameter
=
super
().
get_parameter
()
parameter
[
"
bit_length
"
]
=
self
.
_bit_length
parameter
[
"
bit_length
"
]
=
self
.
_bit_length
...
...
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