S
Steve Pope
Guest
Tim Wescott <tim@seemywebsite.com> wrote:
Of course, synthesizers need to be bit-exact and conform to the
HDL language spec
That is not the example I gave, but in either example you still would
not need two multipliers, just one multiplier and some small amount of
logic; any reasonable synthesizer would not use two multipliers
worth of gates.
Steve
On Tue, 14 Feb 2017 06:52:32 +0000, Steve Pope wrote:
If for example you compute (a * b) and also compute (a * -b),
the synthesizer is smart enough to know there are not two full
multipliers needed.
I would be very leery of an optimizer that felt free to optimize things
so that they are no longer bit-exact --
Of course, synthesizers need to be bit-exact and conform to the
HDL language spec
and for some combinations of
bits, I'm pretty sure that -(a * b) is not necessarily (a * -b).
That is not the example I gave, but in either example you still would
not need two multipliers, just one multiplier and some small amount of
logic; any reasonable synthesizer would not use two multipliers
worth of gates.
Steve