From: Luke Kenneth Casson Leighton Date: Sat, 9 Mar 2019 07:18:01 +0000 (+0000) Subject: add "compact" option X-Git-Tag: ls180-24jan2020~1718 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f141d1586b5865638db9626da05c1448578d9aa;p=ieee754fpu.git add "compact" option --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 4a9119d5..a53b8161 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -1028,16 +1028,18 @@ class FPPutZ(FPState): class FPADDBaseMod(FPID): - def __init__(self, width, id_wid=None, single_cycle=False): + def __init__(self, width, id_wid=None, single_cycle=False, compact=True): """ IEEE754 FP Add * width: bit-width of IEEE754. supported: 16, 32, 64 * id_wid: an identifier that is sync-connected to the input * single_cycle: True indicates each stage to complete in 1 clock + * compact: True indicates a reduced number of stages """ FPID.__init__(self, id_wid) self.width = width self.single_cycle = single_cycle + self.compact = compact self.in_t = Trigger() self.in_a = Signal(width)