From 770e827b0a3473d4ba6947161790f04bfec252e5 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 29 Mar 2019 12:27:45 +0000 Subject: [PATCH] remove unneeded imports --- src/add/fpadd/pipeline.py | 2 +- src/add/fpadd/statemachine.py | 31 ++++++++++++------------------- 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/src/add/fpadd/pipeline.py b/src/add/fpadd/pipeline.py index 647d1a4c..22eed7e0 100644 --- a/src/add/fpadd/pipeline.py +++ b/src/add/fpadd/pipeline.py @@ -2,7 +2,7 @@ # Copyright (C) Jonathan P Dawson 2013 # 2013-12-12 -from nmigen import Module, +from nmigen import Module from nmigen.cli import main, verilog from singlepipe import (ControlBase, UnbufferedPipeline, PassThroughStage) diff --git a/src/add/fpadd/statemachine.py b/src/add/fpadd/statemachine.py index 19cc3623..9e13205f 100644 --- a/src/add/fpadd/statemachine.py +++ b/src/add/fpadd/statemachine.py @@ -3,35 +3,28 @@ # 2013-12-12 from nmigen import Module, Signal, Cat, Mux, Array, Const -from nmigen.lib.coding import PriorityEncoder from nmigen.cli import main, verilog from math import log -from fpbase import FPNumIn, FPNumOut, FPOp, Overflow, FPBase, FPNumBase -from fpbase import MultiShiftRMerge, Trigger -from singlepipe import (ControlBase, StageChain, UnbufferedPipeline, - PassThroughStage) -from multipipe import CombMuxOutPipe -from multipipe import PriorityCombMuxInPipe +from fpbase import FPOp +from fpbase import Trigger +from singlepipe import (StageChain, UnbufferedPipeline) from fpbase import FPState, FPID -from fpcommon.getop import (FPGetOpMod, FPGetOp, FPNumBase2Ops, FPADDBaseData, - FPGet2OpMod, FPGet2Op) -from fpcommon.denorm import (FPSCData, FPAddDeNormMod, FPAddDeNorm) +from fpcommon.getop import (FPGetOp, FPADDBaseData, FPGet2Op) +from fpcommon.denorm import (FPSCData, FPAddDeNorm) from fpcommon.postcalc import FPAddStage1Data -from fpcommon.postnormalise import (FPNorm1Data, FPNorm1ModSingle, - FPNorm1ModMulti, FPNorm1Single, FPNorm1Multi) -from fpcommon.roundz import (FPRoundData, FPRoundMod, FPRound) -from fpcommon.corrections import (FPCorrectionsMod, FPCorrections) +from fpcommon.postnormalise import (FPNorm1Data, + FPNorm1Single, FPNorm1Multi) +from fpcommon.roundz import (FPRoundData, FPRound) +from fpcommon.corrections import FPCorrections from fpcommon.pack import (FPPackData, FPPackMod, FPPack) from fpcommon.normtopack import FPNormToPack from fpcommon.putz import (FPPutZ, FPPutZIdx) -from fpadd.specialcases import (FPAddSpecialCasesMod, FPAddSpecialCases, - FPAddSpecialCasesDeNorm) -from fpadd.align import (FPAddAlignMulti, FPAddAlignMultiMod, FPNumIn2Ops, - FPAddAlignSingleMod, FPAddAlignSingle) -from fpadd.add0 import (FPAddStage0Data, FPAddStage0Mod, FPAddStage0) +from fpadd.specialcases import (FPAddSpecialCases, FPAddSpecialCasesDeNorm) +from fpadd.align import (FPAddAlignMulti, FPAddAlignSingle) +from fpadd.add0 import (FPAddStage0Data, FPAddStage0) from fpadd.add1 import (FPAddStage1Mod, FPAddStage1) from fpadd.addstages import FPAddAlignSingleAdd -- 2.30.2