Method, device and computer program product for a phase-stable agile signal source
The phase-resistant agile signal source addresses DDS phase discontinuities by using an equivalence phase accumulator and DDS to maintain coherent phase across frequency changes, improving DDS system performance.
Patent Information
- Application Number
- DE112005002966
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2004-11-30
- Filing Date
- 2005-11-30
- Publication Date
- 2024-10-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing direct digital synthesizers (DDS) face challenges in maintaining continuous phase when switching between output frequencies, leading to discontinuities in the phase of the output signal.
A phase-resistant agile signal source is implemented using an equivalence phase accumulator and DDS, which maintains temporal phase continuity by employing a programmable register and phase-to-amplitude conversion, ensuring coherent phase generation across frequency changes.
The solution ensures continuous phase control during frequency transitions, maintaining phase accuracy and reducing phase discontinuities, thereby enhancing the performance of DDS systems.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims the benefit of U.S. Provisional Patent Application Serial No. 60 / 631,602, filed November 30, 2004, which is incorporated herein by reference. BACKGROUND OF THE INVENTION 1. FIELD OF THE INVENTION
[0002] The present invention relates generally to signal generation methods and apparatus, and more particularly to a method, apparatus and / or computer program product for a phase-stable agile [frequency-variable] signal source. 2. DESCRIPTION OF RELATED ART
[0003] Signal frequency generation can be achieved in a number of ways, including direct digital frequency synthesis, phase-locked loop frequency synthesis, fractional-N frequency synthesis, and so on. Advances in integrated circuit technology have recently led to the wider use of direct digital synthesizers (DDS) in signal frequency generation. DDSs produce programmable analog output waveforms with high resolution and accuracy and can quickly switch between output frequencies. A DDS generates a waveform by storing the waveform points in digital form and then recalling them to generate the waveform. The rate at which the DDS completes a waveform determines the output frequency.
[0004] The DDS output frequency is changed by changing the phase increment of the phase accumulator. The phase increment determines how many data points the DDS skips between those it sends to the digital-to-analog converter (DAC). The DDS accumulates the skip values to determine the values sent to the DAC. This accumulator maintains a history of all previously programmed frequencies. When the DDS output frequency changes from a first frequency to a second, significantly higher or lower frequency and then back to the first frequency, the second occurrence of the first frequency will typically not have the same phase as the first occurrence of the first frequency. This is due to the history of all previous frequencies stored in the DDS's accumulator.It would be desirable to track the phase of a DDS's output frequency to maintain the temporally continuous phase of the DDS output frequency when the DDS is reprogrammed to any other arbitrary output frequency. If the DDS output frequency is reprogrammed to a previous DDS output frequency, the phase would then be continuous, as if it had never left the original frequency.
[0005] Accordingly, there is a need for a method, apparatus, and / or computer program product for a phase-stable agile signal source. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram of a phase-stable agile signal source according to the present invention. Fig. Figure 2 is a flow diagram of a process for a phase-stable agile signal source according to the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0006] Embodiments of the present invention are a method, an apparatus, and / or a computer program product for a phase-stable agile signal source. The invention disclosed herein is naturally susceptible to embodiment in many different forms. Shown in the drawings and described in detail below are preferred embodiments of the invention. It should be understood, however, that the present disclosure is an exemplification of the principles of the invention and is not limited to the illustrated embodiments.
[0007] With reference to the drawings, Fig.1 illustrates circuitry 100 for a phase-stable agile signal source according to an embodiment of the present invention. Circuitry 100 for a phase-stable agile signal source includes an equivalent phase accumulator 150 and a DDS 170. Circuitry 100 for a phase-stable agile signal source can be configured to provide phase tracking for any and all frequencies within the limits of the DDS process. This allows each frequency to maintain its temporally continuous phase while the DDS is programmed to any other arbitrary frequency. When a frequency is reprogrammed to a previous frequency, the phase is continuous, as if it had never left the original frequency.
[0008] The circuitry 100 for a phase-stable agile signal source can be configured as circuitry according to the user's wishes, such as in the form of an FPGA (Field Programmable Gate Array), a digital signal processing microprocessor, multiple discrete digital logic blocks, software, combinations thereof, and so on. The DDS 170 can be configured as any desired DDS circuitry. The DDS 170 has components that can include a phase accumulator, phase-to-amplitude conversion circuitry, and a digital-to-analog converter (DAC). The DDS 170 generates a desired frequency output that depends on a reference clock frequency and a binary number programmed into the frequency register, referred to as the FTW (Frequency Tuning Word) 132. The FTW 132 provides the main input to the phase accumulator.If a lookup table is used for the phase-to-amplitude circuitry, the phase accumulator calculates a phase (angle) address for the lookup table. The lookup table outputs the digital value of an amplitude corresponding to this phase (angle) address.
[0009] The DAC converts the digital amplitude value into a corresponding analog voltage or current value. To generate a fixed-frequency sine wave, a constant value (for example, the phase increment determined by the FTW 132) is added to the phase accumulator with each clock cycle. If the phase increment is large, the phase accumulator steps quickly through the lookup table, producing a high-frequency output waveform. If the phase increment is small, the phase accumulator takes many more steps, producing a low-frequency output waveform.
[0010] An equivalent phase accumulator may include a programmable register for programming the FTW 132. The equivalent phase accumulator includes an LSB (least significant bit) accumulator 110 with addition logic (ADD) 112 and a register (REG) 114 for tracking the phase of the lowest frequency that the DDS 170 is capable of generating. An equivalent frequency LSB for a desired DDS update rate 122 is provided as input to the ADD logic 112. The current phase 124 of the LSB accumulator is added to the equivalent LSB for a desired DDS update rate 122 in the ADD logic 112 to generate the current phase 124 of the LSB accumulator for the next DDS update. The equivalent frequency LSB for the desired DDS update rate M 122 is equal to the LSB of the FTW 132 times the DDS clock rate 160 divided by the DDS update rate.The current phase 124 of the LSB accumulator is multiplied by the FTW 132 to generate the coherent phase. The fractional portion of the coherent phase is written to the phase register of the DDS 170 along with the write of the FTW 132 to the frequency register. The FTW 132 is multiplied by the current phase 124 of the LSB phase accumulator to generate the coherent phase 140, which is based on the DDS clock rate, the FTW, the DDS update rate to the DDS, the equivalent LSB for the desired DDS update rate, and the current phase of the LSB accumulator. The FTW 132, the coherent phase 140, the DDS clock 160, and the DDS update are provided to the DDS 170.
[0011] The FTW 132 is multiplied by time in the phase accumulator of the DDS 170 to generate the actual phase of the currently programmed frequency. Time is the product of the period of the DDS clock 160 and the number of occurrences of that clock. This function is duplicated in the equivalent phase accumulator circuitry 150 to maintain continuous phase control. The multiplication of the FTW 132 is extracted into a separate operation to allow a phase accumulator to track the phase of any frequency that the DDS 170 can generate. The LSB accumulator 110 can be clocked on a division of the DDS clock 160 because it is not necessary or practical to clock the LSB accumulator 110 at the same rate as the DDS accumulator. The size of the LSB accumulator 110 is equal to the size of the phase accumulator of the DDS 170.The multiplication of the FTW 132 and the actual phase value of the LSB accumulator 110 sent to the DDS 170 all utilize the bits in these values to maintain the precision required for continuous phase control. The most significant bits (MSBs) of the FTW 132 can be dropped when unused (always zero) to reduce the size of the multiplier. The fractional part of the product can be loaded into the phase accumulator of the DDS 170. If the DDS 170 does not allow access to load the phase accumulator, the phase accumulator should be reset, and the fractional part of the coherent phase should be loaded into the phase offset register of the DDS 170. The LSBs of the fractional part of the coherent phase can be dropped according to the size of the phase offset register in the DDS 170.
[0012] The following exemplary table compares the known DDS phase for a 10 MHz signal with the phase calculated by the coherent phase algorithm of the present invention for a signal switching between 10 MHz and 45 MHz in an Analog Device AD9858. The AD9858 contains a 32-bit phase accumulator clocked at a rate of 1 GHz. The known phase is generated by accumulating the FTW 132 in a 32-bit register. The FTW 132 is equal to the desired output frequency times 2 32 divided by 1e 9 The phase word in this example is defined as the upper fourteen bits of the accumulated FTW. The phase can be calculated in degrees from the phase word by multiplying the phase word by 360 divided by 2. 14 can be found.
[0013] The calculated phase is generated by a coherent phase algorithm according to one embodiment of the present invention. In this algorithm, a 32-bit counter increments by 240 every 240 nanoseconds (ns). This counter is multiplied by the 32-bit FTW 132 to find the coherent phase for the current FTW 132. This multiplication produces a 64-bit result, labeled bits 63 down to zero. Bits 31 down to 18 are equal to the 14-bit phase word. The method only accumulates time, so it can find the coherent phase for any frequency at a 240-ns interval by multiplying the phase counter by the frequency. The 240 ns interval is determined by the speed of writing to all required DDS 170 registers and the latency of the commanded update by the DDS 170.A faster counter could accumulate the value of one every nanosecond, allowing the coherent phase to be determined every nanosecond. By changing the counter speed and / or its accumulated value, the coherent phase can be generated for any interface speed and output latency of the DDS 170. This allows the method to be tailored to any DDS device, not just the AD9858 DDS. Time(s) Known DDS phase for 10MHz MHz Calculated phase for 10 MHz 240 143,99 143,99 480 288 288 720 71,982 71,982 960 215,99 215,99 1200 359,98 359,98 1440 143,99 143,99 1680 288 288 1920 71,982 71,982 2160 215,99 215,99 2400 359,98 359,98 2640 143,99 143,99 2880 288 288 3120 71,982 71,982 3360 215,99 215,99 3600 359,98 359,98 Calculated phase for 45 MHz 3840 143,99 288 4080 288 215,99 4320 71,982 143,99 4560 215,99 71,982 4800 359,98 359,98 5040 143,99 288 5280 288 215,99 520 71,982 143,99 5760 215,99 71,982 6000 359,98 359,98 6240 143,99 288 6480 288 215,99 Calculated phase for 10 MHz 6720 71,982 71,982 020 215,99 215,99 7200 359,98 359,98 7440 143,99 143,99 7680 288 288 7920 71,982 71,982 8160 215,99 215,99 8400 359,98 359,98 8640 143,99 143,99 8880 288 288 9120 71,982 71,982 9360 215,99 215,99 9600 359,98 359,98 9840 143,99 143,99
[0014] A computer program product implementation of an embodiment of the present invention embodies instructions for a phase-persistent agile signal source on a computer-readable medium that perform the method of the present invention. With reference to Fig.2, the instructions for a phase-stable agile signal source, when executed by a processor, perform steps 200, which may provide a DDS clock rate (step 210), provide a DDS update for a desired DDS update rate (step 220), provide an FTW for a desired output frequency (step 230), provide an equivalent LSB for a desired DDS update rate (step 240), determine a current phase of an LSB accumulator (step 250), determine a coherent phase for the provided FTW (step 260), and provide the FTW, a coherent phase, a DDS clock rate, and a DDS update rate to the DDS (step 270), and generate a phase-coherent agile signal (step 280) based on the DDS clock rate, the FTW, the DDS update rate to the DDS,the equivalent LSB for the desired DDS update rate and the current phase of the LSB accumulator. The computer program product performs the functions of the phase-stable agile signal source described above.
[0015] The attached Appendix A shows an example of a phase coherence simulation code. The attached Appendix B shows an example of a coherent phase algorithm code. The attached Appendix C shows an example of an automatic test bench for a phase accumulator code. The codes shown in Appendixes A, B, and C are merely examples and can be configured into any desired code according to the user's wishes.
[0016] In summary, a method, apparatus, and / or computer program product for a phase-stable agile signal source according to an embodiment of the present invention provides a DDS clock rate, provides an FTW for a desired output frequency, provides a DDS update for a desired DDS update rate, provides an equivalent frequency LSB for the desired DDS update rate, provides a current phase of an LSB accumulator, and generates a coherent phase of the desired output frequency based on the DDS clock rate, the FTW, the DDS update rate to the DDS, the equivalent LSB for the desired DDS update rate, and the current phase of the LSB accumulator.
[0017] The step of providing an equivalent frequency may obtain the equivalent frequency LSB of the desired DDS update rate by multiplying the LSB of the FTW, typically by one, by the DDS clock rate and dividing by the DDS update rate. The step of providing a current phase may add the current phase of the LSB accumulator to the equivalent frequency LSB for the desired DDS update. The step of generating a coherent phase may generate the coherent phase by multiplying the FTW by the current phase of the LSB accumulator and using a fractional portion of the result. The fractional portion of the coherent phase may be that portion of the product that is less than 360 degrees, with the LSBs truncated according to the size of the phase register in the DDS.
[0018] Although the invention has been described with reference to its preferred embodiments, those skilled in the art will understand that various changes may be made and equivalents may be substituted for elements thereof without departing from the true spirit and scope of the invention. Furthermore, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from its essential teachings. APPENDIX APHASE COHERENCE SIMULATION
[0019] Input: Frequency 1 in Hz Frequency 2 in Hz Output: Column 1: Time in nanoseconds Column 2: AD9858 phase value for frequency 1 Column 3: Time 240-3600 ns (lines 1-15) Calculated phase for frequency 1 Time 3840-6480 ns (lines 16-27) Calculated phase for frequency 2 Time 6720-9840 ns (lines 28-41) Calculated phase for frequency 1 Note: Overflow is due to converting numbers to their corresponding 32-bit values, which models the 32-bit values used in hardware. function [phase_comparison]=phase_coherency(frequency1, frequency2) Result is an array of the counter value and the corresponding phase value for the frequency q=quantizer([32, 0], 'wrap'); r=quantizer([64,0],'wrap'); Frequency tuning word 1 FTW1=frequency1*2^32 / 1e9; forces FTW to the 32-bit value it would have in hardware (drops fractional part and keeps frequency within range) FTW1=num2bin(q, FTW1); FTW1=bin2num(q, FTW1);Frequency tuning word 2 forces FTW to the 32-bit value it would have in hardware (drops fraction and keeps frequency within range) FTW2=num2bin(q, FTW2); FTW2=bin2num(q, FTW2); 9858 Actual Phase accumvalue=FTW1; Create an array of the 9858 phase accumulator values The 9858 accumulates the FTW at 1 GHz (every 1 ns) The index of accum_value array is the time in 1 ns steps for i=1:10000 accum value(i+1)=accumvalue(i)+FTW1; end; phase=num2bin(q,accum_value); Subtract the bits for the phase word (upper 14 bits) phase=phase(:,1:14); phase_word=bin2num(q,phase); FPGA-calculated coherent phase phase_counter=240; the phase counter accumulates 240 at 4.166 MHz (every 240 ns). The index of the phase_counter is the time in 240 ns steps for j=10000 / 240. phase_counter(j+1)=phase_counter(j)+240; end; forces the phase counter to the 32-bit value it would have in hardware. phase_counter=num2bin(q, phase_counter); phase_counter=bin2num(q, phase counter);Calculate the coherent phase by multiplying the phase counter by the FTW's changes to frequency 2 at 3840 ns and back to frequency 1 at 6720 ns. for m=1:10000 / 240 if m<16 coherent_phase(m)=phase_counter(m)*F1W1; end; if m>=16 coherent_phase(m)=phase_counter(m)*FTW2; if m>=28 coherent_phase(m)=phase_counter(m)*FTW1; end; end; The coherent phase is equal to the first 14 bits of the lower 32-bit word of the 64-bit product of phase_counter x FTW. This corresponds to bit 31 down to 18 in vhdl (Matlab index 1 to 64 versus vhdl index 63 down to 0). coherent_phase=num2bin(r,coherent_phase); coherent_phase=coherent_phase(:,33;46); coherent_phase=bin2num(q, coherent_phase); for m=1:10000 / 240 compare values of FPGA calculated coherent phase and actual 9858 phase every 240 ns the index of phase_comparison array is time in 240 ns steps for k=1:10000 / 240 time phase_comparison(k,1)=k*240;Value of 9858 phase word converted to degrees at 240 ns increments phase_comparison(k,2)=phase_word(k*word)*360 / 2^14; coherent phase converted to degrees calculated by FPGA phase_comparison(k,3)=coherentphase(k)*360 / 2^14; end; ; APPENDIX B COHERENT PHASE ALGORITHM
[0020] Das IEEE-standard-1164-Package, deklariert std_logic, rising_edge(), usw. Bibliothek IEEE; use IEEE.std_logic_1164.all; use IEEE.std_logic_arith.all; use IEEE.std_logic_unsigned.all; library SYNOPSYS; use SYNOPSYS.attributes.all; entity phase_acc is port ( current_freq: in STD_LOGlC_VECTOR (31 downto 0); current_phase: in STD_LOGIC_VECTOR (31 downto 0); reset: in STD LOGIC; elk 62: in STD LOGIC; time0: in std_logic; sweep: in std_logic; coherent_phase: out STD_LOGIC_VECTOR (13 downto 0) ); end phase_acc; architecture phase_acc_arch of phase_acc is SIGNAL freq_fraction: STD_LOGIC_VECTOR(12 DOWNTO 0); SIGNAL div_by_4: STD_LOGIC_VECTOR(1 DOWNTO 0); SIGNAL acc_cnt: STD_LOGIC VECTOR(13 DOWNTO 0); SIGNAL sync_acc_ent: STD_LOGIC_VECTOR(13 DOWNTO 0); SIGNAL mult_out: STD LOGIC_VECTOR(35 DOWNTO 0); SIGNAL adder out: STD LOGIC_VECTOR(13 DOWNTO 0); SIGNAL latch_sweep: STD_LOGIC; SIGNAL div_by_4tc: STD_LOGIC; SIGNAL ce 15m: STD LOGIC; SIGNAL no fraction: STD LOGIC;Xilinx CoreGen vorzeichenlose 14-Bit-Addierer.component add_14u port ( A: IN std_logic_VECTOR(13 downto 0); B: IN std_logic_VECTOR(12 downto 0); Q:OUT std_logic_VECTOR(26 downto 0)); end component; Xilinx CoreGen unsigned 14-bit by 13-bit multipliers. component multil4x13u port ( a: IN std_logic_VECTOR(13 downto 0); b: IN std_logic_VECTOR(12 downto 0); q: OUT std_logic_VECTOR(26 downto 0)); end component; begin Divide 62.5MHz clock by 4 to create a 15.625MHz take release. div4_counter:process (reset, clk_62) begin if clk62='1' and clk62'event then if reset='1' then div_by_4 <= "00"; else div_by_4 <= div_by_4 + 1; end if; end if; end process; Terminal count for update counter. div_by_4tc <= '1' when (div_by_4(1 downto 0) = "11") else '0'; Deglitch and sync with terminal count from update counter. update_geglitch:process (clk_62) begin if clk 62='1' and clk 62'event then ce_15m <= div_by_4tc; end if; end process; Accumulator / counter for tracking the phase for a 953.6743164 Hz signal.update_new_data:process (reset, elk 62) begin if clk 62='1' and clk 62'event then if reset='1' then acc_cnt(13 downto 0) <= "00000000000000" then elseif ce 15m='1' then acc_cnt(13 downto 0) <= acc_cnt(13 downto 0) + 1; end if; end if; end process; Sample phase accumulator and step through the input at the start of an update cycle. New data from this module should be available after 6 clock cycles from the update strobe. update_new_data:process (reset, clk 62) begin if clk 62='1' and clk 62'event then if reset='1' then latch_sweep <= '0'; sync_acc_cnt(13 downto 0) <= "00000000000000"; elseif time0='1' then latch_sweep <= sweep; sync_acc_cnt(13 downto 0) <= acc_cnt(13 downto 0); end if; end if; end process; Custom resource: 18 x 18 multiplier block for frequency-to-phase conversion. Core gen: 14 x 13 unsigned multipliers, latency = 3 clock cycles.freq_to_phase : multil4x13u port map ( clk => clk_62, a => sync_acc_cnt(13 downto 0), b => freq_fraction(12 downto 0), q => mult_out(26 downto 0)); Generate fractional frequency for phase correction of the current frequency. freq_fraction(12 downto 0) <= 0 & current_freq(11 downto 0); Coregenerated 14 x 14 unsigned adder for phase correction, latency = 1 clock cycle. phase correct_adder add_14u port map ( A => mult_out(25 downto 12), B => current_phase(13 downto 0), C => adder_out(13 downto 0)), CLK => clk62; Multiplexer for synchronizing phase-coherent output. Do not modify phase data in sweep mode.sync_phase:process (clk_62, reset, latch_sweep) begin if clk 62'event and clk_62='1' then if reset='1' then coherent_phase(13 downto 0) <= "00000000000000"; else case latch sweep is when '0' => coherent_phase(13 downto 0) adder_out(13 downto 0); when '1' => coherent_phase(13 downto 0) current_phase(13 downto 0); when others => NULL; end case; end if; end if; end process; end phase_acc_arch; . ANHANG CAUTOMATISCHE TEST-BENCH FÜR PHASENAKKUMULATOR
[0021] library ieee,synopsys; use ieee.std_logic_unsigned.all; use ieee.std_logic_arith.all; use ieee.std_logic_1164.all; use synopsys.attributes.all; Entity phase_acc_tb ist end phase_acc_tb; architecture TB_ARCHITECTURE of phase_acc_tb ist Componentendeklaration der getesten Einheit component phase_acc port( currentfreq : in std_logic_vector(31 downto 0); current_phase : in std_logic_vector(31 downto 0); reset : in std_logic; clk_62 : in std_logic; time0 : in std_logic; sweep : in std_logic; coherent_phase : out std_logic_vector(13 downto 0) ); end component; Stimulus signals - signals mapped to the input and inout ports of tested entity signal current_freq : std_logic_vector(31 downto 0); signal current_phase : std_logic_vector(31 downto 0); signal current_freq_tb : std_logic_vector(31 downto 0); signal current_phase_tb : std_logic_vector(31 downto 0); signal reset : std_logic; signal clk_62 : std_logic; signal time0 : std_logic; signal time0stamp : std_logic; signal sweep : std_logic;Observed signals - signals mapped to the output ports of the tested entity signal coherent_phase std_logic_vector(13 downto 0); add your code here... shared variable end_sim : boolean := false; constant clk_period: time := 16 ns; begin unit under test port map UUT phase_acc port map ( current_freq => current_freq, current_phase => current_phase, reset => reset, clk_62 => clk_62, time0 => time0, sweep => sweep, coherent_phase => coherent_phase, ); add your stimulus here: ...generate 62.5 MHz clock every 16 ns. Generate time stamp every 240 ns, 16 ns wide. clock_gen: process begin if end sim=false then elk 62 <= '0'; time0stamp <= '0'; wait for clk_period / 2; clk_62 <-1'; -1; wait for clk_period / 2; elk 62 <= '0'; wait for clk_period / 2; clk_62 <= '1'; --2; wait for clk_period / 2; clk_62 <= '0'; wait for clk_period / 2; clk_62 <= '1'; --3; wait for clk_period / 2; clk_62 <= '0'; wait for clk _period / 2; clk_62 <= '1'; --4; wait for clk_period / 2; clk_62 <= '0';wait for clk_period / 2; clk_62 <= '1'; --5; wait for clk_period / 2; clk_62 <= '0'; wait for clk_period / 2; clk_62 <= '1'; --6; wait for clk_period / 2; clk_62 <= '0'; wait for clk_period / 2; clk_62 <= '1'; --7; wait for clk_period / 2; clk_62 <= '0'; wait for clk_period / 2; clk_62 <= '1'; --8; wait for clk_period / 2; clk_62 <= '0'; wait for clk_period / 2; clk_62 <= '1'; --9; wait for clk_period / 2; clk_62 <= '0'; wait for clk_period / 2; clk_62 <= '1'; --10; wait for clk_period / 2; clk_62 <= '0'; wait for clk_period / 2; clk_62 <= '1'; --11; wait for clk_period / 2; clk_62 <= '0; wait for clk_period / 2; clk_62 <= '1'; --12; wait for clk_period / 2; clk_62 <= '0'; wait for clk_period / 2; clk_62 <= '1'; --13; wait for clk_period / 2; clk_62 <= '0'; wait for clk_period / 2; clk_62 <= '1; --14; wait for clk_period / 2; clk_62 <= '0'; wait for clk_period / 2; clk_62 <= '1'; -15; wait for clk_period / 2; else wait; end if; end process; Erzeugen Zeit-0-Stempel, der alle 240 ns auftritt, Ausrichten auf Aktualisierungsstrobe.;
Claims
[1] A method for a phase-stable agile signal source, comprising: Providing a DDS (Direct Digital Synthesizer) clock rate; Providing a frequency tuning word (FTW) for a desired output frequency; Providing a DDS update for a desired DDS update rate; Providing an equivalent frequency LSB (Least Significant Bit) equivalent frequency for the desired DDS update rate; Providing a current phase of an LSB accumulator and Generating a coherent phase of the desired output frequency based on at least the DDS clock rate, the FTW, the DDS update rate to the DDS, the equivalent LSB for the desired DDS update rate, and the current phase of the LSB accumulator to maintain a temporally continuous phase of an output frequency of the DDS when the DDS is programmed to a different output frequency and then back to the original frequency. [2] The method of claim 1, wherein providing an equivalent frequency further comprises obtaining the equivalent frequency LSB of the desired DDS update rate by multiplying the LSB of the FTW by the DDS clock rate and dividing by the DDS update rate. [3] The method of claim 1, wherein providing a current phase further comprises adding the current phase of the LSB accumulator to the equivalent frequency LSB for the desired DDS update. [4] The method of claim 1, wherein the step of generating a coherent phase further comprises generating the coherent phase by multiplying the FTW by the current phase of the LSB accumulator and using the fractional part of the result. [5] The method of claim 4, wherein the fractional portion of the coherent phase is that portion of the coherent phase which is a fraction of a full cycle, wherein a full cycle consists of 360 degrees. [6] Apparatus for a phase-stable agile signal source, comprising: an equivalence accumulator and a DDS (Direct Digital Synthesizer) communicatively connected to the equivalent phase accumulator, the DDS having a reference clock frequency, wherein the apparatus is configured for a phase-stable agile signal source as a function of a fraction of the reference clock frequency to track the phase of an output frequency of the DDS to maintain a temporally continuous phase of an output frequency of the DDS when the DDS is programmed to a different output frequency and then back to the original frequency, wherein the equivalent accumulator comprises: an LSB (least significant bit) accumulator for providing an equivalent frequency LSB and a DDS update rate and generating a coherent phase of the LSB accumulator, a programmable register for programming a frequency tuning word (FTW).) [7] The apparatus of claim 7, wherein the LSB accumulator comprises: an addition logic and a register for storing the current phase of occurrence of a DDS update for a desired DDS update rate. [8] The apparatus of claim 7, wherein the summing logic receives an equivalent frequency LSB for the desired DDS update rate. [9] The apparatus of claim 5, wherein the apparatus is configured to obtain an equivalent frequency LSB for a desired DDS update rate by multiplying a least significant bit of the frequency tuning word by a DDS clock rate and dividing by the DDS update rate. [10] The apparatus of claim 6, wherein the apparatus is configured to add a current phase of the LSB accumulator to the equivalent frequency LSB for a desired DDS update. [11] The apparatus of claim 5, wherein the apparatus is configured to generate a coherent phase by multiplying the frequency tuning word by a current phase of the LSB accumulator and using a fractional portion of the result. [12] The device of claim 10, wherein the fractional portion of the coherent phase is that portion of the coherent phase which is a fraction of a whole cycle, wherein a whole cycle consists of 360 degrees. [13] A computer program product containing a computer-readable medium having embodied thereon instructions for a phase-stable agile signal source to perform steps, comprising: Providing a DDS (Direct Digital Synthesizer) clock rate; Providing a frequency tuning word (FTW) for a desired output frequency; Providing a DDS update for a desired DDS update rate; Providing an equivalent frequency LSB (Least Significant Bit) equivalent frequency for the desired DDS update rate; Providing a current phase of an LSB accumulator and Generating a coherent phase of the desired output frequency based on the DDS clock rate, the FTW, the DDS update rate to the DDS, the equivalent LSB for the desired DDS update rate, and the current phase of the LSB accumulator to maintain a temporally continuous phase of an output frequency of the DDS when the DDS is programmed to a different output frequency and then back to the original frequency. [14] The computer program product of claim 13, wherein the step of providing an equivalent frequency further comprises obtaining the equivalent frequency LSB for the desired DDS update rate by multiplying the least significant bit of the FTW by the DDS clock rate and dividing by the DDS update rate. [15] The computer program product of claim 13, wherein providing a current phase further comprises adding the current phase of the LSB accumulator to the equivalent frequency LSB for a desired DDS result. [16] The computer program product of claim 13, wherein the step of generating a coherent phase further comprises generating the coherent phase by multiplying the FTW by the current phase of the LSB accumulator and using a fractional part of the result. [17] The computer program product of claim 16, wherein the fractional portion of the coherent phase is that portion of the coherent phase that is a fraction of a whole cycle, where a whole cycle consists of 360 degrees. [18] The computer program product of claim 13, further comprising coherent phase algorithm code. [19] The computer program product of claim 13, further comprising phase coherence simulation code and automatic test bench for phase accumulator code.
Citation Information
Patent Citations
Local clock generator
US5473274A
