0

I want to know how the synthesizer in VIVADO will understand the conditional operator in verlig. An expression like: A = X ? Y : -Y will contain any multiplier since there is the negative sign in the second branch. Does it do first the multiplication of (-1)*Y or it won't use any multiplier at all in hardware.

Regards, Jet

1 Answer 1

3

No, it won't use any multiplier. You'll get a following structure:

enter image description here

As you can see, only one mux and one adder (to achieve two's complement) are used.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.