efficiency and speed is not the main goal here: functional correctness is.
"""
- def __init__(self, addrwid=6, idepth=16):
+ def __init__(self, addrwid=6, idepth=6):
# main instruction core
self.core = core = NonProductionCore(addrwid)
def setup_regs(core, test):
-
# set up INT regfile, "direct" write (bypass rd/write ports)
intregs = core.regs.int
for i in range(32):
yield xregs.regs[xregs.CA].reg.eq(0)
# XER
+ pdecode2 = core.pdecode2
so = yield xregs.regs[xregs.SO].reg
ov = yield xregs.regs[xregs.OV].reg
ca = yield xregs.regs[xregs.CA].reg