projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
365bdcd
)
comment on CoreState
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 26 Feb 2021 13:50:04 +0000
(13:50 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 26 Feb 2021 13:50:04 +0000
(13:50 +0000)
src/soc/config/state.py
patch
|
blob
|
history
diff --git
a/src/soc/config/state.py
b/src/soc/config/state.py
index ebc5bb861053713e430d077a44a5f6efb5b45cce..a3972ef1da9126cf0b74ba828c80944b6b95ac13 100644
(file)
--- a/
src/soc/config/state.py
+++ b/
src/soc/config/state.py
@@
-4,6
+4,13
@@
from soc.sv.svstate import SVSTATERec
class CoreState(RecordObject):
+ """contains "Core State Information" which says exactly where things are
+
+ example: eint says to PowerDecoder that it should fire an exception
+ rather than let the current decoded instruction proceed. likewise
+ if dec goes negative. MSR contains LE/BE and Priv state. PC contains
+ the Program Counter, and SVSTATE is the Sub-Program-Counter.
+ """
def __init__(self, name):
super().__init__(name=name)
self.pc = Signal(64) # Program Counter (CIA, NIA)