Altera_Forum
Honored Contributor
13 years agoLPM_mult : dynamic reduction with signed number
Hello, I’m using a very simple setup configuration with quartus 2 and cyclone III :
full scale analog signal - - > CAN 14 bit -- > DAC 14 bit : OK no distortion After that I add a LPM_mult function between CAN and DAC .: full scale analog signal - - > CAN 14 bit - -> LPM_Mult -- > DAC 14 bit I’d like to be able to perform the same result: full scale signal at the output without distortion. First I use simple LPM_ mult with fixed input b value: I choose this value to have a full scale signal at the output. Thus, with unsigned value ( I add a converter from unsigned to signed with CAN and DAC) input b is configured with all bits to VCC : It works. I do the same with signed value : b input is set to 8191 in decimal, during wizard configuration. The dynamic output is reduced. I have tried to keep all the bits at the output ( 14+ 14 ) and manually choose the bits , not only the MSB…no success. I’m sure it is a truncation issue with signed number…But I don’t know how simply recover the full dynamic at the output… Thank’s for your help. I will put the snapshot solution.