# BRAM organisation: We never access more than
# -- WB_DATA_BITS at a time so to save
# -- resources we make the array only that wide, and
-# -- use consecutive indices for to make a cache "line"
+# -- use consecutive indices to make a cache "line"
# --
# -- ROW_SIZE is the width in bytes of the BRAM
# -- (based on WB, so 64-bits)
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)))