3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-20 23:56:38 +00:00

ice40_dsp: change unextend call condition

This commit is contained in:
Anhijkt 2025-04-10 17:42:39 +03:00
parent 41a7d4bb81
commit 4a178d7cff

View file

@ -32,8 +32,8 @@ code sigA sigB sigH
++i;
return sig.extract(0, i);
};
sigA = port(mul, \A).is_fully_const() ? port(mul, \A) : unextend(port(mul, \A));
sigB = port(mul, \B).is_fully_const() ? port(mul, \B) : unextend(port(mul, \B));
sigA = param(mul, \A_SIGNED).as_bool() ? unextend(port(mul, \A)) : port(mul, \A);
sigB = param(mul, \B_SIGNED).as_bool() ? unextend(port(mul, \B)) : port(mul, \B);
SigSpec O;
if (mul->type == $mul)