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.

[SOLVED] sinewave generator and dac?

Status
Not open for further replies.

romikot

Newbie level 6
Joined
Jun 16, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,383
Hi (English isn't my primary language so sorry for some grammar or Syntax mistakes)
I am new to fpga and vhdl, and have some confusion about some minor things.
I found a link to a sinewave generator vhdl code and explanation(i dont remmember the user who posted it BUT thank u verymuch!!!1)
Here is the link
http://vhdlguru.blogspot.co.il/2010/03/simple-sine-wave-generator-in-vhdl.html
My question is regarding that vhdl code!
In this code u only output a sinus value through a bus of 8 bits, but in practice(real life) i steel required to connect this bus to a dac????!(am i right?)
That brings me to the next question about dacs.
Is there dac or adc in fpga chips?
Im using this board
http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,400,819&Prod=GENESYS
I didnt find anything regarding dacs or adcs in the datasheet of this board.
Maybe its something thats known to every one and they dont write about it :twisted:
I use ISE 13.3 and didnt see anything regarding dacs or adcs in the templates of devise macro/primitive instantiation.
So that means that i have to buy adc and dac external to the fpga?
And final question is :) i saw some vhdl implementation of dacs on google, i didnot really read them, but it was puzzeling me, fpga's are logic devises only 0,1 .
I can assighn diffrent values to 0,1 but the same output can not have 2 diffrent values for 0 or 1(as far as i know. correct me if i wrong).
So how can u do it???:?:
 

The FPGA wont have a DAC or ADC in it, but the board probably has one connected to the FPGA. And yes, you would need to connect that 8 bit bus to the DAC (and maybe some other controller signals too, like I2C). If there isnt one on the board, then yes, you need and external one.

And I dont know what code you found on google. It will either be a DAC controller or a model of a DAC - you can only write models of analogue circuits in VHDL.
 
And I dont know what code you found on google. It will either be a DAC controller or a model of a DAC - you can only write models of analogue circuits in VHDL.

What is a model of dac?? or a model generally?? do u mean something like a simulation??
 

yes, maybe a simulation model. But without seeing the code Ive no idea.
 

And I dont know what code you found on google. It will either be a DAC controller or a model of a DAC - you can only write models of analogue circuits in VHDL.

Its not just analogue ccts, you can write models of digital ccts in vhdl too.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top