From 6021754aa0e3bf44c689657d8d3eff4beeb941fd Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 11 May 2020 11:47:26 +0100 Subject: [PATCH] add docstring, missing return module --- src/soc/alu/rotator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/soc/alu/rotator.py b/src/soc/alu/rotator.py index a763021a..05b6b19b 100644 --- a/src/soc/alu/rotator.py +++ b/src/soc/alu/rotator.py @@ -1,3 +1,6 @@ +# Manual translation and adaptation of rotator.vhdl from microwatt into nmigen +# + from soc.alu.rotl import ROTL #note BE bit numbering @@ -130,3 +133,4 @@ class Rotator(Elaboratable): with m.If(output_mode = 0b11): comb += carry_out.eq(rs & ~ml) + return m -- 2.30.2