add PartitionedSignal.__Mux__ unit test
[ieee754fpu.git] / src / ieee754 / part_mul_add / partpoints.py
index 887372af62cef7bb7b213cd63e98dbb10aae85ce..5f3c38c51f58a17f679b27d9e2b2baadf324036a 100644 (file)
@@ -41,10 +41,15 @@ def make_partition2(mask, width):
     ppoints = {}
     ppos = jumpsize
     midx = 0
+    if isinstance(mask, dict): # convert dict/partpoints to sequential list
+        mask = list(mask.values())
+    print ("make_partition2", width, mask, mlen, jumpsize)
     while ppos < width and midx < mlen: # -1, ignore last bit
+        print ("    make_partition2", ppos, width, midx, mlen)
         ppoints[ppos] = mask[midx]
         ppos += jumpsize
         midx += 1
+    print ("    make_partition2", mask, width, ppoints)
     return ppoints