From 71548760724c84aac7339e2676c02d9c480955ee Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 13 May 2020 22:54:51 +0100 Subject: [PATCH] add TODO placeholders for popcount and parity --- src/soc/logical/main_stage.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ##### -- 2.30.2