add TODO placeholders for popcount and parity
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 13 May 2020 21:54:51 +0000 (22:54 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 13 May 2020 21:54:51 +0000 (22:54 +0100)
src/soc/logical/main_stage.py

index 18a3329937df92047e5baa5535446285f05b8ecd..622216bbf5c8d9f80e1ad04f0903f5b27e0f7102 100644 (file)
@@ -28,7 +28,7 @@ class LogicalMainStage(PipeModBase):
         comb = m.d.comb
 
         ##########################
-        # main switch-statement for handling logic operations AND, OR and XOR
+        # main switch for logic ops AND, OR and XOR, parity, and popcount
 
         with m.Switch(self.i.ctx.op.insn_type):
             with m.Case(InternalOp.OP_AND):
@@ -37,6 +37,10 @@ class LogicalMainStage(PipeModBase):
                 comb += self.o.o.eq(self.i.a | self.i.b)
             with m.Case(InternalOp.OP_XOR):
                 comb += self.o.o.eq(self.i.a ^ self.i.b)
+            ###### popcount #######
+            # TODO with m.Case(InternalOp.OP_POPCNT):
+            ###### parity #######
+            # TODO with m.Case(InternalOp.OP_PRTY):
 
         ###### sticky overflow and context, both pass-through #####