From 110b7eef9f00420dc8fde436dc5a62055fdbf1fb Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 14 Oct 2021 20:51:09 -0700 Subject: [PATCH] split out start_bit --- src/ieee754/part/layout_experiment.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ieee754/part/layout_experiment.py b/src/ieee754/part/layout_experiment.py index 72bceb20..75adc34f 100644 --- a/src/ieee754/part/layout_experiment.py +++ b/src/ieee754/part/layout_experiment.py @@ -141,9 +141,9 @@ def layout(elwid, vec_el_counts, lane_shapes=None, fixed_width=None): dpoints[p].append(i) # auto-creates list if key non-existent # for each elwidth, create the required number of vector elements for start in range(c): - add_p("start", start, start * part_wid) # start of lane - add_p("end ", start, start * part_wid + - lane_shapes[i]) # end lane + start_bit = start * part_wid + add_p("start", start, start_bit) # start of lane + add_p("end ", start, start_bit + lane_shapes[i]) # end lane # deduplicate dpoints lists for k in dpoints.keys(): -- 2.30.2