From: Luke Kenneth Casson Leighton Date: Sat, 17 Aug 2019 14:23:13 +0000 (+0100) Subject: remove redundant code X-Git-Tag: ls180-24jan2020~496 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8efad713563968e2977eb73beaa8fa1a4906377c;p=ieee754fpu.git remove redundant code --- diff --git a/src/ieee754/part_mul_add/multiply.py b/src/ieee754/part_mul_add/multiply.py index ac9575da..facbce30 100644 --- a/src/ieee754/part_mul_add/multiply.py +++ b/src/ieee754/part_mul_add/multiply.py @@ -712,21 +712,13 @@ class Mul8_16_32_64(Elaboratable): m.submodules.nbt_or = nbt_or = OrMod(128) m.submodules.nla_or = nla_or = OrMod(128) m.submodules.nlb_or = nlb_or = OrMod(128) - m.submodules.nat = nat = Term(128, 128) - m.submodules.nla = nla = Term(128, 128) - m.submodules.nbt = nbt = Term(128, 128) - m.submodules.nlb = nlb = Term(128, 128) - for l, mod, mod2 in [(nat_l, nat_or, nat), - (nbt_l, nbt_or, nbt), - (nla_l, nla_or, nla), - (nlb_l, nlb_or, nlb)]: + for l, mod in [(nat_l, nat_or), + (nbt_l, nbt_or), + (nla_l, nla_or), + (nlb_l, nlb_or)]: for i in range(len(l)): m.d.comb += mod.orin[i].eq(l[i]) - m.d.comb += mod2.ti.eq(mod.orout) - terms.append(nat.term) - terms.append(nla.term) - terms.append(nbt.term) - terms.append(nlb.term) + terms.append(mod.orout) expanded_part_pts = PartitionPoints() for i, v in self.part_pts.items():