From 0f141d1586b5865638db9626da05c1448578d9aa Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 9 Mar 2019 07:18:01 +0000 Subject: [PATCH] add "compact" option --- src/add/nmigen_add_experiment.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.30.2