change with sums and shifts

T

tommy

Guest
hello guys!

I 've a question how can i change this istructions in my structural with
simple sums and shifts operations?

pOut <= CONV_STD_LOGIC_VECTOR((2* CONV_INTEGER(pIn) + 1), bitWidth/2 + 1);

pOut <= CONV_STD_LOGIC_VECTOR((2* CONV_INTEGER(pIn)), bitWidth/2 + 1);

thank you in advance
 
hello guys!

I 've a question how can i change this istructions in my structural with
simple sums and shifts operations?

pOut <= CONV_STD_LOGIC_VECTOR((2* CONV_INTEGER(pIn) + 1), bitWidth/2
1);

pOut <= CONV_STD_LOGIC_VECTOR((2* CONV_INTEGER(pIn)), bitWidth/2 + 1);

thank you in advance
What's the problem? Apart from it not using the numeric_std package, o
course!

Does the synthesis tool actually infer a multiplier?

BTW, if this is course homework, kindly go elsewhere...


---------------------------------------
Posted through http://www.FPGARelated.com
 

Welcome to EDABoard.com

Sponsor

Back
Top