0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
NCO-DDS-X2-U2

NCO-DDS-X2-U2

  • 厂商:

    LATTICE(莱迪思半导体)

  • 封装:

    -

  • 描述:

    IP CORE NCO/DDS LATTICEXP2 CONF

  • 数据手册
  • 价格&库存
NCO-DDS-X2-U2 数据手册
Numerically Controlled Oscillator IP Core User’s Guide June 2010 IPUG36_02.5 Table of Contents Chapter 1. Introduction .......................................................................................................................... 4 Quick Facts ........................................................................................................................................................... 4 Features ................................................................................................................................................................ 8 Chapter 2. Functional Description ...................................................................................................... 10 Principle of NCO ........................................................................................................................................ 10 Lattice NCO Implementation ...................................................................................................................... 11 Sum-of-Angles Memory Reduction ............................................................................................................ 12 Improving Quality of Output ....................................................................................................................... 14 Multi-channel NCO..................................................................................................................................... 16 Quadrature Amplitude Modulation (QAM).................................................................................................. 16 Signal Descriptions ............................................................................................................................................. 17 Latency................................................................................................................................................................ 18 Timing Diagrams ................................................................................................................................................. 18 Chapter 3. Parameter Settings ............................................................................................................ 20 Architecture Tab.................................................................................................................................................. 21 Multi-channel Mode.................................................................................................................................... 22 Wave Characteristics ................................................................................................................................. 22 Phase Correction ....................................................................................................................................... 22 QAM Mode ................................................................................................................................................. 22 FSK/PSK Tab...................................................................................................................................................... 23 FSK Mode .................................................................................................................................................. 23 PSK Mode .................................................................................................................................................. 23 Implementation Tab ............................................................................................................................................ 24 Memory Type ............................................................................................................................................. 24 DSP Block .................................................................................................................................................. 24 Data Output Ports ...................................................................................................................................... 24 Optional I/O Ports....................................................................................................................................... 25 Pipeline Tab ........................................................................................................................................................ 25 Pipeline Options ......................................................................................................................................... 25 Summary Tab...................................................................................................................................................... 26 Chapter 4. IP Core Generation............................................................................................................. 27 Licensing the IP Core.......................................................................................................................................... 27 Getting Started .................................................................................................................................................... 27 IPexpress-Created Files and Top Level Directory Structure............................................................................... 30 Instantiating the Core .......................................................................................................................................... 31 Running Functional Simulation ........................................................................................................................... 31 Synthesizing and Implementing the Core in a Top-Level Design ....................................................................... 32 Hardware Evaluation........................................................................................................................................... 32 Enabling Hardware Evaluation in Diamond:............................................................................................... 32 Enabling Hardware Evaluation in ispLEVER:............................................................................................. 33 Updating/Regenerating the IP Core .................................................................................................................... 33 Regenerating an IP Core in Diamond ........................................................................................................ 33 Regenerating an IP Core in ispLEVER ...................................................................................................... 33 Chapter 5. Support Resources ............................................................................................................ 35 Lattice Technical Support.................................................................................................................................... 35 Online Forums............................................................................................................................................ 35 Telephone Support Hotline ........................................................................................................................ 35 E-mail Support ........................................................................................................................................... 35 Local Support ............................................................................................................................................. 35 © 2010 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice. IPUG36_02.5, June 2010 2 NCO IP Core User’s Guide Lattice Semiconductor Table of Contents Internet ....................................................................................................................................................... 35 References.......................................................................................................................................................... 35 LatticeECP/EC ........................................................................................................................................... 35 LatticeECP2M ............................................................................................................................................ 35 LatticeECP3 ............................................................................................................................................... 35 LatticeSC/M................................................................................................................................................ 36 LatticeXP.................................................................................................................................................... 36 LatticeXP2.................................................................................................................................................. 36 Revision History .................................................................................................................................................. 36 Appendix A. Resource Utilization ....................................................................................................... 37 LatticeEC Devices............................................................................................................................................... 37 Ordering Part Number................................................................................................................................ 37 LatticeECP Devices ............................................................................................................................................ 38 Ordering Part Number................................................................................................................................ 38 LatticeECP2 Devices .......................................................................................................................................... 39 Ordering Part Number................................................................................................................................ 39 LatticeECP2M Devices ....................................................................................................................................... 39 Ordering Part Number................................................................................................................................ 39 LatticeECP3 Devices .......................................................................................................................................... 40 Ordering Part Number................................................................................................................................ 40 LatticeSC/M Devices........................................................................................................................................... 40 Ordering Part Number................................................................................................................................ 40 LatticeXP Devices ............................................................................................................................................... 40 Ordering Part Number................................................................................................................................ 40 LatticeXP2 Devices ............................................................................................................................................. 41 Ordering Part Number................................................................................................................................ 41 IPUG36_02.5, June 2010 3 NCO IP Core User’s Guide Chapter 1: Introduction Numerically Controlled Oscillators (NCO), also called Direct Digital Synthesizers (DDS), offer several advantages over other types of oscillators in terms of accuracy, stability and reliability. NCOs provide a flexible architecture that enables easy programmability such as on-the-fly frequency/phase. NCOs are used in many communications systems including: • Digital up/down converters used in 3G wireless and software radio systems • Digital PLLs • RADAR systems • Drivers for optical or acoustic transmissions • Multilevel FSK/PSK modulators/demodulators Lattice provides a parameterizable NCO IP core that supports multiple channels and a Quadrature Amplitude Modulation (QAM) mode, in addition to other usual configurations. The resource utilization and performance trade-off can be tuned by configuring different parameters of the IP core to obtain the optimal Spurious Free Dynamic Range (SFDR) result. The Lattice NCO core offers a variety of memory reduction schemes and mechanisms for SFDR improvement. Quick Facts Table 1-1 through Table 1-9 give quick facts about the NCO IP core for LatticeEC™, LatticeECP™, LatticeECP2™, LattticeSC™, LatticeSCM™, LatticeXP™, LatticeECP2M™, LatticeXP2™, and Lattice ECP3™ devices. Table 1-1. NCO IP core for LatticeEC Devices Quick Facts NCO IP Configuration Constant FSK/PSK with 32bit phase resolution, 1 channel Core Requirements FPGA Families Supported Minimal Device Needed LUTs sysMEM EBRs Registers LFEC1E 1800 300 3800 3 2 5 800 300 1900 N/A ® Diamond 1.0 or ispLEVER® 8.1 Lattice Implementation Synopsys® Synplify® Pro for Lattice D-2009.12L-1 Synthesis Aldec® Active-HD® 8.2 Lattice Edition II Simulation IPUG36_02.5, June 2010 LFEC6E LFEC20E-5F672C MULT18X18ADDSUB Design Tool Support Variable FSK/PSK with 32bit phase resolution, 16 channe LatticeEC LFEC3E Targeted Device Resource Utilization Variable FSK/PSK with 32bit phase resolution, 1 channel Mentor Graphics® ModelSim® SE 6.3F 4 NCO IP Core User’s Guide Lattice Semiconductor Introduction Table 1-2. NCO IP core for LatticeECP Devices Quick Facts NCO IP Configuration Constant FSK/PSK with 32bit phase resolution, 1 channel Core Requirements FPGA Families Supported LatticeECP Minimal Device Needed LFECP6E Targeted Device LUTs Resource Utilization sysMEM EBRs Registers MULT18X18ADDSUB Variable FSK/PSK with 32bit phase resolution, 16 channe LFECP20E-5F672C 100 300 400 3 2 5 100 300 500 2 0 4 Lattice Implementation Design Tool Support Variable FSK/PSK with 32bit phase resolution, 1 channel Diamond 1.0 or ispLEVER 8.1 Synthesis Synopsys Synplify Pro for Lattice D-2009.12L-1 Aldec Active-HDL 8.2 Lattice Edition II Simulation Mentor Graphics ModelSim SE 6.3F Table 1-3. NCO IP core for LatticeECP2 Devices Quick Facts NCO IP Configuration Constant FSK/PSK with 32bit phase resolution, 1 channel Core Requirements FPGA Families Supported LFE2-6E Targeted Device Resource Utilization LFE2-50E-7F672C 100 300 300 3 1 3 100 300 500 0 4 sysMEM EBRs Registers MULT18X18ADDSUB 2 Lattice Implementation Design Tool Support Diamond 1.0 or ispLEVER 8.1 Synthesis Synopsys Synplify Pro for Lattice D-2009.12L-1 Aldec Active-HDL 8.2 Lattice Edition II Simulation IPUG36_02.5, June 2010 Variable FSK/PSK with 32bit phase resolution, 16 channe LatticeECP2 Minimal Device Needed LUTs Variable FSK/PSK with 32bit phase resolution, 1 channel Mentor Graphics ModelSim SE 6.3F 5 NCO IP Core User’s Guide Lattice Semiconductor Introduction Table 1-4. NCO IP core for LatticeSC Devices Quick Facts NCO IP Configuration Constant FSK/PSK with 32bit phase resolution, 1 channel Core Requirements LFSC3GA15E Minimal Device Needed LUTs sysMEM EBRs Registers Design Tool Support Variable FSK/PSK with 32bit phase resolution, 16 channe LatticeSC FPGA Families Supported LFSC3GA25E-7F900C Targeted Device Resource Utilization Variable FSK/PSK with 32bit phase resolution, 1 channel 2200 300 5200 3 1 3 1100 300 2600 MULT18X18ADDSUB N/A Lattice Implementation Diamond 1.0 or ispLEVER 8.1 Synopsys Synplify Pro for Lattice D-2009.12L-1 Synthesis Aldec Active-HDL 8.2 Lattice Edition II Mentor Graphics ModelSim SE 6.3F Simulation Table 1-5. NCO IP core for LatticeSCM Devices Quick Facts NCO IP Configuration Constant FSK/PSK with 32bit phase resolution, 1 channel Core Requirements LFSCM3GA15EP1 Minimal Device Needed LUTs LFSCM3GA25EP1-7F900C Design Tool Support 2200 300 5200 3 1 3 1100 300 2600 sysMEM EBRs Registers Variable FSK/PSK with 32bit phase resolution, 16 channe LatticeSCM FPGA Families Supported Targeted Device Resource Utilization Variable FSK/PSK with 32bit phase resolution, 1 channel MULT18X18ADDSUB N/A Lattice Implementation Diamond 1.0 or ispLEVER 8.1 Synopsys Synplify Pro for Lattice D-2009.12L-1 Synthesis Aldec Active-HDL 8.2 Lattice Edition II Mentor Graphics ModelSim SE 6.3F Simulation IPUG36_02.5, June 2010 6 NCO IP Core User’s Guide Lattice Semiconductor Introduction Table 1-6. NCO IP core for LatticeXP Devices Quick Facts NCO IP Configuration Constant FSK/PSK with 32bit phase resolution, 1 channel Core Requirements FPGA Families Supported LatticeXP Minimal Device Needed LFXP3E LUTs Design Tool Support 1800 300 3800 3 2 5 800 300 1900 sysMEM EBRs Registers Variable FSK/PSK with 32bit phase resolution, 16 channe LFXP20E-5F484C Targeted Device Resource Utilization Variable FSK/PSK with 32bit phase resolution, 1 channel MULT18X18ADDSUB N/A Lattice Implementation Diamond 1.0 or ispLEVER 8.1 Synopsys Synplify Pro for Lattice D-2009.12L-1 Synthesis Aldec Active-HDL 8.2 Lattice Edition II Mentor Graphics ModelSim SE 6.3F Simulation Table 1-7. NCO IP core for LatticeECP2M Devices Quick Facts NCO IP Configuration Constant FSK/PSK with 32bit phase resolution, 1 channel Core Requirements LFE2M20E Minimal Device Needed LUTs LFE2M-35E-7F484C 100 300 300 3 1 3 100 300 500 2 0 4 sysMEM EBRs Registers MULT18X18ADDSUB Diamond 1.0 or ispLEVER 8.1 Lattice Implementation Design Tool Support Variable FSK/PSK with 32bit phase resolution, 16 channe LatticeECP2M FPGA Families Supported Targeted Device Resource Utilization Variable FSK/PSK with 32bit phase resolution, 1 channel Synopsys Synplify Pro for Lattice D-2009.12L-1 Synthesis Aldec Active-HDL 8.2 Lattice Edition II Mentor Graphics ModelSim SE 6.3F Simulation IPUG36_02.5, June 2010 7 NCO IP Core User’s Guide Lattice Semiconductor Introduction Table 1-8. NCO IP core for LatticeXP2 Devices Quick Facts NCO IP Configuration Variable FSK/PSK with 32bit phase resolution, 1 channel Constant FSK/PSK with 32bit phase resolution, 1 channel Core Requirements FPGA Families Supported LatticeXP2 Minimal Device Needed LFXP2-5E LFXP2-17E-7F484CES Targeted Device LUTs Resource Utilization 100 300 300 3 1 3 100 300 500 2 0 4 sysMEM EBRs Registers MULT18X18ADDSUB Diamond 1.0 or ispLEVER 8.1 Lattice Implementation Design Tool Support Variable FSK/PSK with 32bit phase resolution, 16 channe Synopsys Synplify Pro for Lattice D-2009.12L-1 Synthesis Aldec Active-HDL 8.2 Lattice Edition II Mentor Graphics ModelSim SE 6.3F Simulation Table 1-9. NCO IP core for LatticeECP3 Devices Quick Facts NCO IP Configuration Variable FSK/PSK with 32bit phase resolution, 1 channel Constant FSK/PSK with 32bit phase resolution, 1 channel Core Requirements FPGA Families Supported LatticeECP3 Minimal Device Needed LFE3-35EA LFE3-95E-7FN672CES Targeted Device LUTs Resource Utilization 100 300 400 3 1 3 100 300 500 4 0 8 sysMEM EBRs Registers MULT18X18C Diamond 1.0 or ispLEVER 8.1 Lattice Implementation Design Tool Support Variable FSK/PSK with 32bit phase resolution, 16 channe Synopsys Synplify Pro for Lattice D-2009.12L-1 Synthesis Aldec Active-HDL 8.2 Lattice Edition II Mentor Graphics ModelSim SE 6.3F Simulation Features • Supports single or multi channel operation up to 16 channels • Run time variable phase increment input  and phase offset input  • Up to 32-bit user-configurable phase resolution • Up to 20-bit user-configurable quantizer resolution IPUG36_02.5, June 2010 8 NCO IP Core User’s Guide Lattice Semiconductor Introduction • Up to 32-bit user-configurable amplitude resolution • User-configurable memory saving architectures – 1/2 wave, 1/4 wave or full wave • User-selectable sum of angles (SOA) optimization for memory saving • Up to 4-bit user-selectable phase dithering correction • User-selectable trigonometric correction for SFDR improvement • Option for truncating or rounding the quantizer output when neither dithering nor trigonometric correction is used. • User-selectable QAM mode support • Provides high-SFDR up to 115 dB • Provides sine, cosine or quadrature outputs. • User configurable output polarity IPUG36_02.5, June 2010 9 NCO IP Core User’s Guide Chapter 2: Functional Description This chapter provides a functional description of the NCO IP core. Figure 2-1 shows a top-level inteface diagram for the NCO IP core. Figure 2-1. Top-level Interface Diagram for NCO IP Core clk rstn sr ce clear fskin fskwe pskin pskwe chin iin qin NCO outvalid sine cosine chout phout iout qout nextqamin Principle of NCO The NCO generates a sine waveform using the concept of direct digital synthesis. In direct digital synthesis, the samples of the sine wave are stored in memory and are read out to generate the output sine wave. The frequency of the output sine wave is controlled by the clock speed and appropriate skipping of intermediate data points. In the simplest scenario, the sampled data for one full wave period is stored in memory and is directly used for the output. However, other enhanced methods are frequently used to reduce the memory size requirements. For example, only a half or a quarter cycle of the waveform could be stored in memory and the memory address and output sign could be manipulated to get the full cycle waveform. Another useful technique for memory reduction is to consider the input angle as the sum of a coarse angle and a fine angle and compute the output from coarse and fine look-up tables using the sum of angles trigonometric identity. The simplest full wave NCO is considered first to explain the concepts and bring out the notations. The full wave corresponding to one period of the sine wave is divided into N segments. The incremental angle for each segment, denoted as , is equal to 2/N and the phase values corresponding to one period are given by: i = 2i N i = 0, 1, 2, ..., N-1 (1) The output values corresponding to the phase sequence, given in Equation 2, are stored in the look-up table. Figure 2 shows the mapping of angle to sine waveform. di = sini = sin 2i N (2) The phase index, i is generated either sequentially or in increments and used to address the memory look-up table. The output of the look-up table is the sine wave sample. The index increment can be any value greater than zero, including fractional values. IPUG36_02.5, June 2010 10 NCO IP Core User’s Guide Lattice Semiconductor Functional Description Figure 2-2. Mapping of Linear Phase Angle to Sine Wave Phase ()  Ts 2  Time Period (T) Amplitude Time Lattice NCO Implementation The key elements of a simple NCO are the phase accumulator and waveform look-up table. The phase accumulator adds a constant phase increment stored in the phase increment register to the accumulated phase at every clock cycle. The accumulated phase provides addresses for the look-up table. The accumulated phase is usually quantized before addressing the look-up table to allow for fractional phase index increments. The Lattice NCO implementation is shown in Figure 2-3. This figure shows a single channel NCO, with FSK (Frequency Shift Keying) and PSK (Phase Shift Keying) inputs and a full wave look-up table. It also shows optional modules for dithering and trigonometric correction. The functional blocks of NCO IP are described in the following sections. Figure 2-3. Lattice NCO Implementation sin() (sine/cosine outputs) Phase Quantizer fskin  Phase Increment Register a + + Dithering Q( )  Trig. correction LUT Phase Register Phase Accumulator pskin fractional  Optional Modules  Phase Offset Register IPUG36_02.5, June 2010 11 NCO IP Core User’s Guide Lattice Semiconductor Functional Description Phase Increment Register (for FSK) The phase increment register stores the phase value () that gets added up to the accumulated phase at every clock cycle. The phase increment linearly decides the frequency of the output signal. Hence, this input can be used for frequency shift keying (FSK) modulation. The phase increment is either fixed or read dynamically from an input port, fskin, depending on how the NCO is configured. The output frequency is always a fraction of the clock frequency of the system. Phase Accumulator The phase accumulator computes the phase angle value that is used to address the look-up tables used for the output sine signal generation. The phase angle at any cycle is equal to the phase angle at the last cycle plus the phase increment. For cycle i, i = i-1 + . The width of the accumulator is specified by the user parameter, “Phase resolution”. For a given accumulator width, phase resolution is highest when the phase increment is equal to 1 and reduces for values greater than 1. Phase Shift Keying A constant phase input is added to the accumulated phase before addressing the look-up table. This is useful for implementing phase shift keying (PSK) modulation of the NCO output. The user can choose no phase offset, a fixed phase offset or a variable phase offset (PSK). The variable offset is applied through the PSK input (pskin). Any phase offset that is added causes a shift in the phase angle and a corresponding linear phase shift in the output sine signal. Quantizer The output of phase accumulator (or the optional PSK or dithering module) drives the quantizer. The quantizer scales down the accumulator output to reduce the size of the look-up table. Assuming the look-up able has integer resolution, the quantizer provides a mechanism for fractional phase increments. The Quantizer output width decides the depth of the look-up table and is normally less than the accumulator output width. This allows high precision accumulation operation while using less memory. Look-up Table The central part of the NCO is the look-up table which stores the values of the sine wave corresponding to equally spaced phase angles in the (0,2) interval. If the Wave size parameter is equal to “half” or “quarter”, sine wave samples corresponding to (0,) or (0, /2) respectively are stored in the look-up table. As the cosine of an angle can be derived from the sine of a shifted angle, the cosine value, if required, is read from the same look-up table by manipulating the address. The depth of the look-up table is always a power of 2 and is determined by the userdefined parameter Quantizer resolution. The width of the look-up table is, in most cases, equal to the output width. The look-up table is implemented using block or distributed memories, which is selected by the user parameter Memory type. The memory is addressed by the phase angle index, which is generated by the accumulator and quantizer blocks. Half-wave storage reduces the memory requirement by half, but uses slightly more logic and increases the latency by one cycle. Except for very small look-up table configurations, the user may better choose half-wave storage to reduce memory usage. The user can also choose a quarter-wave storage to reduce memory by another half (half of what is needed for half-wave storage). In the quarter-wave case, however, the latency increases by 1 cycle and additional logic is used compared to half-wave implementation. Sum-of-Angles Memory Reduction As the sine wave samples are stored in memory in direct digital synthesis NCOs, increasing the phase resolution of the output leads to corresponding increase in the size of the look-up table. The amount of memory required can be greatly reduced by making use of the “sum of angles” trigonometric identity and by using additional multipliers and adders after the memory output. This is achieved by dividing the angle space into coarse sub-divisions and then writing the phase angle as a sum of the nearest coarse angle and an additive corrective angle (fine angle). Consider Equation 1 that relates phase angle to an integer angle index. The phase angle resolution of N that is used in that equation can be achieved by the following method. Define the following two sets of angles: coarse and fine, by choosing C and F to satisfy the equation C*F=N. IPUG36_02.5, June 2010 12 NCO IP Core User’s Guide Lattice Semiconductor Functional Description Coarse angle set: cj = 2j C j = 0, 1, 2, ..., C-1 (3) fk = 2k CF k = 0, 1, 2, ..., F-1 (4) Fine angle set: Any phase angle i of Equation 1 can be written as a sum of an angle in the coarse set and one in the fine set as: i = cx + fy (5) where x = i div F and y = i mod F. The sine and cosine values of i can be computed using the sine and cosine values of cx and fy using the following trigonometric identity: sin (i) = sin(cx + fy) = sin(cx)*cos(fy) + cos(cx)*sin(fy) cos (i) = cos(cx + fy) = cos(cx)*cos(fy) - sin(cx)*sin(fy) The look-up tables need only to store the sine and cosine values for coarse and fine phase angle sets only. An implementation of the sum of angles scheme is shown in Figure 2-4. IPUG36_02.5, June 2010 13 NCO IP Core User’s Guide Lattice Semiconductor Functional Description Figure 2-4. Sum of Angles Memory Reduction 0 1 2 SIN(A) x 3 COARSE ANGLE (A) + SIN(A+B) COS(A) x 253 254 255 SIN(A+B) = SIN(A)COS(B)+COS(A)SIN(B) 256X16 RAM (COARSE) 0 1 2 COS(A+B) = COS(A)COS(B)-SIN(A)SIN(B) x SIN(B) 3 - + FINE ANGLE (B) COS(A+B) x COS(B) 253 254 255 256X16 RAM (FINE) This sum of angle scheme uses four multipliers and two adders after the look-up table. However, the memory used is much less compared with the full-wave scheme without sum of angles reduction. For a typical example of 16-bit quantizer resolution, sum of angles scheme can lead to more than 98% memory saving, compared to the full-wave implementation. Improving Quality of Output A common measure of the output quality of NCO is the Spurious Free Dynamic Range (SFDR). This roughly indicates the degree of power separation between the main lobe and the next strongest side lobe in the power spectral density plot. The SFDR can be improved using either phase dithering or trigonometric correction. Phase dithering diffuses the concentration of phase quantization noise by adding a small random value to the accumulated phase before quantization. Trigonometric correction serves to improve the SFDR in a more deterministic way by adding a correction factor computed from the discarded LSB bits, to the output. The SFDR for the NCO output without dithering or trigonometric correction is approximately equal to 6*Quantizer resolution. IPUG36_02.5, June 2010 14 NCO IP Core User’s Guide Lattice Semiconductor Functional Description Phase Dithering Truncation in phase address output from accumulator, results in amplitude errors at the output of the sine or cosine waveforms. These errors are periodic in nature regardless of the frequency of operation. Due to the periodicity of these errors in time, they appear as spurious frequencies in the frequency spectrum. This reduces the SFDR of the output signal. In order to improve the SFDR, random phase error is introduced in the least significant bits of the look up table address. Introduction of this randomness minimizes the periodicity of the errors in time domain, resulting in reduced strength of the spurious frequencies in frequency spectrum. This SFDR improvement is achieved at the cost of reduced signal-to-noise ratio (SNR) at the output. Phase dithering is implemented by adding a random number to the phase address output of the accumulator before it is given to the quantizer. The word length of the random number is user programmable based on the parameter Dithering bits. Trigonometric Correction If the SFDR requirements are more stringent and cannot be met by the phase dithering option, then trigonometric phase correction implementation should be used. This implementation improves SFDR by 46 dB over the nophase-correction implementation and by 34 dB over the phase dithering implementation. The phase correction is implemented on the output samples from the look-up table memories as shown in Figure 2-5. In this implementation the truncated LSBs of the phase accumulator are used for phase correction using trigonometric properties as explained below: For any  and a < /2, sin ( + )  sin () +  * cos () cos ( + )  cos () -  * sin () This implementation requires two additional multipliers and two adders and one constant multiplier as shown in the figure. Figure 2-5. Trigonometric Phase Correction cos    sin (+) MSB  sin  LSB  – IPUG36_02.5, June 2010 15  cos (+) NCO IP Core User’s Guide Lattice Semiconductor Functional Description Multi-channel NCO In multi-channel operation, the NCO can generate outputs for up to 16 channels. All these outputs will timeshare the output ports. The multi-channel implementation of the NCO contains all the functional blocks required by the single channel NCO. In addition to those blocks, it uses memories for storing the phase increment values, phase offset values and phase accumulator output values for each channel. Quadrature Amplitude Modulation (QAM) In addition to frequency and phase modulations, this NCO can also be used for quadrature amplitude modulation (QAM). These modulations are ubiquitous in wireless and wireline communications systems. Four multipliers and two adders are required for implementing QAM. The QAM implementation is shown in Figure 2-6. Figure 2-6. QAM Implementation iin cosine q in x + x sine iout – + qout x x IPUG36_02.5, June 2010 16 NCO IP Core User’s Guide Lattice Semiconductor Functional Description Signal Descriptions Table 2-1. Interface Signal Descriptions Port Bits I/O Description All Configurations clk 1 I System clock (reference clock for input and output data). rstn 1 I System wide asynchronous active low reset signal. sine 4 - 32 O Sine output data in 2’s complement form. This port can be optionally omitted if either cosine port or QAM ports (iout and qout) are selected. cosine 4 - 32 O Cosine output data in 2’s complement form. This port can be optionally omitted if either sine port or QAM ports (iout and qout) are selected. A For FSK Mode only (when the parameter FSK input = “Variable”) fskin 3 - 31 I Frequency shift keying input data. This unsigned value becomes the phase increment factor for the phase accumulator and decides the output frequency. The value at this port is read only when fskwe is high. fskwe 1 I Write enable strobe for fskin data. For PSK Mode only (when the parameter PSK input = “Variable”) pskin 3 - 32 I Phase shift keying input data. This unsigned value is used as offset to accumulated phase and is normally used to implement phase shift keying modulation. The value at this port is read only when pskwe is high. pskwe 1 I Write enable strobe for pskin data. For Multi-channel Mode only (when the parameter Multi channel = “Yes”) chin 1-4 I This port is used when the number of channels is more than one and either or both PSK input and FSK input parameters are configured as “Variable”. The value in chin port associates the channel number for the current fskin or pskin ports. The width of this port depends upon the number of channels and is equal to the next higher integer value of log2 of (Number of Channels). chout 1-4 O This output is present if the NCO operates in multi-channel mode. The value at this port indicates the channel number for which data samples are given at the output currently. The width of this port depends upon the number of channels and is equal to the next higher integer value of log2 of (Number of Channels). For QAM Mode only (when the parameter QAM Mode = “Yes”) iin 4 - 18 I I input for Quadrature Amplitude Modulation. The width is defined by the parameter QAM input port width. qin 4 - 18 I Q input for Quadrature Amplitude Modulation. The width is defined by the parameter QAM input port width. iout 4 - 32 O I component of the QAM output. is equal to Output width plus QAM input port width. qout 4 - 32 O Q component of the QAM output. The width of this port is equal to Output width plus QAM input port width. The qout port is a user-selectable output. 1-4 O This output port gives the channel number for the next QAM input signal (iin or qin). This optional signal is available only when Multi-channel is selected. ce 1 I Clock enable signal. This signal has the highest priority after rstn. The NCO operation freezes for as long as ce is held low. This optional signal should be selected only when required as it leads to increased core size. sr 1 I Synchronous reset signal. When asserted all internal registers are reset. The optional signal ce, if used, must be held high, for sr to be effective. This optional signal should be selected only when required as it leads to increased core size. clear 1 I Accumulator clear signal. If high, it clears the phase accumulator and restarts the sine output from zero or the programmed phase offset (PSK offset). nextqamin Optional I/Os IPUG36_02.5, June 2010 17 NCO IP Core User’s Guide Lattice Semiconductor Functional Description Table 2-1. Interface Signal Descriptions (Continued) Port phout outvalid Bits I/O Description 3-32 O Phase output. This optional output provides the phase value corresponding to the current sine or cosine output (in unsigned format). 1 O Output valid. This optional output signal signifies the presence of a valid output at the output data busses (sine and/or cosine). Latency The latency for NCO varies depending on different parameter settings. It is displayed in the summary page of the NCO IP GUI. Latency for NCO is defined as the number of clock cycles required for changes to either fskin or pskin to be reflected in sine or cosine outputs. When both FSK input and PSK input are defined as “constant”, then the latency is the number of clock cycles for valid outputs (sine or cosine) to appear after rstn is deasserted. For the sample configuration in the timing diagram Figure 2-7, the latency is three cycles. Timing Diagrams The I/O timing diagrams for single channel and multi-channel NCOs are given in Figure 2-7 and Figure 2-8 respectively. Figure 2-7. Timing Diagram for Single Channel NCO clk rstn ce sr outvalid sine 00 00 0f 21 cosine 00 7f 7e 7a IPUG36_02.5, June 2010 18 33 74 43 52 60 6b 74 6b 60 52 43 33 NCO IP Core User’s Guide Lattice Semiconductor Functional Description Figure 2-8. Timing Diagram for Multi-Channel NCO clk rstn ce sr outvalid sine 00 00 00 00 00 7d 79 72 6b 21 cosine 00 7f 7f 7f 7f 12 24 36 43 86 chout 00 0 1 2 3 0 1 2 3 0 IPUG36_02.5, June 2010 19 NCO IP Core User’s Guide Chapter 3: Parameter Settings The IPexpress™ tool is used to create IP and architectural modules in the Diamond and ispLEVER software. Refer to “IP Core Generation” on page 27 for a description on how to generate the IP. Table 3-1 provides the list of user configurable parameters for the NCO IP core. The parameter settings are specified using the NCO IP core Configuration GUI in IPexpress. The numerous NCO parameter options are partitioned across multiple GUI tabs as shown in this chapter. Table 3-1. NCO IP Core Configuration Parameters Range/Options Default Value Multi-channel Yes, No No Number of channels 2 to 16 16 Parameter Multi-channel Mode Wave Characteristics Wave size full, half or quarter full Yes, No Yes Phase resolution 3 to 32 (for non Trigonometric correction); 32 (for Trigonometric correction). 32 Quantizer resolution 3 to 16 if sum of angles is not used; 6 to 20, if sum of angles is used; 12, if Trig. correction is used. The maximum is limited by Phase resolution in all cases. 16 Output width 18, if Trigonometric correction; 4 to 18, if sum of angles or QAM mode; otherwise 4 to 32. 18 Sum of angles Phase Correction Phase correction None, Dithering, Trigonometric None Rounding type Truncation, Nearest Truncation Dithering bits 1 to 4 4 QAM mode Yes, No No QAM input port width 4 to 18 16 Constant, Variable Constant 1 to 2^(Phase resolution-1) 1073741824 3 to (Phase resolution -1) 16 None, Constant, Variable} None QAM Mode FSK Mode FSK input Phase increment FSK input port width PSK Mode PSK input Phase offset PSK input port width 1 to 2^(Phase resolution) 1 3 to Phase resolution 16 Block memory, Distributed memory Block memory Yes, No Yes Memory Type Memory type DSP Block Use DSP block IPUG36_02.5, June 2010 20 NCO IP Core User’s Guide Lattice Semiconductor Parameter Settings Table 3-1. NCO IP Core Configuration Parameters (Continued) Range/Options Default Value Sine Yes, No Yes Cosine Yes, No Yes Sine Polarity {Positive, Negative} Positive Cosine Polarity {Positive, Negative} Positive ce Yes, No No sr Yes, No No clear Yes, No No phout Yes, No No outvalid Yes, No Yes qout Yes, No No Parameter Data Output Ports Optional I/O Ports Pipeline Options Register after phase shift adder Yes, No No Register after phase dithering block Yes, No No Register after phase quantizer Yes, No No Memory output register Yes, No Yes Additional memory data register for half and quarter waves Yes, No No Architecture Tab Figure 3-1 shows the contents of the Architecture tab. Figure 3-1. Architecture Tab IPUG36_02.5, June 2010 21 NCO IP Core User’s Guide Lattice Semiconductor Parameter Settings Multi-channel Mode Multi-channel Determines whether multiple channels are supported. Number of Channels Denotes the number of NCO channels. Valid only if Multi-channel is selected. Wave Characteristics Wave Size Determines how much of the sine wave is stored in the look-up table. Sum of Angles Determines whether sum of angles method is used for memory reduction. Phase Resolution Phase Resolution: Maximum phase resolution of the NCO expressed in bits. This also defines the accumulator width. Quantizer Resolution Phase quantizer resolution: The output of the phase accumulator is quantized to this resolution before addressing the trigonometric look-up table. This also determines the depth of the trigonometric look-up table. The maximum value supported is 16 bits without sum of angles usage and 20 bits if the sum of angles method is employed. This resolution must be less than or equal to Phase resolution. Phase Correction Phase Correction Phase correction method for SFDR improvement. “Trigonometric” option is not available if Sum of angles is selected. Rounding Type Rounding type used for quantizing the phase accumulator output. This is valid only if Phase correction is “None.” Dithering Bits Number of dithering bits. This is used only if Phase correction is “Dithering.” QAM Mode QAM Mode This parameter indicates whether Quadrature Amplitude Modulation functionality is required. If “Yes,” QAM input and output ports are added to the IP and the parameter QAM input port width must be defined by user. QAM Input Port Width Width of the QAM input port. IPUG36_02.5, June 2010 22 NCO IP Core User’s Guide Lattice Semiconductor Parameter Settings FSK/PSK Tab Figure 3-2 shows the contents of the FSK/PSK tab. Figure 3-2. FSK/PSK Tab FSK Mode FSK Input This parameter defines whether the FSK input is a constant or a variable. If “Variable,” FSK input ports are added and the parameter FSK input port width must be defined by the user. If “Constant,” the Phase increment parameter must be defined. Phase Increment Phase increment value. This value determines the phase increment that is added to the phase accumulator at every clock. This decides the frequency of the output waveform. In multi-channel modes, a phase increment must be specified for each channel. FSK Input Port Width Width of the fskin port. This must be less than the parameter Phase resolution. PSK Mode PSK Input This parameter determines if Phase Shift Keying input is used and if used, whether it is a constant or variable. If “Constant,” a fixed value defined by Phase offset is used for the increment. If “Variable,” PSK input ports are added and the user must define the parameter PSK input port width. Phase Offset Phase offset value. Determines the phase offset that is added to the accumulated phase at every clock. This decides the phase of the output waveform. In multi-channel modes, a phase offset must be specified for each channel. PSK Input Port Width Width of the pskin port. This must be equal to or less than the parameter Phase resolution. IPUG36_02.5, June 2010 23 NCO IP Core User’s Guide Lattice Semiconductor Parameter Settings Implementation Tab Figure 3-3 shows the contents of the Implementation tab. Figure 3-3. Implementation Tab Memory Type Memory Type This parameter defines whether block or distributed memories are used. It provides the user with additional flexibility of memory/logic resource utilization. DSP Block Use DSP Block This parameter defines whether DSP blocks are used. This option is available only for Trigonometric correction, Sum of angles and QAM modes. Data Output Ports Sine This parameter determines whether the sine output port is available in the core. If QAM mode is “No” and Cosine is “No,” then Sine must be “Yes.” Cosine This parameter determines whether the cosine output port is available in the core. If QAM mode is “No” and Sine is “No,” then Cosine must be be “Yes.” Sine Polarity This parameter defines polarity of the sine output. It could be positive or negative. Cosine Polarity This parameter defines polarity of the cosine output. It could be positive or negative. IPUG36_02.5, June 2010 24 NCO IP Core User’s Guide Lattice Semiconductor Parameter Settings Optional I/O Ports ce Determines whether the input port ce (clock enable) is present. sr Determines whether the input port sr (synchronous reset) is present. clear Determines whether the input port clear is present. This signal clears the phase accumulator (or presets the accumulator with the fixed phase offset, if provided). phout This option determines whether the optional phase output is required. If “Yes,” the output port phout is added. outvalid This option determines whether the output port outvalid is present. qout This option determines whether qout port is present. This port is available only if QAM mode is selected. Pipeline Tab Figure 3-4 shows the contents of the Pipeline tab. Figure 3-4. Pipeline Tab Pipeline Options Register After Phase Shift Adder This option places a register after the phase shift adder if PSK input is “Variable.” This prevents any performance degradation due to phase adder, but the output is delayed by one more clock cycle. Register After Phase Dithering Block This option places a register after the dithering block if “Dithering” is chosen for phase correction. This prevents any performance degradation due to phase dithering, but the output is delayed by one more clock cycle. Register After Phase Quantizer This option places a register after the phase quantizer if Wave size is “quarter.” This prevents any performance degradation in quarter-wave modes, but the output is delayed by one more clock cycle. Memory Output Register This option selects the optional memory output register in the sysMEM™ EBR block RAMs. This improves the performance of the trigonometric look-up tables, especially when multiple sysMEM EBR blocks are used for the lookup-table. The output is delayed by one more clock cycle if this option is chosen. IPUG36_02.5, June 2010 25 NCO IP Core User’s Guide Lattice Semiconductor Parameter Settings Additional Memory Data Register for Half and Quarter Waves This option places an additional register in the memory data path. This prevents any performance degradation in half-wave or quarter-wave modes. The output is delayed by one more clock cycle if this option is chosen. Summary Tab Figure 3-4 shows the contents of the Summary tab. This tab presents a summary of various aspects of the generated NCO IP core based on the specified parameters. Figure 3-5. Summary Tab IPUG36_02.5, June 2010 26 NCO IP Core User’s Guide Chapter 4: IP Core Generation This chapter provides information on how to generate the NCO IP core using the IPexpress tool included in the Diamond and ispLEVER software, and how to include the core in a top-level design. Licensing the IP Core An IP core- and device-specific license is required to enable full, unrestricted use of the NCO IP corein a complete, top-level design. Instructions on how to obtain licenses for Lattice IP cores are given at: http://www.latticesemi.com/products/intellectualproperty/aboutip/isplevercoreonlinepurchas.cfm Users may download and generate the NCO IP core and fully evaluate the core through functional simulation and implementation (synthesis, map, place and route) without an IP license. The NCO IP corealso supports Lattice’s IP hardware evaluation capability, which makes it possible to create versions of the IP core that operate in hardware for a limited time (approximately four hours) without requiring an IP license. See “Hardware Evaluation” on page 32 for further details. However, a license is required to enable timing simulation, to open the design in the Diamond or ispLEVER EPIC tool, and to generate bitstreams that do not include the hardware evaluation timeout limitation. Getting Started The NCO IP core is available for download from Lattice’s IP server using the IPexpress tool. The IP files are automatically installed using ispUPDATE technology in any customer-specified directory. After the IP core has been installed, the IP core will be available in the IPexpress GUI dialog box shown in Figure 4-1. The ispLEVER IPexpress tool GUI dialog box for the NCO IP core is shown in Figure 4-1. To generate a specific IP core configuration the user specifies: • Project Path – Path to the directory where the generated IP files will be loaded. • File Name – “username” designation given to the generated IP core and corresponding folders and files. • (Diamond) Module Output – Verilog or VHDL. • (ispLEVER) Design Entry Type – Verilog HDL or VHDL. • Device Family – Device family to which IP is to be targeted (e.g. LatticeSCM, Lattice ECP2M, LatticeECP3, etc.). Only families that support the particular IP core are listed. • Part Name – Specific targeted part within the selected device family. IPUG36_02.5, June 2010 27 NCO IP Core User’s Guide Lattice Semiconductor IP Core Generation Figure 4-1. The IPexpress Tool Dialog Box (Diamond Version) Note that if the IPexpress tool is called from within an existing project, Project Path, Module Output (Design Entry in ispLEVER), Device Family and Part Name default to the specified project parameters. Refer to the IPexpress tool online help for further information. To create a custom configuration, the user clicks the Customize button in the IPexpress tool dialog box to display the NCO IP coreConfiguration GUI, as shown in Figure 4-2. From this dialog box, the user can select the IP parameter options specific to their application. Refer to “Parameter Settings” on page 20 for more information on the NCO IP coreparameter settings. IPUG36_02.5, June 2010 28 NCO IP Core User’s Guide Lattice Semiconductor IP Core Generation Figure 4-2. The IPexpress Tool Dialog Box - Configuration GUI (Diamond Version) IPUG36_02.5, June 2010 29 NCO IP Core User’s Guide Lattice Semiconductor IP Core Generation IPexpress-Created Files and Top Level Directory Structure When the user clicks the Generate button in the IP Configuration dialog box, the IP core and supporting files are generated in the specified “Project Path” directory. The directory structure of the generated files is shown in Figure 4-3. Figure 4-3. LatticeECP3 NCO IP core Directory Structure Table 4-1 provides a list of key files created by the IPexpress tool. The names of most of the created files are customized to the user’s module name specified in the IPexpress tool. The files shown in Table 4-1 are all of the files necessary to implement and verify the NCO IP core in a top-level design. Table 4-1. File List File Description _inst.v This file provides an instance template for the IP. .v This file provides a wrapper for the NCO core for simulation. _beh.v This file provides a behavioral simulation model for the NCO core. _bb.v This file provides the synthesis black box for the user’s synthesis. .ngo The ngo files provide the synthesized IP core. .lpc This file contains the IPexpress tool options used to recreate or modify the core in the IPexpress tool. .ipx IPexpress package file (Diamond only). This is a container that holds references to all of the elements of the generated IP core required to support simulation, synthesis and implementation. The IP core may be included in a user's design by importing this file to the associated Diamond project. pmi_*.ngo One or more files implementing synthesized memory modules used in the IP core. *.mem ROM initialization files. IPUG36_02.5, June 2010 30 NCO IP Core User’s Guide Lattice Semiconductor IP Core Generation Table 4-1. File List (Continued) File _generate.tcl Description Created when GUI “Generate” button is pushed, invokes generation, may be run from command line. _generate.log IPexpress scripts log file. _gen.log IPexpress IP generation log file Instantiating the Core The generated NCO IP core package includes black-box (_bb.v) and instance (_inst.v) templates that can be used to instantiate the core in a top-level design. An example RTL top-level reference source file that can be used as an instantiation template for the IP core is provided in  \\nco_eval\\src\rtl\top. Users may also use this top-level reference as the starting template for the top-level for their complete design. Running Functional Simulation Simulation support for the NCO IP core is provided for Aldec Active-HDL (Verilog and VHDL) simulator, Mentor Graphics ModelSim simulator. The functional simulation includes a configuration-specific behavioral model of the NCO IP core. The test bench sources stimulus to the core, and monitors output from the core. The generated IP core package includes the configuration-specific behavior model (_beh.v) for func-tional simulation in the “Project Path” root directory. The simulation scripts supporting ModelSim evaluation simulation is provided in \\nco_eval\\sim\modelsim\scripts. The simulation script supporting Aldec evaluation simulation is provided in \\nco_eval\\sim\aldec\scripts. Both ModelSim and Aldec simulation is supported via test bench files provided in  \\nco_eval\testbench. Models required for simulation are provided in the corresponding \models folder. Users may run the Aldec evaluation simulation by doing the following: 1. Open Active-HDL. 2. Under the Tools tab, select Execute Macro. 3. Browse to folder \\nco_eval\\sim\aldec\scripts and execute one of the "do" scripts shown. Users may run the Modelsim evaluation simulation by doing the following: 1. Open ModelSim. 2. Under the File tab, select Change Directory and choose the folder  \nco_eval\\sim\modelsim\scripts. 3. Under the Tools tab, select Execute Macro and execute the ModelSim “do” script shown. Note: When the simulation completes, a pop-up window will appear asking “Are you sure you want to finish?” Answer “No” to analyze the results (answering “Yes” closes ModelSim). IPUG36_02.5, June 2010 31 NCO IP Core User’s Guide Lattice Semiconductor IP Core Generation Synthesizing and Implementing the Core in a Top-Level Design The NCO IP core itself is synthesized and provided in NGO format when the core is generated through IPexpress. You may combine the core in your own top-level design by instantiating the core in your top-level file as described in “Instantiating the Core” on page 31 and then synthesizing the entire design with either Synplify or Precision RTL Synthesis. The following text describes the evaluation implementation flow for Windows platforms. The flow for Linux and UNIX platforms is described in the Readme file included with the IP core. The top-level file _top.v is provided in  \\nco_eval\\src\rtl\top. Push-button implementation of the reference design is supported via the project file .ldf (Diamond) or .syn (ispLEVER) located in \\nco_eval\\impl\(synplify or precision). To use this project file in Diamond: 1. Choose File > Open > Project. 2. Browse to  \\nco_eval\\impl\synplify (or precision) in the Open Project dialog box. 3. Select and open _.ldf. At this point, all of the files needed to support top-level synthesis and implementation will be imported to the project. 4. Select the Process tab in the left-hand GUI window. 5. Implement the complete design via the standard Diamond GUI flow. To use this project file in ispLEVER: 1. Choose File > Open Project. 2. Browse to  \\nco_eval\\impl\synplify (or precision) in the Open Project dialog box. 3. Select and open .syn. At this point, all of the files needed to support top-level synthesis and implementation will be imported to the project. 4. Select the device top-level entry in the left-hand GUI window. 5. Implement the complete design via the standard ispLEVER GUI flow. Hardware Evaluation The NCO IP core supports Lattice’s IP hardware evaluation capability, which makes it possible to create versions of the IP core that operate in hardware for a limited period of time (approximately four hours) without requiring the purchase of an IP license. It may also be used to evaluate the core in hardware in user-defined designs. Enabling Hardware Evaluation in Diamond: Choose Project > Active Strategy > Translate Design Settings. The hardware evaluation capability may be enabled/disabled in the Strategy dialog box. It is enabled by default. IPUG36_02.5, June 2010 32 NCO IP Core User’s Guide Lattice Semiconductor IP Core Generation Enabling Hardware Evaluation in ispLEVER: In the Processes for Current Source pane, right-click the Build Database process and choose Properties from the dropdown menu. The hardware evaluation capability may be enabled/disabled in the Properties dialog box. It is enabled by default. Updating/Regenerating the IP Core By regenerating an IP core with the IPexpress tool, you can modify any of its settings including: device type, design entry method, and any of the options specific to the IP core. Regenerating can be done to modify an existing IP core or to create a new but similar one. Regenerating an IP Core in Diamond To regenerate an IP core in Diamond: 1. In IPexpress, click the Regenerate button. 2. In the Regenerate view of IPexpress, choose the IPX source file of the module or IP you wish to regenerate. 3. IPexpress shows the current settings for the module or IP in the Source box. Make your new settings in the Target box. 4. If you want to generate a new set of files in a new location, set the new location in the IPX Target File box. The base of the file name will be the base of all the new file names. The IPX Target File must end with an .ipx extension. 5. Click Regenerate. The module’s dialog box opens showing the current option settings. 6. In the dialog box, choose the desired options. To get information about the options, click Help. Also, check the About tab in IPexpress for links to technical notes and user guides. IP may come with additional information. As the options change, the schematic diagram of the module changes to show the I/O and the device resources the module will need. 7. To import the module into your project, if it’s not already there, select Import IPX to Diamond Project (not available in stand-alone mode). 8. Click Generate. 9. Check the Generate Log tab to check for warnings and error messages. 10.Click Close. The IPexpress package file (.ipx) supported by Diamond holds references to all of the elements of the generated IP core required to support simulation, synthesis and implementation. The IP core may be included in a user's design by importing the .ipx file to the associated Diamond project. To change the option settings of a module or IP that is already in a design project, double-click the module’s .ipx file in the File List view. This opens IPexpress and the module’s dialog box showing the current option settings. Then go to step 6 above. Regenerating an IP Core in ispLEVER To regenerate an IP core in ispLEVER: 1. In the IPexpress tool, choose Tools > Regenerate IP/Module. 2. In the Select a Parameter File dialog box, choose the Lattice Parameter Configuration (.lpc) file of the IP core you wish to regenerate, and click Open. 3. The Select Target Core Version, Design Entry, and Device dialog box shows the current settings for the IP core in the Source Value box. Make your new settings in the Target Value box. IPUG36_02.5, June 2010 33 NCO IP Core User’s Guide Lattice Semiconductor IP Core Generation 4. If you want to generate a new set of files in a new location, set the location in the LPC Target File box. The base of the .lpc file name will be the base of all the new file names. The LPC Target File must end with an .lpc extension. 5. Click Next. The IP core’s dialog box opens showing the current option settings. 6. In the dialog box, choose desired options. To get information about the options, click Help. Also, check the About tab in the IPexpress tool for links to technical notes and user guides. The IP core might come with additional information. As the options change, the schematic diagram of the IP core changes to show the I/O and the device resources the IP core will need. 7. Click Generate. 8. Click the Generate Log tab to check for warnings and error messages. IPUG36_02.5, June 2010 34 NCO IP Core User’s Guide Chapter 5: Support Resources This chapter contains information about Lattice Technical Support, additional references, and document revision history. Lattice Technical Support There are a number of ways to receive technical support. Online Forums The first place to look is Lattice Forums (http://www.latticesemi.com/support/forums.cfm). Lattice Forums contain a wealth of knowledge and are actively monitored by Lattice Applications Engineers. Telephone Support Hotline Receive direct technical support for all Lattice products by calling Lattice Applications from 5:30 a.m. to 6 p.m. Pacific Time. • For USA & Canada: 1-800-LATTICE (528-8423) • For other locations: +1 503 268 8001 In Asia, call Lattice Applications from 8:30 a.m. to 5:30 p.m. Beijing Time (CST), +0800 UTC. Chinese and English language only. • For Asia: +86 21 52989090 E-mail Support • techsupport@latticesemi.com • techsupport-asia@latticesemi.com Local Support Contact your nearest Lattice Sales Office. Internet www.latticesemi.com References LatticeECP/EC • HB1000, LatticeECP/EC Family Handbook LatticeECP2M • HB1003, LatticeECP2M Family Handbook LatticeECP3 • HB1009, LatticeECP3 Family Handbook IPUG36_02.5, June 2010 35 NCO IP Core User’s Guide Lattice Semiconductor Support Resources LatticeSC/M • DS1004, LatticeSC/M Family Data Sheet LatticeXP • HB1001, LatticeXP Family Handbook LatticeXP2 • DS1009, Lattice XP2 Datasheet Revision History Date Document Version IP Version — August 2006 December 2006 June 2008 April 2009 June 2010 Change Summary — 1.0 Previous Lattice releases. 02.1 2.0 NCO version 2.0, with LatticeECP/EC, Lattice ECP2, LatticeSC, and LatticeXP support for IPexpress. 02.2 2.1 Updated appendices and added support for the LatticeECP2M family. 02.3 2.2 Updated appendices. 02.4 2.3 Updated appendices and added support for the LatticeECP3 family. 02.5 2.5 Added support for Diamond software. Divided document into chapters. Added table of contents. Added Quick Facts table in Chapter 1, “Introduction.” Added new content in Chapter 4, “IP Core Generation.” IPUG36_02.5, June 2010 36 NCO IP Core User’s Guide Appendix A: Resource Utilization This appendix gives resource utilization information for Lattice FPGAs using the NCO IP core. The IP configurations shown in this chapter were generated using the IPexpress software tool. IPexpress is the Lattice IP configuration utility, and is included as a standard feature of the Diamond and ispLEVER design tools. Details regarding the usage of IPexpress can be found in the IPexpress and Diamond and ispLEVER help systems. For more information on the Diamond or ispLEVER design tools, visit the Lattice web site at: www.latticesemi.com/software. LatticeEC Devices The utilization data shown in Table A-1 is derived from the parameter settings listed in Table A-2. Table A-1. Performance and Resource Utilization1 IPexpress User-Configurable Mode Slices LUTs Registers I/Os 18x18 Multipliers 1 1000 1710 2 194 211 3 2235 3730 sysMEM EBRs 715 39 NA 3 116 262 104 NA 2 230 1833 217 NA 5 123 fMAX (MHz) 1. Performance and utilization data are generated targeting an LFEC20E-5F672C device using Lattice Diamond 1.0 and Synplify Pro D2009.12L-1 software. Performance may vary when using a different software version or targeting a different device density or speed grade within the LatticeEC family. Ordering Part Number The Ordering Part Number (OPN) for the NCO targeting LatticeEC devices is NCO-DDS-E2-U2. Table A-2. Parameter Settings of the Evaluation Packages Parameter Name (in Documentation) Parameter Name (in .lpc file) FSK input fsk_in FSK Phase increment phase_increment_value FSK input port width fsk_width PSK input psk_in PSK Phase offset PSK input port width Config 1 Config 2 Config 3 Constant Variable Variable 1073741824 n/a n/a n/a 31 27 Absent Variable Variable phase_offset_value n/a n/a n/a psk_width n/a 32 28 Memory type memory_type Block Block Block Sine Polarity sin_polarity Positive Positive Positive Cosine Polarity cos_polarity Positive Positive Positive Phase correction phase_correction None None Dither Dithering bits dither_level Rounding type rounding_method n/a n/a 4 Truncation Truncation n/a QAM input port width qam_input_width n/a n/a 18 Wave size wave_storage Full Quarter Full Number of channels num_channels 1 1 16 Phase resolution accumulator_width 32 32 28 Quantizer resolution quantizer_width 16 12 20 Output width output_width 18 18 18 sr sync_reset_port Absent Absent Absent ce clock_enable_port Absent Absent Absent IPUG36_02.5, June 2010 37 NCO IP Core User’s Guide Lattice Semiconductor Resource Utilization Table A-2. Parameter Settings of the Evaluation Packages (Continued) Parameter Name (in Documentation) Parameter Name (in .lpc file) Config 1 Config 2 Config 3 Present Present Present outvalid output_valid_port phout ph_out_port Absent Absent Absent Sine sin_port Present Present Present Cosine cos_port Present Present Present QAM mode qam_mode Absent Absent Present qout q_out_port Absent Absent Present clear clear_port Absent Absent Present Memory output register mor_latency Present Present Present Register after phase quantizer quantizer_latency Absent Present Absent Additional memory data register mpu_latency Absent Present Absent Sum of angles sum_of_angles Present Absent Present Register after phase dithering block dither_latency Absent Absent Present Register after phase shift adder var_phase_offset_laten cy Absent Present Present Use DSP block dsp_block n/a for LatticeEC, Present for LatticeECP n/a n/a for LatticeEC, Present for LatticeECP LatticeECP Devices The utilization data shown in Table A-3 is derived from the parameter settings listed in Table A-2 on page 37. Table A-3. Performance and Resource Utilization1 IPexpress User-Configurable Mode Slices LUTs Registers I/Os 18x18 Multipliers2 sysMEM EBRs fMAX (MHz) 1 27 7 44 39 4 3 215 2 194 211 262 104 0 2 215 3 305 316 494 217 8 5 226 1. Performance and utilization data are generated targeting an LFECP20E-5F672C device using Lattice Diamond 1.0 and Synplify Pro D2009.12L-1 software. Performance may vary when using a different software version or targeting a different device density or speed grade within the LatticeECP family. 2. One DSP block provides two MULT18X18ADDSUBs. Ordering Part Number The Ordering Part Number (OPN) for the NCO targeting LatticeECP devices is NCO-DDS-E2-U2. IPUG36_02.5, June 2010 38 NCO IP Core User’s Guide Lattice Semiconductor Resource Utilization LatticeECP2 Devices The utilization data shown in Table A-4 is derived from the parameter settings listed in Table A-2 on page 37. Table A-4. Performance and Resource Utilization1 IPexpress User-Configurable Mode Slices LUTs Registers I/Os MULT18X18 ADDSUB2 sysMEM EBRs fMAX (MHz) 1 24 5 44 39 4 3 368 2 200 222 262 104 0 1 370 3 287 282 494 217 8 3 325 1. Performance and utilization data are generated targeting an LFE2-50E-7F672C device using Lattice Diamond 1.0 and Synplify Pro D2009.12L-1 software. Performance may vary when using a different software version or targeting a different device density or speed grade within the LatticeECP2 family. 2. One DSP block provides two MULT18X18ADDSUBs. Ordering Part Number The Ordering Part Number (OPN) for the NCO targeting LatticeECP2 devices is  NCO-DDS-P2-U2. LatticeECP2M Devices The utilization data shown in Table A-5 is derived from the parameter settings listed in Table A-2 on page 37. Table A-5. Performance and Resource Utilization1 IPexpress User-Configurable Mode Slices LUTs Registers I/Os 18x18 Multipliers2 sysMEM EBRs fMAX (MHz) 1 24 5 44 39 4 3 347 2 200 222 262 104 0 1 361 3 287 282 494 217 8 3 256 1. Performance and utilization data are generated targeting an LFE2M-35E-7F484C device using Lattice Diamond 1.0 and Synplify Pro D2009.12L-1 software. Performance may vary when using a different software version or targeting a different device density or speed grade within the LatticeECP2M family. 2. One DSP block provides two MULT18X18ADDSUBs. Ordering Part Number The Ordering Part Number (OPN) for the NCO targeting LatticeECP2M devices is NCO-DDS-PM-U2. IPUG36_02.5, June 2010 39 NCO IP Core User’s Guide Lattice Semiconductor Resource Utilization LatticeECP3 Devices The utilization data shown in Table A-6 is derived from the parameter settings listed in Table A-2 on page 37. Table A-6. Performance and Resource Utilization1 IPexpress User-Configurable Mode Slices LUTs Registers 18x18 Multipliers I/Os sysMEM EBRs fMAX (MHz) 1 25 6 44 39 4 3 340 2 163 220 262 104 0 1 340 3 302 310 494 217 8 3 320 1. Performance and utilization data are generated targeting an LFE3-95E-7FN672CES device using Lattice Diamond 1.0 and Synplify Pro D-2009.12L-1 software. Performance may vary when using a different software version or targeting a different device density or speed grade within the LatticeECP3 family. Ordering Part Number The Ordering Part Number (OPN) for the NCO targeting LatticeECP3 devices is NCO-DDS-E3-U2. LatticeSC/M Devices The utilization data shown in Table A-7 is derived from the parameter settings listed in Table A-2 on page 37. Table A-7. Performance and Resource Utilization1 IPexpress User-Configurable Mode Slices LUTs Registers I/Os 18x18 Multipliers sysMEM EBRs fMAX (MHz) 1 1472 2194 1071 39 N/A 3 242 2 152 210 262 104 NA 1 375 3 3583 5153 2549 217 NA 3 239 1. Performance and utilization data are generated targeting an LFSC3GA25E-7F900C device using Lattice Diamond 1.0 and Synplify Pro D2009.12L-1 software. Performance may vary when using a different software version or targeting a different device density or speed grade within the LatticeSC family. Ordering Part Number The Ordering Part Number (OPN) for the NCO targeting LatticeSC devices is NCO-DDS-SC-U2. LatticeXP Devices The utilization data shown in Table A-8 is derived from the parameter settings listed in Table A-2 on page 37. Table A-8. Performance and Resource Utilization1 IPexpress User-Configurable Mode Slices LUTs Registers I/Os 18x18 Multipliers sysMEM EBRs fMAX (MHz) 1 1000 1710 715 39 N/A 3 112 2 194 211 262 104 N/A 2 219 3 2235 3730 1833 217 N/A 5 115 1. Performance and utilization data are generated targeting an LFXP20E-5F484C device using Lattice Diamond 1.0 and Synplify Pro D2009.12L-1 software. Performance may vary when using a different software version or targeting a different device density or speed grade within the  LatticeXP family. Ordering Part Number The Ordering Part Number (OPN) for the NCO targeting LatticeXP devices is NCO-DDS-XM-U2. IPUG36_02.5, June 2010 40 NCO IP Core User’s Guide Lattice Semiconductor Resource Utilization LatticeXP2 Devices The utilization data shown in Table A-9 is derived from the parameter settings listed in Table A-2 on page 37. Table A-9. Performance and Resource Utilization1 IPexpress User-Configurable Mode Slices LUTs Registers I/Os 18x18 Multipliers2 sysMEM EBRs fMAX (MHz) 1 24 5 44 39 4 3 314 2 200 222 262 104 0 1 314 3 287 282 494 217 8 3 314 1. Performance and utilization data are generated targeting an LFXP2-17E-7F484C device using Lattice Diamond 1.0 and Synplify Pro D2009.12L-1 software. Performance may vary when using a different software version or targeting a different device density or speed grade within the LatticeXP2 family. 2. One DSP block provides two MULT18X18ADDSUBs. Ordering Part Number The Ordering Part Number (OPN) for the NCO targeting LatticeXP2 devices is NCO-DDS-X2-U2. IPUG36_02.5, June 2010 41 NCO IP Core User’s Guide
NCO-DDS-X2-U2 价格&库存

很抱歉,暂时无法提供与“NCO-DDS-X2-U2”相匹配的价格&库存,您可以联系我们找货

免费人工找货