Re: how to connect Altera to DAC and program it with VHDL
It seems to me, that your project instructor expected some elementary knowledge of digital signal processing and digital electronics (e.g. regarding DA conversion). I guess, he also suggested some literature (or would at least on request).
Otherwise, you should have a library with basic text books and you still have internet text books, wikipedia and electronic manufacturers application literature. In my opinion, the MCP4922 datasheet gives an understandable explanation of
12 Bit resolution in the General Overview chapter.
But I wanted to give some help for your signal processing problem.
need e^(t/Time Constant) and sine(x) together to make a sound , how will I do this
I guess, he suggested to multiply both functions.
Altera cannot compute sine functions
It can in different ways.
- Use the cordic algorithm
- Use a sine table. It can be easily placed in FPGA internal memory. The VHDL tool can even calculate the sine table at compile time
- Use a second order differential respective difference equation to model the dampened oscillation directly
e^(t/Time Constant) can be simply modelled by a geometric progression, or in other words, a repeated multiply.