ad_data_regh <= AD_DAT;
ad_data_regh <= "0111111111111111" + (not(AD_DAT) + "0000000000000001");
ad_data_regh <= "0111111111111111" + (not(AD_DAT) + "0000000000000001");
FvM said:Why don't you use simply ad_data_regh <= not AD_DAT;[/]
Straight Binary/Binary Twos Complement. When OB/2C is HIGH, the digital output is
straight binary; when LOW, the MSB is inverted resulting in a twos complement output from
its internal shift register.
Yes, in twos complement representation.I have read the design manual for last design, it is true 2.5V is "0111111111111111".
BIN ABS INV 2-COMP
VAL VAL MSB VALUE
000 0 100 -4
001 1 101 -3
010 2 110 -2
011 3 111 -1
100 4 000 0
101 5 001 1
110 6 010 2
111 7 011 3
ad_data_regh <= not AD_DAT;
Or convert <= x"7fff" WHEN value = x"8000" ELSE -value;
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?