<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JCC</journal-id><journal-title-group><journal-title>Journal of Computer and Communications</journal-title></journal-title-group><issn pub-type="epub">2327-5219</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jcc.2018.611010</article-id><article-id pub-id-type="publisher-id">JCC-88546</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  A Matlab/Simulink Development and Verification Platform for a Frequency Estimation System
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Yingtai</surname><given-names>Li</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Lisheng</surname><given-names>Yang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Xin</surname><given-names>Lei</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Rui</surname><given-names>Ma</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Luncai</surname><given-names>Liu</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Fan</surname><given-names>Liu</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Yao</surname><given-names>Yao</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>College of Communication Engineering, Chongqing University, Chongqing, China</addr-line></aff><aff id="aff2"><addr-line>Analog IC Design Center, Sichuan Institute of Solid-State Circuits, Chongqing, China</addr-line></aff><pub-date pub-type="epub"><day>07</day><month>11</month><year>2018</year></pub-date><volume>06</volume><issue>11</issue><fpage>108</fpage><lpage>115</lpage><history><date date-type="received"><day>18,</day>	<month>September</month>	<year>2018</year></date><date date-type="rev-recd"><day>12,</day>	<month>November</month>	<year>2018</year>	</date><date date-type="accepted"><day>19,</day>	<month>November</month>	<year>2018</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  
    The precise estimation of the frequency of the signal is of great significance in the Radar system, the electronic warfare system and many other systems. In this paper, we propose a development and verification platform for the frequency estimation system in the Matlab and Simulink environment. Its open-extensibility architecture enables the performance evaluation of different frequency estimation algorithms and its graphic interface can greatly promote the system design, simulation and verification efficiency. 
  
 
</p></abstract><kwd-group><kwd>Frequency Estimation</kwd><kwd> Matlab and Simulink</kwd><kwd> Algorithm</kwd><kwd> Verification  Platform</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The precise frequency estimation of one or more sinusoids contaminated with noise appears in many practical applications such as communications, instrumentation, radar and audio. During the past few years a lot of efforts have been exerted to solve the problem and quite a number of frequency estimation algorithms have been published [<xref ref-type="bibr" rid="scirp.88546-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref2">2</xref>]. Most of them are based on the Discrete Fourier Transform (DFT) or the Fast Fourier Transform (FFT). One key parameter of these algorithms is the amount of time needed to collect data which is usually limited by the pulse width of the signal in the commonly used pulse signal systems such as the pulse radar because it decides the calculation precision of the FFT. Some computationally simple algorithms are proposed to refine the frequency estimation based on DFT samples without the need for increasing the data collecting time [<xref ref-type="bibr" rid="scirp.88546-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref6">6</xref>].</p><p>However, the performance evaluation of the frequency estimators is another issue. Eric Jacobsen jointly simulated Quinn’s first [<xref ref-type="bibr" rid="scirp.88546-ref3">3</xref>] and second [<xref ref-type="bibr" rid="scirp.88546-ref4">4</xref>] estimators, Macleod’s estimator [<xref ref-type="bibr" rid="scirp.88546-ref5">5</xref>], and the estimator proposed by himself [<xref ref-type="bibr" rid="scirp.88546-ref6">6</xref>] using Matlab code [<xref ref-type="bibr" rid="scirp.88546-ref7">7</xref>], which revealed their theoretical performance difference. But none of the application and development platform for frequency estimation system is found.</p><p>In this paper, we apply the frequency estimation algorithms mentioned in [<xref ref-type="bibr" rid="scirp.88546-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref6">6</xref>] to a specific frequency estimation system and build up the relevant Matlab/Simulink development and verification platform in order to evaluate the performances of these algorithms. Matlab and Simulink are commonly used in many fields. Compared with Matlab, Simulink’s friendly graphic interface provides higher system modeling and simulation efficiency. Moreover, some extra functions provided by Matlab and Simulink, such as the automatic code generation and the joint debugging with the hardware, significantly enhance the system implementation efficiency.</p><p>This platform in this paper consists of three parts: the signal generator, the analog to digital convertor (ADC) and the digital signal processing unit. We found that the frequency estimation accuracies of all the algorithms adopted in this paper can reach 5Hz even through the pulse width is too short to satisfy the requirement of the traditional FFT method. This platform is essential for the algorithm analysis, the digital circuit design and the system implementation.</p></sec><sec id="s2"><title>2. The System Model</title><sec id="s2_1"><title>2.1. System Specification</title><p>The typical pulse modulation signal applied in the frequency estimation systems in this paper is illustrated in <xref ref-type="fig" rid="fig1">Figure 1</xref>. We focus on the intermediate frequency (IF) signal processing of this frequency estimation system, which means the radio frequency (RF) signal received by the antenna has been down converted to an IF signal.</p><p>The IF signal processing system is composed of the ADC and the digital signal processing circuit including the mixing circuit, the down sampling circuit, the Fast Fourier Transform (FFT) circuit and the digital frequency estimation circuit. The signal processing flow is illustrated in <xref ref-type="fig" rid="fig2">Figure 2</xref>. A direct digital synthesizer (DDS) is adopted to generate the local cosine and sine wave for mixing the IF signal to a baseband signal. The down sampling circuits reduce the data rate and the subsequent computation complexity. The FFT circuit and the digital frequency estimation circuit are two core modules of the system and all the frequency estimation algorithms in [<xref ref-type="bibr" rid="scirp.88546-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref6">6</xref>] are evaluated in this paper.</p></sec><sec id="s2_2"><title>2.2. Modeling</title><p>The top view of the development and verification platform for the frequency estimation system specified above is illustrated in <xref ref-type="fig" rid="fig3">Figure 3</xref>. Corresponding to <xref ref-type="fig" rid="fig2">Figure 2</xref>, it is mainly composed of three parts: the signal generator, the AD convertor and the digital signal processing block. The signal generator is the simulation stimulator of the whole system and generates the input IF signal. The ADC converters the analog IF signal to the digital signal. The digital signal processing block executes the signal preprocessing and the frequency estimation algorithms and finally achieves the signal frequency.</p><p>The signal generator is illustrated in <xref ref-type="fig" rid="fig4">Figure 4</xref>. The sine wave block are used to generate the under estimated signal shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>. The random number block is used to generate the noise. In order to evaluate the performance of the</p><p>system, the frequency estimation under different SNR should be observed so that the signal builder block is adopted to control the noise power resulting in the control of SNR.</p><p>The analog to digital converter is illustrated in <xref ref-type="fig" rid="fig5">Figure 5</xref>. It is composed of a zero order hold block and a quantizer block. The zero order hold block is used to transform the analog signal to the discrete signal and the quantizer complete the transformation from the discrete signal to the digital signal. Even through this model just presents the ideal conversion process but not consider the non-ideal factor of an actual ADC, the effect of the quantized bit number can be investigated. However, in order to investigate the non-ideal effect of an actual ADC, a more detailed model of ADC is needed to replace this model.</p><p>The digital signal processing (DSP) block is illustrated in <xref ref-type="fig" rid="fig6">Figure 6</xref>. Mainly it is composed of the digital frequency estimation system and the SNR calculation system.</p><p>In the digital frequency estimation system, firstly, we use a NCO block to mix the IF signal down to the baseband. Then a cascaded integrated comb (CIC) decimator is used to down sample the baseband signal to reduce the succedent computational complexity. A buffer block and a Fast Fourier Transform (FFT) calculation block are used to calculate the frequency spectrum of a certain data set during the T<sub>on</sub> in <xref ref-type="fig" rid="fig1">Figure 1</xref>. The frequency estimation algorithms are implemented in the embedded matlab function block. Because of the conflict between the calculation resolution and the limited time (limited by the pulse width) used to collect the data, the FFT results are not precise enough for the system in this</p><p>paper. Quinn’s first and second estimators, Macleod's estimator and Jacobsen’s estimator are adopted to refine the frequency estimation of tones based on the FFT samples. All of them provide a fractional correction term to be added to the integer peak index from FFT to determine a fine estimate of the spectral peak location located at the cyclic frequency [<xref ref-type="bibr" rid="scirp.88546-ref7">7</xref>].</p><p>The SNR calculation part is independent of the digital frequency estimation system and calculates the SNR from the simulated signal and noise. The SNR has important reference to the performance evaluation of different frequency estimation algorithms. The SNR is calculated out from the following formulas:</p><p>s i g n a l p o w e r = ∑ 1 N s ( n ) 2 n o i s e p o w e r = ∑ 1 N n ( n ) 2 S N R = 10 log 10 s i g n a l p o w e r n o i s e p o w e r</p><p>where s ( n ) is the signal data sequence and n ( n ) is the noise data sequence. N is the FFT length and it is decided by the depth of the buffer block.</p></sec></sec><sec id="s3"><title>3. Simulation Results</title><p>In this paper, in the signal builder block the noise power is controlled by a time dependent variable whose time history plot is illustrated in <xref ref-type="fig" rid="fig7">Figure 7</xref>. Before 0.005 seconds, it slowly changes from 0.001 to 0.003 resulting nearly no noise so that the ideal performance of the frequency estimators can be observed. Then it increases with time to evaluate their performances under different SNRs. Apparently, its flexible configurability enables the modeling of other noise power curves.</p><p>The simulated IF signal and the corresponding SNR calculated are illustrated in <xref ref-type="fig" rid="fig8">Figure 8</xref>. Obviously, as the noise power increases with time the SNR decreases.</p><p>In this paper, the frequency estimation error is adopted to represent the performance of the estimators in [<xref ref-type="bibr" rid="scirp.88546-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref6">6</xref>]. As mentioned above, the frequency of the input signal can be configured arbitrarily in the signal generator</p><p>illustrated in <xref ref-type="fig" rid="fig4">Figure 4</xref>. The frequency estimation error of a certain estimator is obtained from the difference between the frequency estimated by that estimator and the configured frequency of the input signal.</p><p>The frequency errors obtained from the estimators in [<xref ref-type="bibr" rid="scirp.88546-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.88546-ref6">6</xref>] under different SNR are illustrated in <xref ref-type="fig" rid="fig9">Figure 9</xref>. Obviously, the frequency estimation accuracies of all the four estimators are better than 5 Hz smoothly when the SNR is above 5 dB. But as the SNR decreases, the estimation accuracies deteriorate and become worse than 20 Hz.</p><p>Remarkably, the results shown in <xref ref-type="fig" rid="fig9">Figure 9</xref> are just from one simulation. More simulation times are needed to observe the variation tendency on account of the randomness of the noise. The results of 7 times simulation of the estimator in [<xref ref-type="bibr" rid="scirp.88546-ref3">3</xref>] are illustrated in <xref ref-type="fig" rid="fig1">Figure 1</xref>0. Obviously, they show the same trend with <xref ref-type="fig" rid="fig9">Figure 9</xref>.</p></sec><sec id="s4"><title>4. Conclusion</title><p>In this paper, a Matlab/Simulink development and verification platform for the frequency estimation system is proposed. The performance of several frequency estimation algorithms based on short data is investigated and the simulation results support their effectiveness. The flexible configuration and open extensibility promote the system analysis efficiency significantly.</p></sec><sec id="s5"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s6"><title>Cite this paper</title><p>Li, Y.T., Yang, L.S., Lei, X., Ma, R., Liu, L.C., Liu, F. and Yao, Y. (2018) A Matlab/Simulink Development and Verification Platform for a Frequency Estimation System. Journal of Computer and Communications, 6, 108-115. https://doi.org/10.4236/jcc.2018.611010</p></sec></body><back><ref-list><title>References</title><ref id="scirp.88546-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Akos, D. (1997) A Software Radio Approach to Global Navigation Satellite System Receiver Design. Ohio University Athens, OH.</mixed-citation></ref><ref id="scirp.88546-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Borre, K. and Akos, D. (2006) A Software-Defined GPS and GALILEO Receiver—A Single-Frequency Approach. Birkh&amp;#228;user, New York.</mixed-citation></ref><ref id="scirp.88546-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Quinn. B.G. (1994) Estimating Frequency by Interpolation Using Fourier Coefficients. IEEE Trans. Sig. Proc., 42, 1264-1268. https://doi.org/10.1109/78.295186</mixed-citation></ref><ref id="scirp.88546-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Quinn, B.G. (1997) Estimation of Frequency, Amplitude and Phase from the DFT of a Time Series. IEEE Trans. Sig. Proc., 45, 814-817.  
https://doi.org/10.1109/78.558515</mixed-citation></ref><ref id="scirp.88546-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Macleod, M.D. (1998) Fast Nearly ML Estimation of the Parameters of Real or Complex Single Tones or Resolved Multiple Tones. IEEE Trans. Sig. Proc., 46, 141-148. https://doi.org/10.1109/78.651200</mixed-citation></ref><ref id="scirp.88546-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Jacobsen, E. and Kootsookos, P. (2007) Fast, Accurate Frequency Estimators. IEEE Signal Processing Magazine, 123-125. https://doi.org/10.1109/MSP.2007.361611</mixed-citation></ref><ref id="scirp.88546-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Jacobsen, E. On Local Interpolation of DFT Out-Puts.  
http://www.ericjacobsen.org/FTinterp.pdf</mixed-citation></ref></ref-list></back></article>