diff --git a/compiler/pgates/pgate.py b/compiler/pgates/pgate.py index de513cc3..d3084146 100644 --- a/compiler/pgates/pgate.py +++ b/compiler/pgates/pgate.py @@ -300,7 +300,7 @@ class pgate(design.design): bins = bins[0:bisect_left(bins, target_width) + 1] if len(bins) == 1: selected_bin = bins[0] - scaling_factor = math.ceil(target_width / width) + scaling_factor = math.ceil(target_width / selected_bin) scaled_bin = bins[0] * scaling_factor else: