comments (and whitespace
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 13 May 2020 21:19:54 +0000 (22:19 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 13 May 2020 21:19:54 +0000 (22:19 +0100)
libreriscv
src/soc/alu/main_stage.py

index 7ced351c57a207e733bc8c95c923cbfe91d31831..29219bd53d45768c6f57a876a78c5758b29bd7d1 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 7ced351c57a207e733bc8c95c923cbfe91d31831
+Subproject commit 29219bd53d45768c6f57a876a78c5758b29bd7d1
index 1231aeae99e7cd7a27ebc381cea3dba41115a2d2..f5347d3fdfa88d25e3e456dc8ecf13c02dafb292 100644 (file)
@@ -61,6 +61,8 @@ class ALUMainStage(PipeModBase):
             #### xor ####
             with m.Case(InternalOp.OP_XOR):
                 comb += self.o.o.eq(self.i.a ^ self.i.b)
+
+            #### exts (sign-extend) ####
             with m.Case(InternalOp.OP_EXTS):
                 with m.If(self.i.ctx.op.data_len == 1):
                     comb += self.o.o.eq(Cat(self.i.a[0:8],
@@ -71,8 +73,6 @@ class ALUMainStage(PipeModBase):
                 with m.If(self.i.ctx.op.data_len == 4):
                     comb += self.o.o.eq(Cat(self.i.a[0:32],
                                             Repl(self.i.a[31], 64-32)))
-                    
-                
 
         ###### sticky overflow and context, both pass-through #####