split out end_bit
authorJacob Lifshay <programmerjake@gmail.com>
Fri, 15 Oct 2021 03:53:09 +0000 (20:53 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Fri, 15 Oct 2021 03:53:09 +0000 (20:53 -0700)
src/ieee754/part/layout_experiment.py

index 75adc34f8f102bd12623a7446c471aacb112b30a..4497c30a7cc59fbf534880e7adbd98107e695d13 100644 (file)
@@ -142,8 +142,9 @@ def layout(elwid, vec_el_counts, lane_shapes=None, fixed_width=None):
         # for each elwidth, create the required number of vector elements
         for start in range(c):
             start_bit = start * part_wid
+            end_bit = start_bit + lane_shapes[i]
             add_p("start", start, start_bit)  # start of lane
-            add_p("end  ", start, start_bit + lane_shapes[i])  # end lane
+            add_p("end  ", start, end_bit)  # end lane
 
     # deduplicate dpoints lists
     for k in dpoints.keys():