From: Luke Kenneth Casson Leighton Date: Wed, 13 May 2020 21:54:51 +0000 (+0100) Subject: add TODO placeholders for popcount and parity X-Git-Tag: div_pipeline~1245 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=71548760724c84aac7339e2676c02d9c480955ee;p=soc.git add TODO placeholders for popcount and parity --- diff --git a/src/soc/logical/main_stage.py b/src/soc/logical/main_stage.py index 18a33299..622216bb 100644 --- a/src/soc/logical/main_stage.py +++ b/src/soc/logical/main_stage.py @@ -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 #####