from soc.fu.compunits.test.test_compunit import get_l0_mem
class HDLState(State):
+ """HDLState: Obtains registers and memory from an nmigen simulator
+ object by implementing State class methods.
+ """
def __init__(self, core):
super().__init__()
self.core = core
def get_crregs(self):
self.crregs = []
for i in range(8):
- rval = yield self.core.regs.cr.regs[i].reg
+ rval = yield self.core.regs.cr.regs[7-i].reg
self.crregs.append(rval)
log("class hdl cr regs", list(map(hex, self.crregs)))