whitespace
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 15 Feb 2020 11:51:12 +0000 (11:51 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 15 Feb 2020 11:51:12 +0000 (11:51 +0000)
src/ieee754/part_shift/part_shift_dynamic.py

index f8f6d64c876ca61c48dcfab2dce4f9805a43e990..95f329ed0456233bd3f9366d66b0493347577105 100644 (file)
@@ -38,7 +38,6 @@ class PartitionedDynamicShift(Elaboratable):
         keys = list(self.partition_points.keys()) + [self.width]
         start = 0
 
-
         # break out both the input and output into partition-stratified blocks
         a_intervals = []
         b_intervals = []
@@ -71,7 +70,6 @@ class PartitionedDynamicShift(Elaboratable):
 
         print(shifter_masks)
 
-
         # Instead of generating the matrix described in the wiki, I
         # instead calculate the shift amounts for each partition, then
         # calculate the partial results of each partition << shift
@@ -98,8 +96,7 @@ class PartitionedDynamicShift(Elaboratable):
             s, e = intervals[i]
             masked = Signal(b_intervals[i].shape(), name="masked%d" % i)
             comb += masked.eq(b_intervals[i] & shifter_masks[i])
-            element = Mux(gates[i-1], masked,
-                          element)
+            element = Mux(gates[i-1], masked, element)
 
             # This calculates which partition of b to select the
             # shifter from. According to the table above, the