3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-29 03:45:52 +00:00

Make one check $shift(x)? only; change testcase to be 8b

This commit is contained in:
Eddie Hung 2019-09-06 22:48:23 -07:00
parent 51b559af2c
commit e2c2d784c8
2 changed files with 5 additions and 4 deletions

View file

@ -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);