From f590ecf83c2f1f318982a3152771e51cc9edef71 Mon Sep 17 00:00:00 2001 From: jcirimel Date: Sat, 18 Apr 2020 05:51:21 -0700 Subject: [PATCH] fix minimum pinv sizing --- compiler/pgates/pgate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/pgates/pgate.py b/compiler/pgates/pgate.py index f3fc9abc..a942b35f 100644 --- a/compiler/pgates/pgate.py +++ b/compiler/pgates/pgate.py @@ -332,7 +332,7 @@ class pgate(design.design): debug.error("invalid tx type") bins = bins[0:bisect_left(bins, target_width) + 1] if len(bins) == 1: - selected_bins = (bins[0], math.ceil(target_width / bins[0])) + scaled_bins = [(bins[0], math.ceil(target_width / bins[0]))] else: scaled_bins = [] scaled_bins.append((bins[-1], 1))