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.

VHDL code for quadrature NCO

Status
Not open for further replies.

missbirdie

Member level 1
Joined
May 21, 2008
Messages
35
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Egypt
Activity points
1,544
vhdl+cpld+quadrature

Hello I am new to VHDL so i really need help

I have a Spartan-3A FPGA & I need to implement DUC (Digital up converter) & DDC (Digital Down Converter).. I am having a problem in designing quadrature nco or dds considering dithering.

Can anyone help me with the VHDl code for quadrature NCO ??
Does it have to be LUT ?? or is it better to use the cordic algorithm ??

Thanks alot
 

quadrature down converter fpga

LUT based NCO is the fast and usual way. If I remember right, several NCO examples have been posted within the last month's.
 

sine rom vhdl code

yes i checked them all but none of them was using the cordic algorithm.. I just wanna know the difference .. & how each way affects the FPGA.
Besides if i have a code that generates only Sin & I need a cos signal too what can i do ??? is it just an integration process ???
thanks again
 

lut-based nco

I assume, that you'll use a LUT NCO. For full clock rate, you can utilize a dual port ROM to have sine ans cosine in parallel, for reduced clock rate, the ROM can be multiplexed.
 

    missbirdie

    Points: 2
    Helpful Answer Positive Rating
vhdl code for phase shift

As i told u i'm new to vhdl and FPGAs..actually this is my 1st code :) so what do u mean by a dual part ROM ??? do i have to get a separate ROM ?? or the memory with the Spartan-3A FPGA kit is enough ??? I need great data rate by the way.
 

vhdl code for cosine

The internal memory blocks of FPGA are generally capable of dual port operation, also with Xilinx Spartan, as far as I know. That means you have one sine ROM, e. g. for one quadrant and can access it at two ports, using different addresses and getting different data output for I and Q. You can use a single phase accumulator that is decoded twice to the ROM addresses, with a 90° offset for the Q part.In some applications, a variable phase shift for the second output may be suitable.
 
phase shifter vhdl code

is it the same idea in both DUC & DDC ?? & how does the data rate affect the design ??
 

digital phase shifter vhdl code

When NCO uses data rate == design main clock, the LUT can't be multiplexed, you need dual port ROM.
 

what do u mean by dual port ROM ?? is it avaialable in Spartan 3A FPGA ???
 

I'm not using Xilinx, but I've seen dual-port memory blocks with Spartan FPGA.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top