From: Jacob Lifshay Date: Fri, 15 Oct 2021 03:20:43 +0000 (-0700) Subject: dedup dpoints X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80c203b9ed98bee03fd309a0e39ae6727d0af1eb;p=ieee754fpu.git dedup dpoints --- diff --git a/src/ieee754/part/layout_experiment.py b/src/ieee754/part/layout_experiment.py index 24e9aa5b..4fabaa5f 100644 --- a/src/ieee754/part/layout_experiment.py +++ b/src/ieee754/part/layout_experiment.py @@ -145,6 +145,10 @@ def layout(elwid, vec_el_counts, lane_shapes=None, fixed_width=None): add_p("end ", start, start * part_wid + lane_shapes[i]) # end lane + # deduplicate dpoints lists + for k in dpoints.keys(): + dpoints[k] = list({i: None for i in dpoints[k]}.keys()) + # do not need the breakpoints at the very start or the very end dpoints.pop(0, None) if fixed_width is not None: