fix mul fu test helper.py not passing immediate to pia for mulli
[soc.git] / src / soc / fu / mul / main_stage.py
index 97ba81d7482e99760cd41a69dcb8aeb9499f2a55..68bcf47d5df861ec71708dac7b3b26121a3e4dc4 100644 (file)
@@ -24,13 +24,14 @@ class MulMainStage2(PipeModBase):
         a, b, o = self.i.a, self.i.b, self.o.o
 
         # actual multiply (TODO: split into stages)
+        # it's ironic that one line of code can create 15,000 gates...
         comb += o.eq(a * b)
 
         ###### xer and context, all pass-through #####
 
-        comb += self.o.xer_ca.data.eq(self.i.xer_ca)
-        comb += self.o.neg_res.data.eq(self.i.neg_res)
-        comb += self.o.xer_so.data.eq(self.i.xer_so)
+        comb += self.o.neg_res.eq(self.i.neg_res)
+        comb += self.o.neg_res32.eq(self.i.neg_res32)
+        comb += self.o.xer_so.eq(self.i.xer_so)
         comb += self.o.ctx.eq(self.i.ctx)
 
         return m