aboutsummaryrefslogtreecommitdiffstats
path: root/passes
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-09-11 00:07:33 -0700
committerEddie Hung <eddie@fpgeh.com>2019-09-11 00:07:33 -0700
commit6b23c7c2277e6a79dd547f42854bfe4fbe8d5565 (patch)
treee38a17f597a5cf8893fca50ab8d4c9cfe9fa0a4e /passes
parentfeb3fa65a3267acda76b7b6eea0e9ffedb281b85 (diff)
parent97e1520b13231c8170cec73774eee7a22c5dc065 (diff)
downloadyosys-6b23c7c2277e6a79dd547f42854bfe4fbe8d5565.tar.gz
yosys-6b23c7c2277e6a79dd547f42854bfe4fbe8d5565.tar.bz2
yosys-6b23c7c2277e6a79dd547f42854bfe4fbe8d5565.zip
Merge remote-tracking branch 'origin/eddie/peepopt_dffmuxext' into xc7dsp
Diffstat (limited to 'passes')
-rw-r--r--passes/pmgen/peepopt_shiftmul.pmg5
1 files changed, 3 insertions, 2 deletions
diff --git a/passes/pmgen/peepopt_shiftmul.pmg b/passes/pmgen/peepopt_shiftmul.pmg
index d4748ae19..e1da52182 100644
--- a/passes/pmgen/peepopt_shiftmul.pmg
+++ b/passes/pmgen/peepopt_shiftmul.pmg
@@ -50,8 +50,9 @@ code
if (GetSize(const_factor_cnst) > 20)
reject;
- if (GetSize(port(shift, \Y)) > const_factor)
- reject;
+ if (shift->type.in($shift, $shiftx))
+ if (GetSize(port(shift, \Y)) > const_factor)
+ reject;
int factor_bits = ceil_log2(const_factor);
SigSpec mul_din = port(mul, const_factor_port == \A ? \B : \A);