FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
6673 Discussions

Interfacing MegaWizard NCO with DA converter

Altera_Forum
Honored Contributor II
1,108 Views

Dear all 

 

 

I'm trying to connect MegaWizard NCO output to Digital-to-Analog converter. Since NCO output is two's complement and DAC does not accept two's complement, I need to convert two's complement to standard number system. Is there a simple way of converting in VHDL? Which library do I have to use? 

 

Thank you and I'm look forward to hearing from you.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
423 Views

Hi, 

 

What is your DAC's number system. If it is not 2's complement then it is likely to be offset binary and then conversion is easy, just invert the sign bit. 

 

Kaz
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

Kaz, 

 

I changed my code and now I can see correct and clean spectrum. Thank you very much! 

 

ziwukim
0 Kudos
Reply