('INT', 'rb', '0:63'), # RB/immediate
('FAST', 'fast1', '0:63'), # SRR0
('FAST', 'fast2', '0:63'), # SRR1
+ ('FAST', 'fast3', '0:63'), # SVSRR0
# note here that neither MSR nor CIA are read as regs: they are
# passed in as incoming "State", via the CompTrapOpSubset
]
def __init__(self, pspec):
super().__init__(pspec, False)
# convenience
- self.srr0, self.srr1 = self.fast1, self.fast2
+ self.srr0, self.srr1, self.svsrr0 = self.fast1, self.fast2, self.fast3
self.a, self.b = self.ra, self.rb
regspec = [('INT', 'o', '0:63'), # RA
('FAST', 'fast1', '0:63'), # SRR0 SPR
('FAST', 'fast2', '0:63'), # SRR1 SPR
+ ('FAST', 'fast3', '0:63'), # SRR2 SPR
('STATE', 'nia', '0:63'), # NIA (Next PC)
('STATE', 'msr', '0:63')] # MSR
def __init__(self, pspec):
super().__init__(pspec, True)
# convenience
- self.srr0, self.srr1 = self.fast1, self.fast2
+ self.srr0, self.srr1, self.svsrr0 = self.fast1, self.fast2, self.fast3
yield from ALUHelpers.get_sim_int_ra(res, sim, dec2) # RA
yield from ALUHelpers.get_sim_int_rb(res, sim, dec2) # RB
- yield from ALUHelpers.get_sim_fast_spr1(res, sim, dec2) # SPR1
- yield from ALUHelpers.get_sim_fast_spr2(res, sim, dec2) # SPR2
+ yield from ALUHelpers.get_sim_fast_spr1(res, sim, dec2) # SPR0
+ yield from ALUHelpers.get_sim_fast_spr2(res, sim, dec2) # SPR1
+ yield from ALUHelpers.get_sim_fast_spr3(res, sim, dec2) # SVSRR0
ALUHelpers.get_sim_cia(res, sim, dec2) # PC
ALUHelpers.get_sim_msr(res, sim, dec2) # MSR
inp = yield from get_cu_inputs(dec2, sim)
yield from ALUHelpers.set_int_ra(alu, dec2, inp)
yield from ALUHelpers.set_int_rb(alu, dec2, inp)
- yield from ALUHelpers.set_fast_spr1(alu, dec2, inp) # SPR1
+ yield from ALUHelpers.set_fast_spr1(alu, dec2, inp) # SPR0
yield from ALUHelpers.set_fast_spr2(alu, dec2, inp) # SPR1
+ yield from ALUHelpers.set_fast_spr3(alu, dec2, inp) # SVSRR0
# yield from ALUHelpers.set_cia(alu, dec2, inp)
# yield from ALUHelpers.set_msr(alu, dec2, inp)
yield from ALUHelpers.get_int_o(res, alu, dec2)
yield from ALUHelpers.get_fast_spr1(res, alu, dec2)
yield from ALUHelpers.get_fast_spr2(res, alu, dec2)
+ yield from ALUHelpers.get_fast_spr3(res, alu, dec2)
yield from ALUHelpers.get_nia(res, alu, dec2)
yield from ALUHelpers.get_msr(res, alu, dec2)
yield from ALUHelpers.get_sim_int_o(sim_o, sim, dec2)
yield from ALUHelpers.get_wr_fast_spr1(sim_o, sim, dec2)
yield from ALUHelpers.get_wr_fast_spr2(sim_o, sim, dec2)
+ yield from ALUHelpers.get_wr_fast_spr3(sim_o, sim, dec2)
ALUHelpers.get_sim_nia(sim_o, sim, dec2)
ALUHelpers.get_sim_msr(sim_o, sim, dec2)
ALUHelpers.check_int_o(self, res, sim_o, code)
ALUHelpers.check_fast_spr1(self, res, sim_o, code)
ALUHelpers.check_fast_spr2(self, res, sim_o, code)
+ ALUHelpers.check_fast_spr3(self, res, sim_o, code)
ALUHelpers.check_nia(self, res, sim_o, code)
ALUHelpers.check_msr(self, res, sim_o, code)