How to calculate amplitude and phase of a digital/analog signal in VHDL?

R

ronak283

I am a student who is doing a project in VHDL... I need to find the
amplitude and phase of an analog and digital signal in VHDL ...

I am using an ADC to convert the analog to digital which then goes into
the simple computer module in VHDL which calculates it frequency and
all that...

I want to know given the initial analog signal or the converted digital
signal, how can I find the original signals amplitude and phase?

If anyone has any suggestions or code that can be useful please reply
ASAP!!
 
Joined
Jul 27, 2006
Messages
8
Reaction score
0
How to calculate amplitude and phase of a A/D signal

Hi,
my name is Yassir Boukhriss,
i think the amplitude depends on the precision of the A/D. if it was a 12 bit A/D the amplitude would go between -2^11 to 2^11. As far as frequency goes, you can do the fft of the signal, and i think there is an fft core in the core generator if you are using the xilinx tool ISE.
Good luck!
 
J

jens

I want to know given the initial analog signal or the converted digital
signal, how can I find the original signals amplitude and phase?

Assuming you're looking for the dominant signal's frequency, amplitude
& phase... do an FFT of the input, calculate the magnitudes
(sqrt(real^2 + imag^2)), find the largest magnitude, then calculate the
phase (atan(imag/real)). Note that the phase might be meaningless,
depending on what the FFT's time period is related to. Also note
you'll probably want to apply a window before the FFT, and the
amplitude will have to be scaled accordingly.

You're probably better off beginning to understand what you're trying
to do from a DSP perspective, then figuring out how to code it in VHDL.
FFT cores are widely available from FPGA vendors, also check
opencores.org.
 
D

Dave Higton

I want to know given the initial analog signal or the converted digital
signal, how can I find the original signals amplitude and phase?

Phase is a measurement between two signals. What is the other signal
in your case?

Dave
 
C

curtis_m_watson

Take a look at the CORDIC algorithm.
This algorithm can be implemented with adders and shifters.

-cmw
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top