From: Luke Kenneth Casson Leighton Date: Mon, 19 Aug 2019 05:19:41 +0000 (+0100) Subject: rename fo submodule to "finalout" X-Git-Tag: ls180-24jan2020~482 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=310cd1cbb1ee679b8a6afdc2657cd2148c2df187;p=ieee754fpu.git rename fo submodule to "finalout" --- diff --git a/src/ieee754/part_mul_add/multiply.py b/src/ieee754/part_mul_add/multiply.py index d43f9706..4840665a 100644 --- a/src/ieee754/part_mul_add/multiply.py +++ b/src/ieee754/part_mul_add/multiply.py @@ -697,7 +697,10 @@ class Mul8_16_32_64(Elaboratable): instruction. """ - def __init__(self, register_levels= ()): + def __init__(self, register_levels=()): + """ register_levels: specifies the points in the cascade at which + flip-flops are to be inserted. + """ # parameter(s) self.register_levels = list(register_levels) @@ -833,18 +836,18 @@ class Mul8_16_32_64(Elaboratable): m.d.comb += io8.delayed_part_ops[i].eq(delayed_part_ops[-1][i]) # final output - m.submodules.fo = fo = FinalOut(64) + m.submodules.finalout = finalout = FinalOut(64) for i in range(len(part_8.delayed_parts[-1])): - m.d.comb += fo.d8[i].eq(part_8.dplast[i]) + m.d.comb += finalout.d8[i].eq(part_8.dplast[i]) for i in range(len(part_16.delayed_parts[-1])): - m.d.comb += fo.d16[i].eq(part_16.dplast[i]) + m.d.comb += finalout.d16[i].eq(part_16.dplast[i]) for i in range(len(part_32.delayed_parts[-1])): - m.d.comb += fo.d32[i].eq(part_32.dplast[i]) - m.d.comb += fo.i8.eq(io8.output) - m.d.comb += fo.i16.eq(io16.output) - m.d.comb += fo.i32.eq(io32.output) - m.d.comb += fo.i64.eq(io64.output) - m.d.comb += self.output.eq(fo.out) + m.d.comb += finalout.d32[i].eq(part_32.dplast[i]) + m.d.comb += finalout.i8.eq(io8.output) + m.d.comb += finalout.i16.eq(io16.output) + m.d.comb += finalout.i32.eq(io32.output) + m.d.comb += finalout.i64.eq(io64.output) + m.d.comb += self.output.eq(finalout.out) return m