Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to generate a digitized sinusoidal input signal for DAC?

Status
Not open for further replies.

samvelc

Member level 1
Member level 1
Joined
Feb 16, 2008
Messages
32
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Armenia
Activity points
1,443
Hi all,

I have designed a DAC. Now I want to test it.
I want to apply a digitized sinusoidal signal as a input.
But I do not know how to generate such kind of input signal.

Could you please advice.
Do you have a such example.

Thanks in advance.
 
Re: Input signal for DAC

Find several methods described!
 

Re: Input signal for DAC

erikl said:
Find several methods described!

Thanks,
But I need a digitized sinusoidal input signal.
 

Re: Input signal for DAC

In the verilog-a code, instead of using count=count+1, use
Code:
count=floor(512*sin(2*M_PI*f*n*tp))+512;
for a 10-bit DAC.

You also need to remove
Code:
if(count==4096)
count=0;

...and add
Code:
n=n+1;

I might have forgotten some little details, but I'm sure you'll figure them out!
 

Re: Input signal for DAC

JoannesPaulus said:
In the verilog-a code, instead of using count=count+1, use
Code:
count=floor(512*sin(2*M_PI*f*n*tp))+512;
for a 10-bit DAC.

You also need to remove
Code:
if(count==4096)
count=0;

...and add
Code:
n=n+1;

I might have forgotten some little details, but I'm sure you'll figure them out!

Thanks,
I will try it.
 

hi friend

can you explain how to convert digital sinoidal input signal to analog in verilog.
actually i need to implement verilog code to convert sin 2pi analog signal into digital (ADC).

i can get an idea with your code.

actually i need to submit this assignment by end of this week.

please help me.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top