use XLEN in Function Units (starting with ALU)
[soc.git] / src / soc / fu / common_output_stage.py
index 45106984a0e1469a255d5ad5e198974c2d37cc70..c4f085fdaa87915540e30295c926755d7e871cac 100644 (file)
@@ -49,7 +49,7 @@ class CommonOutputStage(PipeModBase):
         # XXX ah.  right.  this needs to be done only if the *mode* is 32-bit
         # (an MSR bit)
         # see https://bugs.libre-soc.org/show_bug.cgi?id=424
-        target = Signal(64, reset_less=True)
+        target = Signal.like(o)
         #with m.If(op.is_32bit):
         #    comb += target.eq(o[:32])
         #with m.Else():