From: Luke Kenneth Casson Leighton Date: Fri, 26 Feb 2021 13:50:04 +0000 (+0000) Subject: comment on CoreState X-Git-Tag: convert-csv-opcode-to-binary~152 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=755e84aba04a4cc02e535fcd269d126b7d4f556a;p=soc.git comment on CoreState --- diff --git a/src/soc/config/state.py b/src/soc/config/state.py index ebc5bb86..a3972ef1 100644 --- 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)