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
96c144d7
Commit
96c144d7
authored
10 months ago
by
Johannes Kung
Committed by
Martin Högstedt
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Apply 3 suggestion(s) to 2 file(s)
parent
a25746b1
Branches
Branches containing commit
No related tags found
1 merge request
!13
We know have asm instructions, can step forward and backward between clock cycle and asm instructions
Pipeline
#131573
failed
10 months ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/simudator/gui/run_continuously_thread.py
+2
-2
2 additions, 2 deletions
src/simudator/gui/run_continuously_thread.py
src/simudator/processor/mia/modules/mia_memory.py
+1
-1
1 addition, 1 deletion
src/simudator/processor/mia/modules/mia_memory.py
with
3 additions
and
3 deletions
src/simudator/gui/run_continuously_thread.py
+
2
−
2
View file @
96c144d7
...
...
@@ -21,10 +21,10 @@ class RunThread(QRunnable):
self
.
run_continuously
=
run_continuously
self
.
steps
=
steps
self
.
delay
=
delay
self
.
is_asm_instruciton
=
is_asm_instruciton
self
.
step_asm
=
step_asm
def
run
(
self
):
if
self
.
is_asm_instruciton
:
if
self
.
step_asm
:
while
self
.
steps
>
0
:
self
.
cpu
.
do_tick
()
...
...
This diff is collapsed.
Click to expand it.
src/simudator/processor/mia/modules/mia_memory.py
+
1
−
1
View file @
96c144d7
...
...
@@ -97,7 +97,7 @@ class MiaMemory(MiaBusConnector, Memory):
self
.
label_adress_mapping
[
adress
]
=
instr
def
get_label
(
self
,
adress
:
int
)
->
str
:
"""
Return
s
the label at the given
value
if it exists, else an empty string
"""
"""
Return the label at the given
memory address
if it exists, else an empty string
"""
if
adress
in
self
.
label_adress_mapping
.
keys
():
return
self
.
label_adress_mapping
[
adress
]
...
...
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