remove operand c from ALU in/out
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 13 May 2020 00:02:21 +0000 (01:02 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 13 May 2020 00:02:21 +0000 (01:02 +0100)
src/soc/alu/input_stage.py
src/soc/alu/pipe_data.py

index e3511eec7536d7f761d814bbd1b92d884220c526..e6ab48ea32dba22bf55831b33b42891118b524e1 100644 (file)
@@ -44,10 +44,6 @@ class ALUInputStage(PipeModBase):
         # If there's an immediate, set the B operand to that
         comb += self.o.b.eq(self.i.b)
 
-        ##### operand C? #####
-
-        comb += self.o.c.eq(self.i.c)
-
         ##### carry-in #####
 
         # either copy incoming carry or set to 1/0 as defined by op
index f64a39f998cb10fc3deba26d11ba2762d63dd872..13be974706a423cec4f085f290e1302427533584 100644 (file)
@@ -22,7 +22,6 @@ class ALUInputData(IntegerData):
         super().__init__(pspec)
         self.a = Signal(64, reset_less=True) # RA
         self.b = Signal(64, reset_less=True) # RB/immediate
-        self.c = Signal(64, reset_less=True) # RC/RS
         self.so = Signal(reset_less=True)
         self.carry_in = Signal(reset_less=True)
 
@@ -30,13 +29,12 @@ class ALUInputData(IntegerData):
         yield from super().__iter__()
         yield self.a
         yield self.b
-        yield self.c
         yield self.carry_in
         yield self.so
 
     def eq(self, i):
         lst = super().eq(i)
-        return lst + [self.a.eq(i.a), self.b.eq(i.b), self.c.eq(i.c),
+        return lst + [self.a.eq(i.a), self.b.eq(i.b),
                       self.carry_in.eq(i.carry_in),
                       self.so.eq(i.so)]