zoulzubazz
Member level 5
hey guys,
i am getting data from a 12 bit ADC into an FPGA, so '000000000000' represents the lowest ADC value and '111111111111' represents the highest value ADC(unsigned). Now to manipulate this data inside an FPGA I am having to cast the ADC input into a 'signed' value like so,
adc_sgn := signed(adc_unsgn);
My question is wouldn't this conversion from unsigned to signed change the value and 12 bit ADC word holds, since (for example) '1111' in unsigned representation is 15 where as it is -6 in signed 2's compliment representation? Thanks.
i am getting data from a 12 bit ADC into an FPGA, so '000000000000' represents the lowest ADC value and '111111111111' represents the highest value ADC(unsigned). Now to manipulate this data inside an FPGA I am having to cast the ADC input into a 'signed' value like so,
adc_sgn := signed(adc_unsgn);
My question is wouldn't this conversion from unsigned to signed change the value and 12 bit ADC word holds, since (for example) '1111' in unsigned representation is 15 where as it is -6 in signed 2's compliment representation? Thanks.