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
098a8ba9
Commit
098a8ba9
authored
1 year ago
by
Martin Högstedt
Browse files
Options
Downloads
Patches
Plain Diff
more comment fixes
parent
3cbeb5a0
No related branches found
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
#131575
passed
1 year ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/simudator/core/processor.py
+2
-2
2 additions, 2 deletions
src/simudator/core/processor.py
src/simudator/processor/mia/mia.py
+1
-1
1 addition, 1 deletion
src/simudator/processor/mia/mia.py
with
3 additions
and
3 deletions
src/simudator/core/processor.py
+
2
−
2
View file @
098a8ba9
...
@@ -88,12 +88,12 @@ class Processor:
...
@@ -88,12 +88,12 @@ class Processor:
# new assembly instruction
# new assembly instruction
if
self
.
is_new_instruction
():
if
self
.
is_new_instruction
():
self
.
new_instruction
=
True
self
.
new_instruction
=
True
self
.
current_instruction
=
self
.
get_current_instrution
()
self
.
current_instruction
=
self
.
get_current_instru
c
tion
()
self
.
assembly_cycles
.
append
(
self
.
get_clock
())
self
.
assembly_cycles
.
append
(
self
.
get_clock
())
else
:
else
:
self
.
new_instruction
=
False
self
.
new_instruction
=
False
def
get_current_instrution
(
self
)
->
str
:
def
get_current_instru
c
tion
(
self
)
->
str
:
"""
"""
Return the current instruction. Useful for pipeline diagram.
Return the current instruction. Useful for pipeline diagram.
"""
"""
...
...
This diff is collapsed.
Click to expand it.
src/simudator/processor/mia/mia.py
+
1
−
1
View file @
098a8ba9
...
@@ -287,7 +287,7 @@ class MIA_CPU(Processor):
...
@@ -287,7 +287,7 @@ class MIA_CPU(Processor):
def
is_new_instruction
(
self
)
->
bool
:
def
is_new_instruction
(
self
)
->
bool
:
return
self
.
get_module
(
"
uPC
"
).
value
==
0
return
self
.
get_module
(
"
uPC
"
).
value
==
0
def
get_current_instrution
(
self
)
->
str
:
def
get_current_instru
c
tion
(
self
)
->
str
:
"""
"""
Return a string containing the label for the current instruction.
Return a string containing the label for the current instruction.
...
...
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