class TrapInputData(IntegerData):
regspec = [('INT', 'ra', '0:63'), # RA
('INT', 'rb', '0:63'), # RB/immediate
- ('FAST', 'spr1', '0:63'), # SRR0
- ('FAST', 'spr2', '0:63'), # SRR1
+ ('FAST', 'fast1', '0:63'), # SRR0
+ ('FAST', 'fast2', '0:63'), # SRR1
('FAST', 'cia', '0:63'), # Program counter (current)
('FAST', 'msr', '0:63')] # MSR
def __init__(self, pspec):
super().__init__(pspec, False)
# convenience
- self.srr0, self.srr1 = self.spr1, self.spr2
+ self.srr0, self.srr1 = self.fast1, self.fast2
self.a, self.b = self.ra, self.rb
class TrapOutputData(IntegerData):
regspec = [('INT', 'o', '0:63'), # RA
- ('FAST', 'spr1', '0:63'), # SRR0 SPR
- ('FAST', 'spr2', '0:63'), # SRR1 SPR
+ ('FAST', 'fast1', '0:63'), # SRR0 SPR
+ ('FAST', 'fast2', '0:63'), # SRR1 SPR
('FAST', 'nia', '0:63'), # NIA (Next PC)
('FAST', 'msr', '0:63')] # MSR
def __init__(self, pspec):
super().__init__(pspec, True)
# convenience
- self.srr0, self.srr1 = self.spr1, self.spr2
+ self.srr0, self.srr1 = self.fast1, self.fast2