invert SPR1/2 in branch output data
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 1 Jun 2020 10:29:00 +0000 (11:29 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 1 Jun 2020 10:29:00 +0000 (11:29 +0100)
src/soc/fu/branch/pipe_data.py

index f32872b1d4d49b4f8227ccecdc6088eb454b4067..78cab60527db124b2112360f10647b57c5566455 100644 (file)
@@ -74,8 +74,8 @@ class BranchOutputData(IntegerData):
         self.nia = Data(64, name="nia")
 
         # convenience variables.
-        self.lr = self.tar = self.spr1
-        self.ctr = self.spr2
+        self.ctr = self.spr1
+        self.lr = self.tar = self.spr2
 
     def __iter__(self):
         yield from super().__iter__()