Nco ip core functional description, Nco ip core functional description -1 – Altera NCO MegaCore Function User Manual
Page 18

NCO IP Core Functional Description
3
2014.12.15
UG-NCO
Figure 3-1: NCO Block Diagram
sine
cosine
f
INC
f
FM
Internal
Dither
f
DITH
Waveform
Generation
Unit
Phase Accumulator
Phase
Increment
Frequency
Modulation
Input
f
PM
Phase
Modulation
Input
Dither
Generator
D
Required
Optional
The NCO IP core allows you to generate a variety of NCO architectures. Your custom NCO includes both
time- and frequency-domain analysis tools. The custom NCO outputs a sinusoidal waveform in two's
complement representation.
The waveform for the generated sine wave is defined by the following equation:
s(nT) = A sin[2π(f
O
+ f
FM
)nT + ϕ
PM
+ ϕ
DITH
)]
where:
• T is the operating clock period
• f
O
is the unmodulated output frequency based on the input value ϕ
INC
• f
FM
is a frequency modulating parameter based on the input value ϕ
FM
• ϕ
PM
is derived from the phase modulation input value P and the number of bits (P
width
) used for this
value by the equation: ϕ
PM
= P/2^P
width
• ϕ
DITH
is the internal dithering value
• A is 2
N
-1 where N is the magnitude precision (and N is an integer in the range 10 to 32
The generated output frequency, f
o
for a given phase increment, ϕ
inc
is determined by the equation: f
0
=
ϕ
inc
f
clk
/2M Hz
©
2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, MAX, MEGACORE, NIOS, QUARTUS and STRATIX words and logos are
trademarks of Altera Corporation and registered in the U.S. Patent and Trademark Office and in other countries. All other words and logos identified as
trademarks or service marks are the property of their respective holders as described at
www.altera.com/common/legal.html
. Altera warrants performance
of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any
products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information,
product, or service described herein except as expressly agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device
specifications before relying on any published information and before placing orders for products or services.
www.altera.com
101 Innovation Drive, San Jose, CA 95134