--- Quote Start ---
Ok, thanks.
Thanks Dave.
If you used your DAC to generate a full-scale sinusoid, then the sinusoid would have a peak voltage of 1V, or RMS voltage of 1/sqrt(2)V. The power into a 50-Ohm load would be P = V^2/R = 1/(2*50) = 10mW = 10dBm. So from that analysis you can see that if you are generating a sinusoid output, you have an appropriate DAC voltage, i.e., you can generate a 0dBm signal.
i'm using the DAC to generate a white noise (14 bits LFSR - generated in fpga, maybe i should decrease the number of bits. But what happens, is the noise still be white?).
However, you have not provided a specification on what the noise floor in the DAC output should be, eg., if you output 0dBm, you are not exercising the MSB of the DAC, so is 13-bits good enough? When you drop down 20dB more, you stop exercising the top 4-bits, so is 10-bits of DAC output good enough?
I realy dont know. How do i calculate the SNR of DAC?
Its also unlikely that you are generating a sinusoid output, so you first need to determine the RMS power of a signal that is representative of what you will really be transmitting. For example, noise-like signals have large excursions from the mean, and to avoid clipping, you keep the RMS at about 1/4 of the DAC output, i.e., you've lost 2-bits.
If you have a 270MHz DAC, you can probably generate frequencies up to about 0.4 x 270MHz = ~100MHz without too much distortion. What frequencies do you need to generate?
If you are going to implement your gain control digitally, you could measuring the power of the filtered-sum (via the sum of the samples squared over some integration time), and then add a multiplier between the sum and the DAC, to increase or decrease the signal power. If your gain can be in steps of 2 (2, 4, 8, 16, etc), then you do not need a multiplier, as a right shift will do (you will also need to check whether rounding of your gain block output is required, rather than truncation).
My gain should go from -19 dB to 0 dB in steps of 1 dB. I need a multiplier or a divider (what is better, start with a -19 dbm and multiply to increse the gain or start with 0 dbm and divide to achive -19 dbm?) . Does the quantization noise apply?
So what requires the 20dB of gain? Is it the signal inside the FPGA, or is it the device you are driving with the DAC? If the signal within the FPGA has the 20dB of dynamic range, then you would want to adjust the power earlier in the signal processing chain, not wait until the DAC output.
Each one of the filters output must be 0 dbm (maximum) at the DAC output.
OBS: Do you know how to calculate spurious emission?
Cheers,
PAtrÃcio.