'msr': self.write_port("dest2"),
'fast1': self.write_port("dest3"),
'fast2': self.write_port("dest4"),
- 'd_wr1': self.write_port("d_wr1")} # writing PC
- self.r_ports = {'cia': self.read_port("src1"),
- 'msr': self.read_port("src2"),
- 'fast1': self.read_port("src3"),
- 'fast2': self.read_port("src4"),
- 'd_rd1': self.read_port("d_rd1"), # reading PC
- 'd_rd2': self.read_port("d_rd2")} # reading MSR
+ 'd_wr1': self.write_port("d_wr1")} # writing PC (issuer)
+ self.r_ports = {'cia': self.read_port("cia"), # reading PC (issuer)
+ 'msr': self.read_port("msr"), # reading MSR (issuer)
+ 'fast1': self.read_port("src1"),
+ 'fast2': self.read_port("src2"),
+ }
# CR Regfile
self.memerr_o = Signal(reset_less=True)
# FAST regfile read /write ports for PC and MSR
- self.fast_r_pc = self.core.regs.rf['fast'].r_ports['d_rd1'] # PC rd
+ self.fast_r_pc = self.core.regs.rf['fast'].r_ports['cia'] # PC rd
self.fast_w_pc = self.core.regs.rf['fast'].w_ports['d_wr1'] # PC wr
- self.fast_r_msr = self.core.regs.rf['fast'].r_ports['d_rd2'] # MSR rd
+ self.fast_r_msr = self.core.regs.rf['fast'].r_ports['msr'] # MSR rd
# hack method of keeping an eye on whether branch/trap set the PC
self.fast_nia = self.core.regs.rf['fast'].w_ports['nia']