--- Quote Start ---
The light doesn't change. The light on the PSD(position sensor detector) will produce two currents I1 and I2 which decide the position of the light (X=(I1+I2)/(I1-I2), this will be performed within FPGA, right now all we want are the currents). After modulation and demodulation we get the interest current signal of 154Khz, combined with noises from other bands.
--- Quote End ---
This does not make sense. Perhaps you can post a link to the position sensor. You have not clearly described how the light is getting modulated.
--- Quote Start ---
I am quite confused...
--- Quote End ---
This is ok. You already said this is the first time you have played with hardware.
--- Quote Start ---
from my understanding, a ALT_PLL can generate a sub-frequency clock, i.e. divide the original signal frequency by 1, 2...etc. The output of PLL is a clock that is phase locked to the input signal. I would then transfer this clock into a sine wave
--- Quote End ---
Here is where you are misunderstanding how things can work in the digital world; you do not transfer the 154kHz sine wave into the
analog domain to multiply by the sensor output, you sample the sensor output and take it into the
digital domain, and you perform the operations there.
--- Quote Start ---
and then multiply it with the original 154Khz signal and pass the result through a LPF. And all of the above steps will be done within FPGA.
--- Quote End ---
There is no
sine wave from an ALT_PLL, it is a square wave, it is a clock signal. The way you make the digital values that correspond to a stream of samples from a sine wave and a cosine wave is the NCO component clocked by the output of the PLL.
You've got the right idea, you're just a little confused on the implementation.
--- Quote Start ---
what you describe above seems more complex... or maybe I am not following...
--- Quote End ---
We're saying the same things.
--- Quote Start ---
sorry if I offend anybody here... I was thinking abt using Virtex long time ago but now I am back to Cyclone II.
--- Quote End ---
I wasn't offended, I don't care what devices you want to use :)
Cheers,
Dave