class TrapOutputData(IntegerData):
- regspec = [('SPR', 'srr0', '0:63'),
+ regspec = [('INT', 'o', '0:63'),
+ ('SPR', 'srr0', '0:63'),
('SPR', 'srr1', '0:63'),
('PC', 'nia', '0:63'),
('MSR', 'msr', '0:63')]
def __init__(self, pspec):
super().__init__(pspec)
+ self.o = Data(64, name="o") # RA
self.srr0 = Data(64, name="srr0") # SRR0 SPR
self.srr1 = Data(64, name="srr1") # SRR1 SPR
self.nia = Data(64, name="nia") # NIA (Next PC)
- self.msr = Signal(64, reset_less=True) # MSR
+ self.msr = Data(64, name="msr") # MSR
def __iter__(self):
yield from super().__iter__()
+ yield self.o
yield self.nia
yield self.msr
yield self.srr0
def eq(self, i):
lst = super().eq(i)
- return lst + [ self.nia.eq(i.nia), self.msr.eq(i.msr),
+ return lst + [ self.o.eq(i.o), self.nia.eq(i.nia), self.msr.eq(i.msr),
self.srr0.eq(i.srr0), self.srr1.eq(i.srr1)]