WO2014030384A1 - Sampling rate conversion device - Google Patents

Sampling rate conversion device Download PDF

Info

Publication number
WO2014030384A1
WO2014030384A1 PCT/JP2013/060606 JP2013060606W WO2014030384A1 WO 2014030384 A1 WO2014030384 A1 WO 2014030384A1 JP 2013060606 W JP2013060606 W JP 2013060606W WO 2014030384 A1 WO2014030384 A1 WO 2014030384A1
Authority
WO
WIPO (PCT)
Prior art keywords
digital signal
input
fir
output
sampling rate
Prior art date
Application number
PCT/JP2013/060606
Other languages
French (fr)
Japanese (ja)
Inventor
山田 恭裕
雄一郎 小池
Original Assignee
Nttエレクトロニクス株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nttエレクトロニクス株式会社 filed Critical Nttエレクトロニクス株式会社
Priority to BR112015003618-0A priority Critical patent/BR112015003618B1/en
Priority to US14/420,651 priority patent/US9214921B2/en
Priority to EP13831644.3A priority patent/EP2890008B1/en
Publication of WO2014030384A1 publication Critical patent/WO2014030384A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • H03H17/02Frequency selective networks
    • H03H17/06Non-recursive filters
    • H03H17/0621Non-recursive filters with input-sampling frequency and output-delivery frequency which differ, e.g. extrapolation; Anti-aliasing
    • H03H17/0635Non-recursive filters with input-sampling frequency and output-delivery frequency which differ, e.g. extrapolation; Anti-aliasing characterized by the ratio between the input-sampling and output-delivery frequencies
    • H03H17/0685Non-recursive filters with input-sampling frequency and output-delivery frequency which differ, e.g. extrapolation; Anti-aliasing characterized by the ratio between the input-sampling and output-delivery frequencies the ratio being rational
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • H03H17/02Frequency selective networks
    • H03H17/0248Filters characterised by a particular frequency response or filtering method
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • H03H17/02Frequency selective networks
    • H03H17/06Non-recursive filters
    • H03H17/0621Non-recursive filters with input-sampling frequency and output-delivery frequency which differ, e.g. extrapolation; Anti-aliasing
    • H03H17/0635Non-recursive filters with input-sampling frequency and output-delivery frequency which differ, e.g. extrapolation; Anti-aliasing characterized by the ratio between the input-sampling and output-delivery frequencies
    • H03H17/0642Non-recursive filters with input-sampling frequency and output-delivery frequency which differ, e.g. extrapolation; Anti-aliasing characterized by the ratio between the input-sampling and output-delivery frequencies the ratio being arbitrary or irrational

Definitions

  • the present invention relates to a sampling rate conversion device used for a digital image size conversion device, digital audio, or the like.
  • a sampling rate converter is used to convert an input digital signal sampled at the input sampling rate into an output digital signal sampled at the output sampling rate.
  • an output digital signal is obtained by taking out (down-sampling) a sample that matches the output sampling rate R2 from a sequence of N times the sample value of the input digital signal.
  • FIG. 9 is a diagram for explaining a conventional sampling rate conversion method.
  • a circle in the figure indicates a digital signal having a sampling rate R3.
  • a circle with hatched lines indicates an input digital signal at the input sampling rate R1
  • a bold circle indicates an output digital signal at the output sampling rate R2
  • a thin white circle indicates other than the input / output digital signal.
  • sampling rate R3 These digital signals of sampling rate R3 are calculated from the input digital signal (upsampling). At that time, an interpolation value calculation is performed using an FIR-LPF (Finite Impulse Response Low Pass Filter) having a characteristic of blocking a frequency component that is 1/2 or more of the output sampling rate R2. Then, an output digital signal having an output sampling rate R2 is extracted from the digital signal having a sampling rate R3 (down sampling).
  • FIR-LPF Finite Impulse Response Low Pass Filter
  • the case where the sampling rate is reduced is called down-sampling.
  • FIR-LPF is used to block the high frequency component of the input and suppress aliasing noise due to a decrease in sampling rate.
  • the case where the sampling rate is increased is called up-sampling.
  • up-sampling it is not necessary to block the high frequency component of the input, but FIR-LPF is used to calculate an interpolation value at a position different from the input digital signal.
  • FIG. 10 is a diagram showing an impulse response of the FIR-LPF.
  • the impulse response of the filter is expressed by a time function obtained by inverse Fourier transform of a predetermined filter characteristic.
  • the impulse response waveform exists before and after time 0.
  • an output digital signal at time 0 is calculated using an input digital signal in the existence range of the impulse response waveform.
  • the impulse response waveform continues for a long time, but in order to make it practical, the impulse response waveform is cut to a certain finite length to perform signal processing.
  • the impulse response start time (negative time) is set to 0 or a positive number. Specifically, the impulse response start time -T is converted to 0, and the original time 0 is set to T to perform sampling rate conversion. In digital signal processing, such a time shift process can be performed by using a memory (shift register).
  • a sample sampled at a high sampling rate R3 in which both samples of the sampling rates R1 and R2 are present is generated, and a sample string at the sampling rate R2 is extracted therefrom.
  • An apparatus using such a very high sampling rate R3 has been difficult to realize with inexpensive semiconductor technology.
  • the design of a digital circuit having three operation clock frequencies corresponding to the three sampling rates R1, R2, and R3 is complicated and difficult.
  • a general-purpose sampling rate conversion apparatus that can cope with an arbitrary input / output sampling rate (that is, M and N are arbitrary) is desired.
  • the present invention has been made to solve the above-described problems, and an object of the present invention is to obtain an inexpensive and general-purpose sampling rate conversion apparatus with a small circuit scale.
  • a sampling rate conversion apparatus is a sampling rate conversion apparatus that converts an input digital signal sampled at an input sampling rate into an output digital signal sampled at an output sampling rate.
  • a position coordinate difference calculation unit for calculating a position coordinate difference Dk between the position coordinate of the input digital signal close to the position coordinate Tk of the digital signal Yk and the position coordinate Tk; and a frequency component of 1/2 or more of the output sampling rate.
  • Stores the FIR coefficient F (z) of the FIR-LPF when the position coordinate of the impulse input inputted to the FIR-LPF (Finite Impulse Response Low Pass Filter) having the cutoff characteristic is set to z 0.
  • a sampling rate conversion apparatus according to an embodiment of the present invention will be described with reference to the drawings.
  • the same or corresponding components are denoted by the same reference numerals, and repeated description may be omitted.
  • FIG. FIG. 1 is a block diagram showing a sampling rate conversion apparatus according to Embodiment 1 of the present invention.
  • the apparatus converts an input digital signal sampled at an input sampling rate into an output digital signal sampled at an output sampling rate. Further, the present embodiment aims to convert the sampling rate of the image, and geometrically converts the number of samples in a predetermined area on the screen. Therefore, the sampling rate conversion in this case means two sampling rate conversions for both the horizontal and vertical coordinate axes in the two-dimensional space coordinates.
  • the apparatus of this embodiment operates with a processing clock having a frequency higher than the input / output sampling rate. Note that in the case of an HD60P image (1920 ⁇ 1080 ⁇ 60 / sec), the actual clock frequency is about 148.5 MHz.
  • the FIFO memory 1 temporarily stores the input digital signal and then supplies it to the shift register 2 in synchronization with the processing clock.
  • the parallel FIR calculator 3 converts the input digital signal supplied from the shift register 2 into an output digital signal.
  • the FIFO memory 4 temporarily stores the output digital signal and then outputs it in synchronization with the output clock.
  • the position coordinate difference calculation unit 5 calculates a position coordinate difference Dk between the position coordinate of the input digital signal close to the position coordinate Tk of the kth output digital signal Yk and the position coordinate Tk in synchronization with the processing clock.
  • an input digital signal close to the position coordinate Tk means (1) an input digital signal whose position coordinate difference from the position coordinate Tk is 0 or the closest positive number, and (2) a position coordinate with the position coordinate Tk.
  • the target input digital signal may be shifted by one input sample period.
  • the position coordinate difference calculation unit 5 includes an input integrator 6, an output integrator 7, and an integrated value comparator 8 that controls them.
  • C be a constant
  • M and N be mutually prime positive integers
  • the sampling period of the input digital signal be C ⁇ M
  • the sampling period of the output digital signal be C ⁇ N.
  • the input integrator 6 integrates M and outputs an integrated value Sm.
  • the output integrator 7 integrates N and outputs an integrated value Sn.
  • the integrated value comparator 8 integrates M in the input integrator 6 when Sm ⁇ Sn ⁇ N, integrates N into the output integrator 7 when Sn ⁇ Sm ⁇ M, and sets N into the output integrator 7. Sn-Sm at the time of integration is output as the position coordinate difference Dk.
  • the RAM Random Access Memory
  • ROM Read Only Memory
  • the FIR coefficient memory 9 stores a set of FIR coefficients for each type of position coordinate difference Dk, and selects and outputs a set of FIR coefficients according to the input position coordinate difference Dk. Since there are M output cycles N in the period of the least common multiple M ⁇ N of the input cycle M and the output cycle N, there are M types of position coordinate differences Dk, and M sets of FIR coefficients are required.
  • Yk F (Zk (1) ⁇ Tk) * Xk (1) + F (Zk (2) ⁇ Tk) * Xk (2) +... + F (Zk (p) ⁇ Tk) * Xk (p) is calculated to obtain the output digital signal Yk (FIR-LPF interpolation calculation).
  • FIG. 2 is a block diagram showing the parallel FIR computing unit according to Embodiment 1 of the present invention.
  • This FIR computing unit is an 8-Tap parallel FIR computing unit that performs a parallel product-sum operation using eight input digital signals to obtain one output digital signal.
  • the input digital signals are output in parallel from the shift registers R0 to R7 to the multipliers A0 to An, and the corresponding FIR coefficients are obtained.
  • the data is output in parallel from the FIR coefficient memory 9 to the multipliers A0 to A7, and multiplication is performed by the multipliers A0 to An.
  • the outputs of the multipliers A0 to A7 are added by the product-sum circuit 10 to calculate an output digital signal.
  • FIG. 3 is a diagram for briefly explaining the principle of FIR-LPF interpolation calculation.
  • circles with hatched lines indicate input digital signals, and white circles indicate output digital signals.
  • the input period M is 4 and the output period N is 5.
  • An output digital signal Yk present at a position Tk that does not exist in the input digital signal is interpolated and calculated from the surrounding input digital signal Xk (q).
  • the FIR coefficient F (Zk (q) ⁇ Tk) is used.
  • an image signal about 30 input digital signals around the output digital signal Yk (15 before and after) are used.
  • high accuracy is required, and about 50 to 100 peripheral input digital signals are used. The more input digital signals are used, the better the accuracy of the interpolation calculation.
  • FIG. 4 is a diagram showing the positional relationship between the input digital signal and the output digital signal.
  • the waveform in the figure is an impulse response waveform of the FIR filter.
  • the center of the waveform is set to the position Yk of each output digital signal, and the output digital signal is calculated by FIR-LPF interpolation calculation using the eight input digital signals around it.
  • the input / output cycle ratio M is N
  • the positional relationship of the input digital signal with respect to the output digital signal is M types of repetition.
  • the positional relationship is three types of repetition.
  • an FIR filter having an impulse response waveform that is symmetric about the impulse input position is used. This is to eliminate the waveform distortion by setting the group delay characteristic (change in delay for each frequency) to be flat (uniform). If a symmetric impulse response waveform is used, the FIR coefficient becomes the same value at a symmetrical position with respect to the center, so that the number of FIR coefficients can be halved. For example, when the position coordinate difference Dk, which is a symmetric positional relationship, is 1, and when the position coordinate difference Dk is (M ⁇ 1), the FIR coefficients are the same numerical values. When the position coordinate difference Dk is 0, the FIR coefficient itself is symmetric.
  • the initial value detection reset unit 11 resets Sm and Sn to the initial values when the difference between Sm and Sn matches the initial value. Note that Sm and Sn are also reset to initial values when a reset signal is input from the outside.
  • Table 1 shows the transition of the integrated values Sm and Sn when the initial value detection reset unit 11 is not operated.
  • the initial values of Sm and Sn are set to substantially coincide with each other.
  • Modulo (Sn-Sm, M) is a remainder (0 to M-1) obtained by dividing Sn-Sm by M.
  • the value of Sn-Sm can be made a narrow numerical range by modulo calculation, and the number of bits expressing the value of M can be made to correspond to the numerical value after the modulo calculation.
  • the second and third clocks integrate M, so the input digital signal is transferred and shifted, but there is no N accumulation, so the output digital signal is not calculated. Since M ⁇ N, M is always accumulated at each clock.
  • Sn-Sm indicates the difference in the position of the input / output digital signal.
  • the FIR-LPF coefficient value may be shifted by two samples.
  • the initial value detection reset unit 11 resets Sm and Sn to the initial values (reinitialization) at a possible timing. ) As a result, the hardware scale can be reduced. Table 2 shows the transition of the integrated values Sm and Sn when the initial value detection reset unit 11 is operated.
  • the operation from the 9th to the 15th clock is exactly the same as the operation from the 1st to the 7th clock. Reset again at the 16th clock.
  • the operation from the 17th clock to the 23rd clock is exactly the same as the operation from the 1st clock to the 7th clock. Thereafter, the above operation is repeated.
  • a 13-bit register, an adder / subtracter, a magnitude determination device, and the like are required when the above reset control is not performed.
  • the maximum value of the integrated values Sm and Sn is 26. Therefore, a register, an adder / subtracter, a magnitude determination device, and the like can be configured with 5 bits.
  • the position coordinates of the input digital signal close to the position coordinates of the output digital signal are specified. Based on the position coordinates and the input sampling rate, the position coordinates of a certain number of input digital signals to be used in the FIR-LPF can be obtained. An output digital signal can be calculated by reading out FIR coefficients to be applied to those input digital signals from the memory and performing FIR-LPF interpolation calculation.
  • the present embodiment can operate at an arbitrary clock frequency that is not related to the input / output sampling rate in principle. Therefore, it is general purpose because it can cope with an arbitrary input / output sampling rate (that is, M and N are arbitrary). Conventionally, the sampling rate of the least common multiple of the input sampling rate and the output sampling rate has been used, but in the present embodiment, the use of such a high sampling rate can be avoided. However, in order to prevent a delay in operation, it is necessary to use the clock frequency of the higher one of the input sampling rate and the output sampling rate, or one type of clock frequency higher than both.
  • the conventional apparatus operates at three clock frequencies, but the apparatus of the present embodiment can operate at one clock frequency. For this reason, the sampling rate conversion apparatus according to the present embodiment can be realized by an inexpensive semiconductor technology.
  • the magnitude relationship between Sm and Sn is determined, M is added to Sm so as to maintain a state where Sm and Sn substantially match, N is added to Sn, and the input / output digital signal is Calculate the positional relationship.
  • M is added to Sm so as to maintain a state where Sm and Sn substantially match
  • N is added to Sn
  • the input / output digital signal is Calculate the positional relationship.
  • the reset control by the initial value detection reset unit 11 can reduce the number of bits of the register, the adder / subtracter, the size determination unit, and the like.
  • the pixels at the edge of the image are copied and the image is expanded to the outside of the image (the right side at the right end, the left side at the left end, the upper side at the upper end, the lower side at the lower end), and the FIR calculation is performed.
  • the parallel FIR computing unit 3 is an A-Tap filter (A product-sum)
  • the calculation of the output digital signal is started after A input digital signals are first transferred to the shift register 2.
  • Half of the A input digital signals are copies of samples at the edge of the image.
  • the input integrator 6 adds M to Sm when Sm ⁇ Sn ⁇ N
  • the output integrator 7 adds N to Sn when Sn ⁇ Sm ⁇ M.
  • the difference between Sn and Sm is in the range of 0 to N-1.
  • the input integrator 6 always integrates M when M ⁇ N. If N is an even number, Sm + N / 2 ⁇ Sn> Sm ⁇ N / 2, and if N is an odd number, Sm + (N ⁇ 1)
  • the output integrator 7 may add N to Sn when / 2 ⁇ Sn> Sm ⁇ (N + 1) / 2.
  • the difference between Sn and Sm is in the range of ⁇ N / 2 to N / 2 or ⁇ (N + 1) / 2 to (N ⁇ 1) / 2.
  • the output integrator 7 always integrates N when M> N. If M is an even number, Sn + M / 2 ⁇ Sm> Sn ⁇ M / 2, and if M is an odd number, Sn + The input integrator 6 may integrate M to Sm when (M ⁇ 1) / 2 ⁇ Sm> Sn ⁇ (M + 1) / 2. In this case, the difference between Sn and Sm is in the range of ⁇ M / 2 to M / 2 or ⁇ (M + 1) / 2 to (M ⁇ 1) / 2. Thereby, the absolute value of the difference between the integrated values Sm and Sn indicating the position of the input / output digital signal can be reduced.
  • the input integrator 6 may integrate M with Sm when Sm ⁇ Sn
  • the output integrator 7 may integrate N with Sn when Sn ⁇ Sm.
  • M and N are integrated, and the processing time becomes long.
  • Embodiment 3 reduces the processing time by pre-determining and controlling the integration of Sm and Sn.
  • the sampling rate conversion in the horizontal direction of the image is assumed, but the difference in the case of the sampling rate conversion in the vertical direction of the image will be described.
  • the conversion in the vertical direction is also called image line number conversion.
  • the configuration of the apparatus is the same in both the horizontal and vertical directions, but a line clock is used in sampling rate conversion.
  • the number of effective pixel lines is 1080
  • the number of invalid pixel lines is 45
  • a total of 1125 lines is included, so the frequency of the line clock is 67.5 kHz.
  • Line pixel input / output control and FIR coefficient selection are controlled by the Line frequency, and input pixels for a plurality of Lines are loaded into the memory for processing.
  • the same parameter is applied to all pixels on the same Line.
  • the FIR calculation is common to all 1920 pixels.
  • the sampling rate conversion calculation is performed at the same clock frequency as the horizontal calculation.
  • the input digital signal is transferred to the parallel read shift register and the parallel FIR operation is performed.
  • the vertical conversion a plurality of lines of a predetermined input digital signal are accessed in parallel, and the horizontal direction on each line is the same.
  • the output pixel is calculated with reference to the input pixel at the position.
  • FIG. FIG. 5 is a block diagram showing a sampling rate conversion apparatus according to Embodiment 2 of the present invention.
  • the apparatus according to this embodiment can be implemented when the output sampling rate is higher than the input sampling rate, and operates at the output sampling rate (output clock) of the output digital signal.
  • the FIFO memory 1 temporarily stores the input digital signal and then supplies it to the shift register 2 in synchronization with the output clock.
  • the parallel FIR calculator 3 converts the input digital signal supplied from the shift register 2 into an output digital signal and outputs it.
  • the position coordinate difference calculation unit 5 further includes a comparison subtracter 12.
  • E is a positive integer not less than M or not less than N
  • the comparison subtractor 12 supplies a load clock to the input integrator 6 and the output integrator 7 simultaneously when Sm ⁇ E and Sn ⁇ E, and the input integrator 6 and Sm-E and Sn-E are supplied to the load terminal of the output integrator 7, respectively.
  • the integrated value comparator 8 adds M to the input integrator 6 when Sn + N ⁇ Sm + M, and outputs Sn ⁇ Sm at that time as the position coordinate difference Dk.
  • M since M> N, the output integrator 7 always accumulates N.
  • the reset is performed with a cycle of the least common multiple of the input / output cycles M and N.
  • E may be greater than or equal to M or greater than or equal to N.
  • the number of bits can be further reduced as compared with the first embodiment. If E is smaller than M or N, even if E is subtracted from Sm and Sn, Sm and Sn are not reduced sufficiently, and Sm and Sn continue to increase, so the number of bits cannot be reduced sufficiently.
  • E is a power of 2 that is M or more or N or more. In this case, if it is detected that the bit indicating the value of E changes from 0 to 1, Sm ⁇ E and Sn ⁇ E can be easily determined.
  • the position coordinate difference between the input and output digital signals is an integer.
  • the position coordinate difference may be less than 1. Therefore, in this embodiment, considering the case where the position of the output digital signal is shifted by 0.5 from the position of the input digital signal, the accuracy of the input integrator 6 and the output integrator 7 is set to 0.5 instead of 1. .
  • the integration of M and N is the same as in the first embodiment, but the initial values of Sm and Sn are set to 0.5 units. That is, the accuracy of the input integrator 6 and the output integrator 7 is extended to the decimal part. Thereby, the position of the output digital signal can be arbitrarily shifted.
  • Such extension to the decimal part is necessary, for example, when the center position of the input / output image is set to the center position of the screen.
  • the type of position coordinate difference Dk used when selecting the FIR coefficient is not affected by the fraction (fractional part) of less than 1 of the initial value, so the number of FIR coefficient sets is the same as in the first embodiment.
  • the lower 4 bits of Table 3 indicate a part including a fractional part 1 bit, but the LSB (least significant bit) is always “1”. Therefore, the 3 bits excluding the actual LSB become meaningful data, thereby selecting a set of FIR coefficients.
  • FIG. FIG. 6 is a block diagram showing a sampling rate conversion apparatus according to Embodiment 3 of the present invention.
  • the apparatus of the present embodiment is a sampling rate converter mainly used for digital audio, and an input digital signal sampled at an input sampling rate of 48 kHz (a general frequency of commercial digital audio) is output samples. To an output digital signal sampled at a sampling rate of 44.1 kHz (audio CD).
  • the sampling rate conversion in this case is a one-dimensional sampling rate conversion on the time axis.
  • the devices of the first and second embodiments are mainly intended for image processing, and the sampling rate of the image (the frequency of the pixel sample string) is about several MHz to 150 MHz. Therefore, a product that refers to several tens of samples per pixel.
  • a parallel FIR calculator 3 is used to perform the sum operation. On the contrary, The audio sampling rate is as low as several tens of kHz, and even a frequency several hundred times as high as several tens of MHz. Therefore, in this embodiment, the serial FIR calculator 13 is used to reduce the circuit configuration such as a multiplier.
  • the apparatus operates at an input sampling rate (input clock 48 kHz) of an input digital signal.
  • the PLL 14 since the FIR order of audio (the number of input digital signals to be referred to) is high and the sampling rate is low, the PLL 14 generates a FIR operation clock 12.288 MHz that is 256 times the input clock.
  • the serial FIR calculator 13 operates with this FIR calculation clock and converts the input digital signal into an output digital signal. In the case of 256 times the clock, the order of FIR (the number of input digital signals to be referred to in the FIR calculation) is 255 at the maximum.
  • the FIFO memory 4 stores the output digital signal, and outputs it in synchronization with the output clock 44.1 kHz after an appropriate delay (for example, after about 100 input digital signals have elapsed after initialization).
  • X0 to X48 49 samples of the reference input digital signals X0 to X49 in the 50th-order FIR calculation are written in the RAM 15.
  • Initial reset is performed at time T0, and input / output integrated values Sm and Sn are reset to zero.
  • Input digital signals are written during the reset period, and a total of 50 input digital signals X0 to X49 are written in the RAM 15 after reset.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Television Systems (AREA)
  • Analogue/Digital Conversion (AREA)
  • Complex Calculations (AREA)

Abstract

According to the present invention, a positional coordinate difference calculator (5) calculates the positional coordinate difference between the positional coordinates of an output digital signal and the positional coordinates of an input digital signal proximal thereto. An FIR coefficient memory (9) stores the FIR coefficient of an FIR-LPF having the property of blocking frequency components of at least half the output sampling rate. When the positional coordinate difference is inputted, the FIR coefficient memory (9) outputs an FIR coefficient corresponding to the positional coordinate difference between the output digital signal and a set number of input digital signals present in the vicinity of the positional coordinates of the output digital signal. A parallel FIR computing unit (3) performs an FIR-LPF interpolation computation using the set number of input digital signals and the FIR coefficient, and thereby calculates the output digital signal.

Description

標本化レート変換装置Sampling rate converter
 本発明は、デジタル画像のサイズ変換装置やデジタルオーディオなどに用いられる標本化レート変換装置に関する。 The present invention relates to a sampling rate conversion device used for a digital image size conversion device, digital audio, or the like.
 入力標本化レートで標本化された入力デジタル信号を、出力標本化レートで標本化された出力デジタル信号に変換するために標本化レート変換装置が用いられる。従来の標本化レート変換装置は、まず入力標本化レートR1と出力標本化レートR2の比をR1:R2=A・M:A・N=M:N(ここで、Aは定数、MとNは互いに素な正整数)として、入力標本化レートR1を出力標本化レートR2との最小公倍数の標本化レートR3=R1・N=R2・Mに変換する(アップサンプル)。次に、この入力デジタル信号のN倍の標本値の並びから出力標本化レートR2に一致する標本を取り出す(ダウンサンプル)ことにより、出力デジタル信号を得る。 A sampling rate converter is used to convert an input digital signal sampled at the input sampling rate into an output digital signal sampled at the output sampling rate. In the conventional sampling rate conversion apparatus, first, the ratio of the input sampling rate R1 and the output sampling rate R2 is R1: R2 = A · M: A · N = M: N (where A is a constant, M and N Are converted to sampling rates R3 = R1 · N = R2 · M, which is the least common multiple of the output sampling rate R2 (upsample). Next, an output digital signal is obtained by taking out (down-sampling) a sample that matches the output sampling rate R2 from a sequence of N times the sample value of the input digital signal.
 図9は、従来の標本化レート変換方法を説明するための図である。図中の丸は標本化レートR3のデジタル信号を示す。そのうち、斜線が書き込まれた丸は入力標本化レートR1の入力デジタル信号、太線の丸は出力標本化レートR2の出力デジタル信号、細線の白丸は入出力デジタル信号以外を示す。 FIG. 9 is a diagram for explaining a conventional sampling rate conversion method. A circle in the figure indicates a digital signal having a sampling rate R3. Among them, a circle with hatched lines indicates an input digital signal at the input sampling rate R1, a bold circle indicates an output digital signal at the output sampling rate R2, and a thin white circle indicates other than the input / output digital signal.
 これらの標本化レートR3のデジタル信号は入力デジタル信号から算出される(アップサンプル)。その際に、出力標本化レートR2の1/2以上の周波数成分を遮断する特性を有するFIR-LPF(Finite Impulse Response Low Pass Filter)を用いた補間値算出が行われる。そして、標本化レートR3のデジタル信号の中から出力標本化レートR2の出力デジタル信号を取り出す(ダウンサンプル)。 These digital signals of sampling rate R3 are calculated from the input digital signal (upsampling). At that time, an interpolation value calculation is performed using an FIR-LPF (Finite Impulse Response Low Pass Filter) having a characteristic of blocking a frequency component that is 1/2 or more of the output sampling rate R2. Then, an output digital signal having an output sampling rate R2 is extracted from the digital signal having a sampling rate R3 (down sampling).
 ここで、標本化レートを小さくする場合をダウンサンプルと呼ぶ。ダウンサンプルの場合には、入力の高域成分を遮断して標本化レートの低下による折返しノイズを抑圧するためにFIR-LPFを用いる。一方、標本化レートを大きくする場合をアップサンプルと呼ぶ。アップサンプルの場合には入力の高域成分を遮断する必要はないが、入力デジタル信号とは異なる位置の補間値を算出するためにFIR-LPFを用いる。 Here, the case where the sampling rate is reduced is called down-sampling. In the case of down-sampling, FIR-LPF is used to block the high frequency component of the input and suppress aliasing noise due to a decrease in sampling rate. On the other hand, the case where the sampling rate is increased is called up-sampling. In the case of up-sampling, it is not necessary to block the high frequency component of the input, but FIR-LPF is used to calculate an interpolation value at a position different from the input digital signal.
 図10は、FIR-LPFのインパルス応答を示す図である。フィルタのインパルス応答は、所定のフィルタ特性を逆フーリエ変換した時間関数で表わされる。インパルス入力が時間0に入力された場合、インパルス応答波形は時間0の前後に存在する。補間値算出では、インパルス応答波形の存在範囲にある入力デジタル信号を用いて時間0の出力デジタル信号を算出する。一般的にはインパルス応答波形は長く続くが、実用的なものにするため、インパルス応答波形を一定程度の有限長に打切って信号処理を行う。 FIG. 10 is a diagram showing an impulse response of the FIR-LPF. The impulse response of the filter is expressed by a time function obtained by inverse Fourier transform of a predetermined filter characteristic. When the impulse input is input at time 0, the impulse response waveform exists before and after time 0. In the interpolation value calculation, an output digital signal at time 0 is calculated using an input digital signal in the existence range of the impulse response waveform. In general, the impulse response waveform continues for a long time, but in order to make it practical, the impulse response waveform is cut to a certain finite length to perform signal processing.
 なお、実際の装置ではインパルス応答の始まる時間(負の時間)を0又は正数にする。具体的には、インパルス応答の開始時間-Tを0に変換し、元の時間0をTにして標本化レート変換を行う。デジタル信号処理では、メモリ(シフトレジスタ)を用いれば、このような時間シフト処理が可能である。 In an actual device, the impulse response start time (negative time) is set to 0 or a positive number. Specifically, the impulse response start time -T is converted to 0, and the original time 0 is set to T to perform sampling rate conversion. In digital signal processing, such a time shift process can be performed by using a memory (shift register).
日本特開平8-84048号公報Japanese Unexamined Patent Publication No. 8-84048
 従来は、標本化レートR1,R2の両サンプルが存在する高い標本化レートR3で標本化したものを生成し、そこから標本化レートR2のサンプル列を取り出していた。例えば、R1=15MHz、R2=16MHzとすると、両サンプルが存在する標本化レートR3はR3=15×16MHz=240MHzとなる。このような非常に高い標本化レートR3を用いた装置は、安価な半導体技術での実現が困難であった。さらに、3つの標本化レートR1,R2,R3に対応した3つの動作クロック周波数が存在するデジタル回路の設計は複雑で困難である。また、任意の入出力標本化レート(即ち、MとNが任意)に対応できる汎用的な標本化レート変換装置が望まれている。 Conventionally, a sample sampled at a high sampling rate R3 in which both samples of the sampling rates R1 and R2 are present is generated, and a sample string at the sampling rate R2 is extracted therefrom. For example, if R1 = 15 MHz and R2 = 16 MHz, the sampling rate R3 in which both samples exist is R3 = 15 × 16 MHz = 240 MHz. An apparatus using such a very high sampling rate R3 has been difficult to realize with inexpensive semiconductor technology. Furthermore, the design of a digital circuit having three operation clock frequencies corresponding to the three sampling rates R1, R2, and R3 is complicated and difficult. In addition, a general-purpose sampling rate conversion apparatus that can cope with an arbitrary input / output sampling rate (that is, M and N are arbitrary) is desired.
 高い標本化レートR3の使用を避けるため、2つの標本化レートR1、R2で動作するFIR演算部を複数並列に実装することが提案されている(例えば、特許文献1参照)。しかし、FIR演算部を複数並列に実装すると、回路規模が非常に大きくなるという問題がある。 In order to avoid the use of a high sampling rate R3, it has been proposed to mount a plurality of FIR operation units operating at two sampling rates R1 and R2 in parallel (see, for example, Patent Document 1). However, when a plurality of FIR operation units are mounted in parallel, there is a problem that the circuit scale becomes very large.
 本発明は、上述のような課題を解決するためになされたもので、その目的は回路規模が小さく安価で汎用的な標本化レート変換装置を得るものである。 The present invention has been made to solve the above-described problems, and an object of the present invention is to obtain an inexpensive and general-purpose sampling rate conversion apparatus with a small circuit scale.
 本発明に係る標本化レート変換装置は、入力標本化レートで標本化された入力デジタル信号を、出力標本化レートで標本化された出力デジタル信号に変換する標本化レート変換装置であって、出力デジタル信号Ykの位置座標Tkに近接する入力デジタル信号の位置座標と位置座標Tkとの位置座標差Dkを算出する位置座標差算出部と、前記出力標本化レートの1/2以上の周波数成分を遮断する特性を有するFIR-LPF(Finite Impulse Response Low Pass Filter)に入力されるインパルス入力の位置座標をz=0とした場合における前記FIR-LPFのFIR係数F(z)を保存し、前記位置座標差Dkが入力されると、前記出力デジタル信号Ykの位置座標Tkの周辺近傍に存在する一定個数(p個)の入力デジタル信号Xk(q)の位置座標をZk(q)、(q=1,2,・・・,p)として位置座標差(Zk(q)-Tk)に対応するFIR係数F(Zk(q)-Tk)を出力するFIR係数メモリと、Yk=F(Zk(1)-Tk)*Xk(1)+F(Zk(2)-Tk)*Xk(2)+…+F(Zk(p)-Tk)*Xk(p)を演算して前記出力デジタル信号Ykを求めるFIR演算器とを備えることを特徴とする。 A sampling rate conversion apparatus according to the present invention is a sampling rate conversion apparatus that converts an input digital signal sampled at an input sampling rate into an output digital signal sampled at an output sampling rate. A position coordinate difference calculation unit for calculating a position coordinate difference Dk between the position coordinate of the input digital signal close to the position coordinate Tk of the digital signal Yk and the position coordinate Tk; and a frequency component of 1/2 or more of the output sampling rate. Stores the FIR coefficient F (z) of the FIR-LPF when the position coordinate of the impulse input inputted to the FIR-LPF (Finite Impulse Response Low Pass Filter) having the cutoff characteristic is set to z = 0. When the coordinate difference Dk is input, a certain number (p) of input digital signals Xk (q) existing in the vicinity of the position coordinate Tk of the output digital signal Yk. The position coordinates are Zk (q), (q = 1, 2,..., P), and the FIR coefficient F (Zk (q) −Tk) corresponding to the position coordinate difference (Zk (q) −Tk) is output. FIR coefficient memory, Yk = F (Zk (1) −Tk) * Xk (1) + F (Zk (2) −Tk) * Xk (2) +... + F (Zk (p) −Tk) * Xk (p ) To obtain the output digital signal Yk.
 本発明により、回路規模が小さく安価で汎用的な標本化レート変換装置を得ることができる。 According to the present invention, it is possible to obtain an inexpensive and general-purpose sampling rate conversion apparatus with a small circuit scale.
本発明の実施の形態1に係る標本化レート変換装置を示すブロック図である。It is a block diagram which shows the sampling rate conversion apparatus which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係る並列FIR演算器を示すブロック図である。It is a block diagram which shows the parallel FIR calculator which concerns on Embodiment 1 of this invention. FIR-LPF補間演算の原理を簡単に説明するための図である。It is a figure for demonstrating briefly the principle of FIR-LPF interpolation calculation. 入力デジタル信号と出力デジタル信号の位置関係を示す図である。It is a figure which shows the positional relationship of an input digital signal and an output digital signal. 本発明の実施の形態2に係る標本化レート変換装置を示すブロック図である。It is a block diagram which shows the sampling rate conversion apparatus which concerns on Embodiment 2 of this invention. 本発明の実施の形態3に係る標本化レート変換装置を示すブロック図である。It is a block diagram which shows the sampling rate converter which concerns on Embodiment 3 of this invention. 本発明の実施の形態3に係る直列FIR演算器を示すブロック図である。It is a block diagram which shows the serial FIR calculator which concerns on Embodiment 3 of this invention. 本発明の実施の形態3に係る直列FIR演算器の動作を示すタイミングチャートである。It is a timing chart which shows operation | movement of the serial FIR calculator which concerns on Embodiment 3 of this invention. 従来の標本化レート変換方法を説明するための図である。It is a figure for demonstrating the conventional sampling rate conversion method. FIR-LPFのインパルス応答を示す図である。It is a figure which shows the impulse response of FIR-LPF.
 本発明の実施の形態に係る標本化レート変換装置について図面を参照して説明する。同じ又は対応する構成要素には同じ符号を付し、説明の繰り返しを省略する場合がある。 A sampling rate conversion apparatus according to an embodiment of the present invention will be described with reference to the drawings. The same or corresponding components are denoted by the same reference numerals, and repeated description may be omitted.
実施の形態1.
 図1は、本発明の実施の形態1に係る標本化レート変換装置を示すブロック図である。この装置は、入力標本化レートで標本化された入力デジタル信号を、出力標本化レートで標本化された出力デジタル信号に変換する。また、本実施の形態では画像の標本化レート変換を目的としており、幾何学的に画面上の所定領域のサンプル数を変換する。従って、この場合の標本化レート変換は2次元空間座標における水平と垂直の両座標軸に対する2つの標本化レート変換を意味する。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a sampling rate conversion apparatus according to Embodiment 1 of the present invention. The apparatus converts an input digital signal sampled at an input sampling rate into an output digital signal sampled at an output sampling rate. Further, the present embodiment aims to convert the sampling rate of the image, and geometrically converts the number of samples in a predetermined area on the screen. Therefore, the sampling rate conversion in this case means two sampling rate conversions for both the horizontal and vertical coordinate axes in the two-dimensional space coordinates.
 本実施の形態の装置は、入出力標本化レートよりも高い周波数の処理クロックで動作する。なお、HD60P画像(1920x1080x60/sec)の場合には、実際のクロック周波数は148.5MHz程度となる。FIFOメモリ1が入力デジタル信号を一旦保存した後に、処理クロックに同期してシフトレジスタ2に供給する。並列FIR演算器3が、シフトレジスタ2から供給された入力デジタル信号を出力デジタル信号に変換する。FIFOメモリ4が、出力デジタル信号を一旦保存した後に、出力クロックに同期して出力する。 The apparatus of this embodiment operates with a processing clock having a frequency higher than the input / output sampling rate. Note that in the case of an HD60P image (1920 × 1080 × 60 / sec), the actual clock frequency is about 148.5 MHz. The FIFO memory 1 temporarily stores the input digital signal and then supplies it to the shift register 2 in synchronization with the processing clock. The parallel FIR calculator 3 converts the input digital signal supplied from the shift register 2 into an output digital signal. The FIFO memory 4 temporarily stores the output digital signal and then outputs it in synchronization with the output clock.
 位置座標差算出部5は、処理クロックに同期して、k番目の出力デジタル信号Ykの位置座標Tkに近接する入力デジタル信号の位置座標と位置座標Tkとの位置座標差Dkを算出する。ここで、「位置座標Tkに近接する入力デジタル信号」とは、(1)位置座標Tkとの位置座標差が0又は正数で最も近い入力デジタル信号、(2)位置座標Tkとの位置座標差が0又は負数で最も近い入力デジタル信号、(3)位置座標Tkとの位置座標差を絶対値評価して最も近い入力デジタル信号の何れかである。何れの基準を採用するかによって、対象となる入力デジタル信号が1入力サンプル周期ずれる場合がある。具体的には、位置座標差算出部5は、入力積算器6と、出力積算器7と、それらを制御する積算値比較器8とを有する。Cを定数、MとNを互いに素な正整数として、入力デジタル信号の標本化周期をC・Mとし、出力デジタル信号の標本化周期をC・Nとする。入力積算器6はMを積算して積算値Smを出力する。出力積算器7はNを積算して積算値Snを出力する。積算値比較器8は、Sm-Sn≦Nの場合に入力積算器6にMを積算させ、Sn-Sm≦Mの場合に出力積算器7にNを積算させ、出力積算器7にNを積算させた際のSn-Smを位置座標差Dkとして出力する。 The position coordinate difference calculation unit 5 calculates a position coordinate difference Dk between the position coordinate of the input digital signal close to the position coordinate Tk of the kth output digital signal Yk and the position coordinate Tk in synchronization with the processing clock. Here, “an input digital signal close to the position coordinate Tk” means (1) an input digital signal whose position coordinate difference from the position coordinate Tk is 0 or the closest positive number, and (2) a position coordinate with the position coordinate Tk. The closest input digital signal with a difference of 0 or a negative number, or (3) the closest input digital signal obtained by evaluating the absolute value of the position coordinate difference from the position coordinate Tk. Depending on which criterion is adopted, the target input digital signal may be shifted by one input sample period. Specifically, the position coordinate difference calculation unit 5 includes an input integrator 6, an output integrator 7, and an integrated value comparator 8 that controls them. Let C be a constant, M and N be mutually prime positive integers, the sampling period of the input digital signal be C · M, and the sampling period of the output digital signal be C · N. The input integrator 6 integrates M and outputs an integrated value Sm. The output integrator 7 integrates N and outputs an integrated value Sn. The integrated value comparator 8 integrates M in the input integrator 6 when Sm−Sn ≦ N, integrates N into the output integrator 7 when Sn−Sm ≦ M, and sets N into the output integrator 7. Sn-Sm at the time of integration is output as the position coordinate difference Dk.
 本実施の形態では入力周期M=3、出力周期N=8とする。このMとNの値は、HD画像(1920x1088)をSD画像(720x480)に変換する場合の水平方向の標本化レート変換処理に用いられる。垂直方向の場合はM=4、N=9となる。 In this embodiment, it is assumed that the input cycle M = 3 and the output cycle N = 8. The values of M and N are used for sampling rate conversion processing in the horizontal direction when converting an HD image (1920 × 1088) into an SD image (720 × 480). In the case of the vertical direction, M = 4 and N = 9.
 FIR係数メモリ9は、出力標本化レートの1/2以上の周波数成分を遮断する特性を有するFIR-LPF(Finite Impulse Response Low Pass Filter)に入力されるインパルス入力の位置座標をz=0とした場合におけるFIR-LPFのFIR係数F(z)を保存しているRAM(Random Access Memory)又はROM(Read Only Memory)である。そして、位置座標差算出部5から位置座標差Dk=Sn-Smが入力されると、FIR係数メモリ9は、出力デジタル信号Ykの位置座標Tkの周辺近傍に存在する一定個数(p個)の入力デジタル信号Xk(q)の位置座標をZk(q)、(q=1,2,・・・,p)として位置座標差(Zk(q)-Tk)に対応するFIR係数F(Zk(q)-Tk)を出力する。 The FIR coefficient memory 9 sets z = 0 as the position coordinate of the impulse input inputted to the FIR-LPF (Finite Impulse Response Low Pass Filter) having a characteristic of cutting off frequency components of 1/2 or more of the output sampling rate. The RAM (Random Access Memory) or ROM (Read Only Memory) storing the FIR coefficient F (z) of the FIR-LPF in this case. When the position coordinate difference Dk = Sn−Sm is input from the position coordinate difference calculation unit 5, the FIR coefficient memory 9 stores a certain number (p) of the output digital signal Yk that exists in the vicinity of the position coordinate Tk. Assuming that the position coordinates of the input digital signal Xk (q) are Zk (q), (q = 1, 2,..., P), the FIR coefficient F (Zk ( q) -Tk) is output.
 このためにFIR係数メモリ9は位置座標差Dkの種類ごとにFIR係数のセットを保存しており、入力した位置座標差Dkに応じてFIR係数のセットを選択して出力する。入力周期Mと出力周期Nの最小公倍数M・Nの期間に出力周期NはM個あるため、位置座標差DkはM種類あり、FIR係数のセットはM組必要となる。 For this purpose, the FIR coefficient memory 9 stores a set of FIR coefficients for each type of position coordinate difference Dk, and selects and outputs a set of FIR coefficients according to the input position coordinate difference Dk. Since there are M output cycles N in the period of the least common multiple M · N of the input cycle M and the output cycle N, there are M types of position coordinate differences Dk, and M sets of FIR coefficients are required.
 並列FIR演算器3は、シフトレジスタ2から入力デジタル信号を供給され、FIR係数メモリ9からFIR係数を供給されると、Yk=F(Zk(1)-Tk)*Xk(1)+F(Zk(2)-Tk)*Xk(2)+…+F(Zk(p)-Tk)*Xk(p)を演算して出力デジタル信号Ykを求める(FIR-LPF補間演算)。 When the parallel FIR calculator 3 is supplied with the input digital signal from the shift register 2 and is supplied with the FIR coefficient from the FIR coefficient memory 9, Yk = F (Zk (1) −Tk) * Xk (1) + F (Zk (2) −Tk) * Xk (2) +... + F (Zk (p) −Tk) * Xk (p) is calculated to obtain the output digital signal Yk (FIR-LPF interpolation calculation).
 図2は、本発明の実施の形態1に係る並列FIR演算器を示すブロック図である。このFIR演算器は、8個の入力デジタル信号を用いて並列積和演算を行って1個の出力デジタル信号を求める8-Tap並列FIR演算器である。 FIG. 2 is a block diagram showing the parallel FIR computing unit according to Embodiment 1 of the present invention. This FIR computing unit is an 8-Tap parallel FIR computing unit that performs a parallel product-sum operation using eight input digital signals to obtain one output digital signal.
 処理クロックに同期して入力積算器6がMを積算するごとに、1サンプルの入力デジタル信号がシフトレジスタR0~R7に順に入力される。演算に必要な所定の入力デジタル信号がシフトレジスタR0~R7に入力されると、それらの入力デジタル信号がシフトレジスタR0~R7から乗算器A0~Anに並列出力され、それらに対応したFIR係数がFIR係数メモリ9から乗算器A0~A7に並列出力され、乗算器A0~Anで乗算が行われる。乗算器A0~A7の出力が積和回路10で加算されて出力デジタル信号が算出される。 Each time the input accumulator 6 accumulates M in synchronization with the processing clock, one sample of the input digital signal is sequentially input to the shift registers R0 to R7. When predetermined input digital signals necessary for the operation are input to the shift registers R0 to R7, the input digital signals are output in parallel from the shift registers R0 to R7 to the multipliers A0 to An, and the corresponding FIR coefficients are obtained. The data is output in parallel from the FIR coefficient memory 9 to the multipliers A0 to A7, and multiplication is performed by the multipliers A0 to An. The outputs of the multipliers A0 to A7 are added by the product-sum circuit 10 to calculate an output digital signal.
 図3は、FIR-LPF補間演算の原理を簡単に説明するための図である。図中で、斜線が書き込まれた丸は入力デジタル信号、白丸は出力デジタル信号を示す。入力周期Mが4、出力周期Nが5である。入力デジタル信号には存在しない位置Tkに存在する出力デジタル信号Ykを、その周辺の入力デジタル信号Xk(q)から補間算出する。一般的に周辺の入力デジタル信号Xk(q)の影響度は出力デジタル信号Ykから離れるに従って少なくなるため、FIR係数F(Zk(q)-Tk)が用いられている。画像信号の場合には、出力デジタル信号Ykの周辺の入力デジタル信号を30個程度(前後15個づつ)用いる。オーディオの場合は高精度が求められ、周辺の入力デジタル信号を50~100個程度用いる。用いる入力デジタル信号が多いほど補間演算の精度が向上する。 FIG. 3 is a diagram for briefly explaining the principle of FIR-LPF interpolation calculation. In the figure, circles with hatched lines indicate input digital signals, and white circles indicate output digital signals. The input period M is 4 and the output period N is 5. An output digital signal Yk present at a position Tk that does not exist in the input digital signal is interpolated and calculated from the surrounding input digital signal Xk (q). In general, since the influence of the peripheral input digital signal Xk (q) decreases as the distance from the output digital signal Yk increases, the FIR coefficient F (Zk (q) −Tk) is used. In the case of an image signal, about 30 input digital signals around the output digital signal Yk (15 before and after) are used. In the case of audio, high accuracy is required, and about 50 to 100 peripheral input digital signals are used. The more input digital signals are used, the better the accuracy of the interpolation calculation.
 図4は、入力デジタル信号と出力デジタル信号の位置関係を示す図である。図中の波形はFIRフィルタのインパルス応答波形である。その波形の中心を各出力デジタル信号の位置Ykに設定し、その周辺の8個の入力デジタル信号を用いたFIR-LPF補間演算により出力デジタル信号を算出する。8個の入力デジタル信号をX0~X7とし、各入力デジタル信号の位置でのインパルス応答波形の振幅をF0~F7とすると、出力デジタル信号YはY=ΣXj・Fj、(j=0~7)により算出される。入出力周期比M:Nの場合は出力デジタル信号に対する入力デジタル信号の位置関係はM種類の繰返しとなる。図4では入出力周期比M:N=3:8であるため、位置関係は3種類の繰返しとなる。 FIG. 4 is a diagram showing the positional relationship between the input digital signal and the output digital signal. The waveform in the figure is an impulse response waveform of the FIR filter. The center of the waveform is set to the position Yk of each output digital signal, and the output digital signal is calculated by FIR-LPF interpolation calculation using the eight input digital signals around it. When the eight input digital signals are X0 to X7 and the amplitude of the impulse response waveform at the position of each input digital signal is F0 to F7, the output digital signal Y is Y = ΣXj · Fj, (j = 0 to 7) Is calculated by When the input / output cycle ratio M is N, the positional relationship of the input digital signal with respect to the output digital signal is M types of repetition. In FIG. 4, since the input / output cycle ratio M: N = 3: 8, the positional relationship is three types of repetition.
 ところで、FIRフィルタとして、インパルス応答波形がインパルス入力位置を中心に対称となっているものを用いる。これは群遅延特性(各周波数毎の遅延の変化)をフラット(均一)として、波形歪を無くすためである。また、対称なインパルス応答波形を用いれば、中心に対する対称位置でFIR係数が同じ値となるため、FIR係数の個数を半減できる。例えば、対称な位置関係である位置座標差Dkが1の場合と位置座標差Dkが(M-1)の場合では、FIR係数は同じ数値を並べ替えたものとなる。位置座標差Dkが0の場合はそのFIR係数自身が対称となっている。 Incidentally, an FIR filter having an impulse response waveform that is symmetric about the impulse input position is used. This is to eliminate the waveform distortion by setting the group delay characteristic (change in delay for each frequency) to be flat (uniform). If a symmetric impulse response waveform is used, the FIR coefficient becomes the same value at a symmetrical position with respect to the center, so that the number of FIR coefficients can be halved. For example, when the position coordinate difference Dk, which is a symmetric positional relationship, is 1, and when the position coordinate difference Dk is (M−1), the FIR coefficients are the same numerical values. When the position coordinate difference Dk is 0, the FIR coefficient itself is symmetric.
 Sm、Snが大きくなると、位置座標差算出部5内のSm、Snを保持するレジスタ、加減算器、大小判定器などのビット数が大きくなる。これを防ぐために、初期値検出リセット部11は、SmとSnの差が初期値に一致した場合にSmとSnを初期値にリセットする。なお、外部からリセット信号が入力された場合にもSmとSnは初期値にリセットされる。 When Sm and Sn are increased, the number of bits in the position coordinate difference calculation unit 5 such as a register that holds Sm and Sn, an adder / subtractor, and a size determination unit is increased. In order to prevent this, the initial value detection reset unit 11 resets Sm and Sn to the initial values when the difference between Sm and Sn matches the initial value. Note that Sm and Sn are also reset to initial values when a reset signal is input from the outside.
 初期値検出リセット部11を動作させなかった場合の積算値Sm、Snの推移を表1に示す。
Figure JPOXMLDOC01-appb-T000001
Table 1 shows the transition of the integrated values Sm and Sn when the initial value detection reset unit 11 is not operated.
Figure JPOXMLDOC01-appb-T000001
 SmとSnの初期値は略一致する値にセットされ、ここでは初期値はSm=0、Sn=2である。従って、Sm-Sn≦N、Sn-Sm≦Mに該当するため、次のクロックで入力積算器6がMを積算し、出力積算器7がNを積算する。Modulo(Sn-Sm,M)はSn-SmをMで除算した余り(0~M-1)である。 The initial values of Sm and Sn are set to substantially coincide with each other. Here, the initial values are Sm = 0 and Sn = 2. Therefore, since it corresponds to Sm−Sn ≦ N and Sn−Sm ≦ M, the input accumulator 6 accumulates M and the output integrator 7 accumulates N at the next clock. Modulo (Sn-Sm, M) is a remainder (0 to M-1) obtained by dividing Sn-Sm by M.
 1回目のクロックでSmにM=3が積算され、SnにN=8が積算されて、Sm=3、Sn=10となる。SmにMを加算するのと同時に入力デジタル信号を転送シフトし、SnにNを加算するのと同時に出力デジタル信号を算出する。この際の位置座標差Dkに対応するSn-Sm=7はModulo(Sn-Sm,M)では1となる。M≦2の場合にModulo(Sn-Sm,M)はSn-Smの下位Bビットで区別可能である。ここではM<2であるためModulo(7,3)は2ビット表現可能であり、Sn-Sm=7の下位2ビット数値は3である。そこで、位置座標差Dk=Sn-SmがModuloで1の場合のFIR係数のセットをFIR係数メモリ9のアドレス3に記憶させればよい。これにより、Sn-Smの値をModulo演算で狭い数値範囲にすることができ、Mの値を表現するビット数をModulo演算後の数値に対応させることができる。 In the first clock, M = 3 is accumulated in Sm, N = 8 is accumulated in Sn, and Sm = 3 and Sn = 10. The input digital signal is transferred and shifted simultaneously with adding M to Sm, and the output digital signal is calculated simultaneously with adding N to Sn. At this time, Sn−Sm = 7 corresponding to the position coordinate difference Dk is 1 in Modulo (Sn−Sm, M). Modulo the case of M ≦ 2 B (Sn-Sm , M) are distinguishable by the lower B bits Sn-Sm. Here Modulo for an M <2 2 is (7,3) can be 2-bit representation, the lower 2-bit number Sn-Sm = 7 is three. Therefore, the set of FIR coefficients when the position coordinate difference Dk = Sn−Sm is 1 in Modulo may be stored in the address 3 of the FIR coefficient memory 9. Thereby, the value of Sn-Sm can be made a narrow numerical range by modulo calculation, and the number of bits expressing the value of M can be made to correspond to the numerical value after the modulo calculation.
 2,3回目のクロックではMの積算を行うので入力デジタル信号を転送シフトするが、Nの積算はないので出力デジタル信号は算出しない。なお、M<Nのため、各クロックで常にMの積算を行う。 * The second and third clocks integrate M, so the input digital signal is transferred and shifted, but there is no N accumulation, so the output digital signal is not calculated. Since M <N, M is always accumulated at each clock.
 4回目のクロック時にNの積算があるため、出力デジタル信号を算出する。この際にSn-Sm=6はModulo(Sn-Sm,M)では0となる。Sn-Sm=6の下位2ビット数値は2である。そこで、位置座標差Dk=Sn-SmがModuloで0の場合のFIR係数のセットをFIR係数メモリ9のアドレス2に記憶させればよい。 ∙ Since there is an integration of N during the fourth clock, calculate the output digital signal. At this time, Sn-Sm = 6 becomes 0 in Modulo (Sn-Sm, M). The lower 2-bit value of Sn−Sm = 6 is 2. Therefore, the set of FIR coefficients when the position coordinate difference Dk = Sn−Sm is 0 in Modulo may be stored in the address 2 of the FIR coefficient memory 9.
 5回目のクロックでは入力デジタル信号を転送シフトするが、出力デジタル信号は算出しない。6回目のクロック時に出力デジタル信号を算出する。この際にSn-Sm=8はModulo(Sn-Sm,M)では2となる。Sn-Sm=8の下位2ビット数値は0である。そこで、位置座標差Dk=Sn-SmがModuloで2の場合のFIR係数のセットをFIR係数メモリ9のアドレス0に記憶させればよい。 ∙ Transfer shift of input digital signal at 5th clock, but do not calculate output digital signal. The output digital signal is calculated at the sixth clock. At this time, Sn-Sm = 8 becomes 2 in Modulo (Sn-Sm, M). The numerical value of the lower 2 bits of Sn−Sm = 8 is 0. Therefore, the set of FIR coefficients when the position coordinate difference Dk = Sn−Sm is 2 in Modulo may be stored at address 0 of the FIR coefficient memory 9.
 7,8回目のクロックでは入力デジタル信号を転送シフトするが、出力デジタル信号は算出しない。9回目のクロック時に出力デジタル信号を算出する。この際にSn-Sm=7となり、1回目のクロック時と同様に動作する。以後は上記動作の繰返しとなる。 ∙ Transfers the input digital signal at the seventh and eighth clocks, but does not calculate the output digital signal. The output digital signal is calculated at the ninth clock. At this time, Sn−Sm = 7, and the operation is the same as in the first clock. Thereafter, the above operation is repeated.
 Sn-Smは入出力デジタル信号の位置の差を示す。SmとSnの積算条件や初期値の設定により、何クロック目で出力デジタル信号を算出するか、入出力デジタル信号の位置座標差を設定できる。上記例では出力サンプル算出時の位置座標差Sn-Smは6~8であるが、入力デジタル信号を2サンプル分シフト(2xM=6)するとSn-Smは0~2となる。このシフトは回路構成で行うことができる。または、FIR-LPFの係数値を2サンプルシフトした値にしてもよい。または、初期値をSm=3、Sn=0とすれば、Sn-Smは0~2の範囲の数値となるため、Sn-Sm自体をFIR係数メモリ9のアドレスとして用いることができる。 Sn-Sm indicates the difference in the position of the input / output digital signal. By setting the integration conditions and initial values of Sm and Sn, it is possible to set the position coordinate difference between the input and output digital signals as to how many clocks the output digital signal is calculated. In the above example, the position coordinate difference Sn-Sm at the time of output sample calculation is 6-8, but if the input digital signal is shifted by 2 samples (2 × M = 6), Sn-Sm will be 0-2. This shift can be performed by a circuit configuration. Alternatively, the FIR-LPF coefficient value may be shifted by two samples. Alternatively, if the initial values are Sm = 3 and Sn = 0, Sn−Sm becomes a numerical value in the range of 0 to 2, and therefore Sn−Sm itself can be used as the address of the FIR coefficient memory 9.
 上記のようにMとNの値に応じて周期的に同じ動作の繰返しとなることを利用して、初期値検出リセット部11は可能なタイミングでSmとSnを初期値にリセット(再初期化)する。これによりハードウエア規模を縮減することができる。初期値検出リセット部11を動作させた場合の積算値Sm、Snの推移を表2に示す。
Figure JPOXMLDOC01-appb-T000002
Using the fact that the same operation is periodically repeated according to the values of M and N as described above, the initial value detection reset unit 11 resets Sm and Sn to the initial values (reinitialization) at a possible timing. ) As a result, the hardware scale can be reduced. Table 2 shows the transition of the integrated values Sm and Sn when the initial value detection reset unit 11 is operated.
Figure JPOXMLDOC01-appb-T000002
 初期化動作から7回目のクロックまでの動作は表1と同じである。8回目のクロック時にSn-Smが初期値2に一致するため、初期値検出リセット部11はSmとSnを初期値Sm=0、Sn=2にリセットする。なお、クロック同期動作システムの場合、Sn-Sm=2となる1クロック前のSn-Sm=5を検出して、次のクロックで同期再リセット(同期再初期化)をしてもよい。 The operation from the initialization operation to the seventh clock is the same as Table 1. Since Sn−Sm coincides with the initial value 2 at the eighth clock, the initial value detection reset unit 11 resets Sm and Sn to the initial values Sm = 0 and Sn = 2. In the case of a clock synchronous operation system, Sn-Sm = 5 one clock before when Sn-Sm = 2 is detected, and synchronous re-reset (synchronization re-initialization) may be performed at the next clock.
 9回目から15回目のクロックまでの動作は1回目から7回目のクロックまでの動作と全く同じである。16回目のクロック時に再びリセットする。17回目から23回目のクロックまでの動作は1回目から7回目のクロックまでの動作と全く同じである。以後は上記動作の繰返しとなる。 The operation from the 9th to the 15th clock is exactly the same as the operation from the 1st to the 7th clock. Reset again at the 16th clock. The operation from the 17th clock to the 23rd clock is exactly the same as the operation from the 1st clock to the 7th clock. Thereafter, the above operation is repeated.
 例えば、HD画像をSD画像に変換する場合に水平方向の周期比はM:N=3:8となり、Sm、Snの値の範囲は約0~1920x3=0~720x8=0~5760になる。このため、上記のリセット制御を行わない場合には13ビットのレジスタ、加減算器、大小判定器などが必要になる。一方、上記のリセット制御を行う場合には積算値Sm、Snの最大値が26となるため、レジスタ、加減算器、大小判定器などを5ビットで構成できる。 For example, when converting an HD image into an SD image, the horizontal period ratio is M: N = 3: 8, and the range of values of Sm and Sn is about 0 to 1920 × 3 = 0 to 720 × 8 = 0 to 5760. For this reason, a 13-bit register, an adder / subtracter, a magnitude determination device, and the like are required when the above reset control is not performed. On the other hand, when the above reset control is performed, the maximum value of the integrated values Sm and Sn is 26. Therefore, a register, an adder / subtracter, a magnitude determination device, and the like can be configured with 5 bits.
 以上説明した通り、本実施の形態では、出力デジタル信号の位置座標に近接する入力デジタル信号の位置座標を特定する。この位置座標と入力標本化レートにより、FIR-LPFで用いるべき一定個数の入力デジタル信号の位置座標を求めることができる。それらの入力デジタル信号に適用するFIR係数をメモリから読み出して、FIR-LPF補間演算を行うことにより出力デジタル信号を算出することができる。 As described above, in the present embodiment, the position coordinates of the input digital signal close to the position coordinates of the output digital signal are specified. Based on the position coordinates and the input sampling rate, the position coordinates of a certain number of input digital signals to be used in the FIR-LPF can be obtained. An output digital signal can be calculated by reading out FIR coefficients to be applied to those input digital signals from the memory and performing FIR-LPF interpolation calculation.
 このような処理を行うため、本実施の形態では原理的に入出力標本化レートとは無関係な任意のクロック周波数で動作できる。従って、任意の入出力標本化レート(即ち、MとNが任意)に対応できるため汎用的である。また、従来は入力標本化レートと出力標本化レートの最小公倍数の標本化レートを使用していたが、本実施の形態ではそのような高い標本化レートの使用を避けることができる。ただし、動作の遅延を防ぐためには、入力標本化レートと出力標本化レートの高い方のクロック周波数、又はどちらよりも高い1種類のクロック周波数を用いる必要がある。 In order to perform such processing, the present embodiment can operate at an arbitrary clock frequency that is not related to the input / output sampling rate in principle. Therefore, it is general purpose because it can cope with an arbitrary input / output sampling rate (that is, M and N are arbitrary). Conventionally, the sampling rate of the least common multiple of the input sampling rate and the output sampling rate has been used, but in the present embodiment, the use of such a high sampling rate can be avoided. However, in order to prevent a delay in operation, it is necessary to use the clock frequency of the higher one of the input sampling rate and the output sampling rate, or one type of clock frequency higher than both.
 また、従来の装置は3つのクロック周波数で動作していたが、本実施の形態の装置は1つのクロック周波数で動作できる。このため、本実施の形態に係る標本化レート変換装置は安価な半導体技術で実現することができる。 In addition, the conventional apparatus operates at three clock frequencies, but the apparatus of the present embodiment can operate at one clock frequency. For this reason, the sampling rate conversion apparatus according to the present embodiment can be realized by an inexpensive semiconductor technology.
 また、従来技術として、高い標本化レートの使用を避けるため、FIR演算部を複数並列に実装したものが提案されていたが、回路規模が非常に大きくなるという問題があった。これに対して、本実施の形態ではそのような構成は必要ないため、回路規模を小さくすることができる。 Also, as a prior art, in order to avoid the use of a high sampling rate, one in which a plurality of FIR operation units are mounted in parallel has been proposed, but there is a problem that the circuit scale becomes very large. On the other hand, in this embodiment, since such a configuration is not necessary, the circuit scale can be reduced.
 また、本実施の形態では、SmとSnの大小関係を判定してSmとSnが略一致した状態を持続するようにSmにMを積算し、SnにNを積算して入出力デジタル信号の位置関係を算出する。これにより、出力デジタル信号の位置座標に近接する入力デジタル信号の位置座標を簡単に特定することができる。 Further, in the present embodiment, the magnitude relationship between Sm and Sn is determined, M is added to Sm so as to maintain a state where Sm and Sn substantially match, N is added to Sn, and the input / output digital signal is Calculate the positional relationship. Thereby, the position coordinate of the input digital signal close to the position coordinate of the output digital signal can be easily specified.
 また、初期値検出リセット部11によるリセット制御により、レジスタ、加減算器、大小判定器などのビット数を低減することができる。 In addition, the reset control by the initial value detection reset unit 11 can reduce the number of bits of the register, the adder / subtracter, the size determination unit, and the like.
 なお、画像端部にはFIR演算を行うための入力デジタル信号の無い領域がある。この場合には、画像端部の画素をコピーして画像の外側(右端の右側、左端の左側、上端の上側、下端の下側)に画像を拡張してFIR演算を行う。例えば、8-Tap FIR演算の場合、画像端部にTap数/2=4サンプルの画素をコピーして拡張する。従って、図4においてX1~X4は実際にはX5のコピーである。また、並列FIR演算器3がA-Tapフィルタ(A個の積和)である場合、最初にシフトレジスタ2にA個の入力デジタル信号を転送した後に、出力デジタル信号の算出を始める。このA個の入力デジタル信号のうち半分は画像端部のサンプルのコピーである。 It should be noted that there is a region where there is no input digital signal for performing FIR calculation at the edge of the image. In this case, the pixels at the edge of the image are copied and the image is expanded to the outside of the image (the right side at the right end, the left side at the left end, the upper side at the upper end, the lower side at the lower end), and the FIR calculation is performed. For example, in the case of an 8-Tap FIR calculation, the number of Taps / 2 = 4 samples of pixels is copied and expanded at the edge of the image. Therefore, in FIG. 4, X1 to X4 are actually copies of X5. When the parallel FIR computing unit 3 is an A-Tap filter (A product-sum), the calculation of the output digital signal is started after A input digital signals are first transferred to the shift register 2. Half of the A input digital signals are copies of samples at the edge of the image.
 また、本実施の形態では、Sm-Sn≦Nの場合に入力積算器6がSmにMを積算し、Sn-Sm≦Mの場合に出力積算器7がSnにNを積算する。この場合、SnとSmの差は0~N-1の範囲となる。別の積算制御方法として、M<Nの場合に入力積算器6が常にMを積算し、Nが偶数ならばSm+N/2≧Sn>Sm-N/2、Nが奇数ならばSm+(N-1)/2≧Sn>Sm-(N+1)/2の場合に出力積算器7がSnにNを積算するようにしてもよい。この場合、SnとSmの差は-N/2~N/2又は-(N+1)/2~(N-1)/2の範囲となる。これにより、入出力デジタル信号の位置を示す積算値SmとSnの差の絶対値を少なくすることができる。 In this embodiment, the input integrator 6 adds M to Sm when Sm−Sn ≦ N, and the output integrator 7 adds N to Sn when Sn−Sm ≦ M. In this case, the difference between Sn and Sm is in the range of 0 to N-1. As another integration control method, the input integrator 6 always integrates M when M <N. If N is an even number, Sm + N / 2 ≧ Sn> Sm−N / 2, and if N is an odd number, Sm + (N− 1) The output integrator 7 may add N to Sn when / 2 ≧ Sn> Sm− (N + 1) / 2. In this case, the difference between Sn and Sm is in the range of −N / 2 to N / 2 or − (N + 1) / 2 to (N−1) / 2. Thereby, the absolute value of the difference between the integrated values Sm and Sn indicating the position of the input / output digital signal can be reduced.
 また、更に別の積算制御方法として、M>Nの場合に出力積算器7が常にNを積算し、Mが偶数ならばSn+M/2≧Sm>Sn-M/2、Mが奇数ならばSn+(M-1)/2≧Sm>Sn-(M+1)/2の場合に入力積算器6がSmにMを積算するようにしてもよい。この場合、SnとSmの差は-M/2~M/2又は-(M+1)/2~(M-1)/2の範囲となる。これにより、入出力デジタル信号の位置を示す積算値SmとSnの差の絶対値を少なくすることができる。 As yet another integration control method, the output integrator 7 always integrates N when M> N. If M is an even number, Sn + M / 2 ≧ Sm> Sn−M / 2, and if M is an odd number, Sn + The input integrator 6 may integrate M to Sm when (M−1) / 2 ≧ Sm> Sn− (M + 1) / 2. In this case, the difference between Sn and Sm is in the range of −M / 2 to M / 2 or − (M + 1) / 2 to (M−1) / 2. Thereby, the absolute value of the difference between the integrated values Sm and Sn indicating the position of the input / output digital signal can be reduced.
 また、簡易な積算制御方法として、Sm≦Snの場合に入力積算器6がSmにMを積算し、Sn<Smの場合に出力積算器7がSnにNを積算するようにしてもよい。ただし、MとNの一方の積算しか行われず、処理時間が長くなる。この問題を解消するためにSmとSnの積算を先読みして判定制御し、処理時間を短縮したのが後述の実施の形態3である。 As a simple integration control method, the input integrator 6 may integrate M with Sm when Sm ≦ Sn, and the output integrator 7 may integrate N with Sn when Sn <Sm. However, only one of M and N is integrated, and the processing time becomes long. In order to solve this problem, Embodiment 3 (described later) reduces the processing time by pre-determining and controlling the integration of Sm and Sn.
 また、実施の形態1では画像の水平方向の標本化レート変換を想定しているが、画像の垂直方向の標本化レート変換の場合の違いを説明する。垂直方向の変換は画像のLine数変換とも呼ばれる。装置の構成は水平方向も垂直方向も同様であるが、標本化レート変換においてLineクロックを用いる。例えばHD60P画像の場合には、有効画素Line数が1080で、無効画素Line数が45あり、計1125Lineで構成されるため、Lineクロックの周波数は67.5kHzである。Line画素の入出力制御やFIR係数選択をLine周波数で制御し、複数Line分の入力画素をメモリに取り込んで処理する。従って、ある画素のFIR係数などのパラメータが定まると、同じパラメータが同じLine上の全ての画素に適用される。HD画像の場合、Line当りの画素数は1920画素あるため、FIR演算は1920画素全てに共通となる。結局は水平方向の演算と同じクロック周波数で標本化レート変換演算を行うことになる。水平方向の変換では入力デジタル信号を並列Readシフトレジスタに転送して並列FIR演算するが、垂直方向の変換では所定の入力デジタル信号の複数Lineを並列にアクセスし、各Line上の水平方向が同じ位置の入力画素を参照して出力画素を算出する。 In the first embodiment, the sampling rate conversion in the horizontal direction of the image is assumed, but the difference in the case of the sampling rate conversion in the vertical direction of the image will be described. The conversion in the vertical direction is also called image line number conversion. The configuration of the apparatus is the same in both the horizontal and vertical directions, but a line clock is used in sampling rate conversion. For example, in the case of an HD60P image, the number of effective pixel lines is 1080, the number of invalid pixel lines is 45, and a total of 1125 lines is included, so the frequency of the line clock is 67.5 kHz. Line pixel input / output control and FIR coefficient selection are controlled by the Line frequency, and input pixels for a plurality of Lines are loaded into the memory for processing. Accordingly, when parameters such as FIR coefficient of a certain pixel are determined, the same parameter is applied to all pixels on the same Line. In the case of HD images, since there are 1920 pixels per line, the FIR calculation is common to all 1920 pixels. Eventually, the sampling rate conversion calculation is performed at the same clock frequency as the horizontal calculation. In the horizontal conversion, the input digital signal is transferred to the parallel read shift register and the parallel FIR operation is performed. In the vertical conversion, a plurality of lines of a predetermined input digital signal are accessed in parallel, and the horizontal direction on each line is the same. The output pixel is calculated with reference to the input pixel at the position.
実施の形態2.
 図5は、本発明の実施の形態2に係る標本化レート変換装置を示すブロック図である。本実施の形態の装置は、出力標本化レートが入力標本化レートより高い場合に実施可能であり、出力デジタル信号の出力標本化レート(出力クロック)で動作する。FIFOメモリ1が入力デジタル信号を一旦保存した後に、出力クロックに同期してシフトレジスタ2に供給する。並列FIR演算器3が、シフトレジスタ2から供給された入力デジタル信号を出力デジタル信号に変換して出力する。
Embodiment 2. FIG.
FIG. 5 is a block diagram showing a sampling rate conversion apparatus according to Embodiment 2 of the present invention. The apparatus according to this embodiment can be implemented when the output sampling rate is higher than the input sampling rate, and operates at the output sampling rate (output clock) of the output digital signal. The FIFO memory 1 temporarily stores the input digital signal and then supplies it to the shift register 2 in synchronization with the output clock. The parallel FIR calculator 3 converts the input digital signal supplied from the shift register 2 into an output digital signal and outputs it.
 位置座標差算出部5は比較減算器12を更に有する。EをM以上又はN以上の正整数として、比較減算器12はSm≧EかつSn≧Eである場合に入力積算器6及び出力積算器7に同時にLoadクロックを供給し、入力積算器6及び出力積算器7のLoad端子にそれぞれSm-EとSn-Eを供給する。 The position coordinate difference calculation unit 5 further includes a comparison subtracter 12. When E is a positive integer not less than M or not less than N, the comparison subtractor 12 supplies a load clock to the input integrator 6 and the output integrator 7 simultaneously when Sm ≧ E and Sn ≧ E, and the input integrator 6 and Sm-E and Sn-E are supplied to the load terminal of the output integrator 7, respectively.
 積算値比較器8は、Sn+N≧Sm+Mの場合に入力積算器6にMを積算させ、その際のSn-Smを位置座標差Dkとして出力する。ここではM>Nなので出力積算器7は常にNを積算する。 The integrated value comparator 8 adds M to the input integrator 6 when Sn + N ≧ Sm + M, and outputs Sn−Sm at that time as the position coordinate difference Dk. Here, since M> N, the output integrator 7 always accumulates N.
 M=8、N=3、Smの初期値が4、Snの初期値が1.5、E=16(2の4乗)の場合の積算値Sm、Snの推移を表3に示す。
Figure JPOXMLDOC01-appb-T000003
Table 3 shows changes in the integrated values Sm and Sn when M = 8, N = 3, the initial value of Sm is 4, the initial value of Sn is 1.5, and E = 16 (2 to the 4th power).
Figure JPOXMLDOC01-appb-T000003
 初期化動作から4回目のクロックまでの動作は実施の形態1と同様である。5回目のクロックでSm≧E、Sn≧Eとなり、6回目のクロックではSmとSnからE(=16)が減算される。この際に初期値で設定したSmとSnの小数部は変化しない。以降、11回目、16回目、21回目のクロックでEを減算する条件になり、12回目、17回目、22回目のクロックでSmとSnからE(=16)が減算される。 The operation from the initialization operation to the fourth clock is the same as in the first embodiment. At the fifth clock, Sm ≧ E and Sn ≧ E, and at the sixth clock, E (= 16) is subtracted from Sm and Sn. At this time, the decimal part of Sm and Sn set as initial values does not change. Thereafter, E is subtracted at the 11th, 16th, and 21st clocks, and E (= 16) is subtracted from Sm and Sn at the 12th, 17th, and 22nd clocks.
 実施の形態1では入出力周期MとNの最小公倍数の周期でリセットを行うが、本実施の形態ではEがM以上又はN以上であればよいので、レジスタ、加減算器、大小判定器などのビット数を実施の形態1よりも更に低減することができる。なお、EがM又はNより小さいと、SmとSnからEを減算してもSmとSnが十分減少せず、SmとSnが増加を続けるため、ビット数を十分に低減できない。 In the first embodiment, the reset is performed with a cycle of the least common multiple of the input / output cycles M and N. However, in this embodiment, E may be greater than or equal to M or greater than or equal to N. The number of bits can be further reduced as compared with the first embodiment. If E is smaller than M or N, even if E is subtracted from Sm and Sn, Sm and Sn are not reduced sufficiently, and Sm and Sn continue to increase, so the number of bits cannot be reduced sufficiently.
 また、EをM以上又はN以上の2のべき乗の数値とすることが好ましい。この場合には、Eの値を示すビットが0から1になることを検出すれば、Sm≧EかつSn≧Eを容易に判定することができる。 Further, it is preferable that E is a power of 2 that is M or more or N or more. In this case, if it is detected that the bit indicating the value of E changes from 0 to 1, Sm ≧ E and Sn ≧ E can be easily determined.
 また、例えばM=8、N=3の場合にE=5とするとSm、Snのために比較減算器12が2組必要となる。一方、例えばE=16とすれば、Sm、Snの5ビット目が同時に1であるかどうかを判定し、判定が真なら双方を1から0に変えればよい。従って、Sm-EやSn-Eを算出する減算器やSm≧EとSn≧Eの判定する回路は不要で、Sm、Snの5ビット目の0、1を判定する簡易なゲート論理回路で比較減算器12を構成できる。 For example, if M = 8 and N = 3 and E = 5, two sets of comparison subtractors 12 are required for Sm and Sn. On the other hand, for example, if E = 16, it is determined whether the fifth bit of Sm and Sn is 1 at the same time. If the determination is true, both may be changed from 1 to 0. Therefore, a subtractor for calculating Sm−E and Sn−E and a circuit for determining Sm ≧ E and Sn ≧ E are unnecessary, and a simple gate logic circuit for determining 0 and 1 of the fifth bit of Sm and Sn. The comparison subtracter 12 can be configured.
 また、実施の形態1では入出力デジタル信号の位置座標差が整数であるが、実用上は位置座標差が1未満の場合もある。そこで、本実施の形態では出力デジタル信号の位置を入力デジタル信号の位置から0.5シフトする場合を考えて、入力積算器6及び出力積算器7の精度を1ではなく、0.5とする。具体的にはMとNの積算は実施の形態1と同様であるが、Sm、Snの初期値を0.5単位の値とする。即ち、入力積算器6及び出力積算器7の精度が小数部に拡張されている。これにより、出力デジタル信号の位置を任意にシフトすることができる。 In the first embodiment, the position coordinate difference between the input and output digital signals is an integer. However, in practice, the position coordinate difference may be less than 1. Therefore, in this embodiment, considering the case where the position of the output digital signal is shifted by 0.5 from the position of the input digital signal, the accuracy of the input integrator 6 and the output integrator 7 is set to 0.5 instead of 1. . Specifically, the integration of M and N is the same as in the first embodiment, but the initial values of Sm and Sn are set to 0.5 units. That is, the accuracy of the input integrator 6 and the output integrator 7 is extended to the decimal part. Thereby, the position of the output digital signal can be arbitrarily shifted.
 このような小数部への拡張は、例えば入出力画像のセンター位置を画面中央位置とする場合に必要となる。なお、FIR係数を選択する際に用いる位置座標差Dkの種類は初期値の1未満の端数(小数部)には影響されないので、FIR係数のセット数は実施の形態1と同じである。また、表3の下位4ビットは小数部1ビットを含む部分を示しているが、LSB(最下位ビット)は常に“1”である。従って、実質LSBを除く3ビットが意味のあるデータとなり、これによりFIR係数のセットを選択する。 Such extension to the decimal part is necessary, for example, when the center position of the input / output image is set to the center position of the screen. Note that the type of position coordinate difference Dk used when selecting the FIR coefficient is not affected by the fraction (fractional part) of less than 1 of the initial value, so the number of FIR coefficient sets is the same as in the first embodiment. In addition, the lower 4 bits of Table 3 indicate a part including a fractional part 1 bit, but the LSB (least significant bit) is always “1”. Therefore, the 3 bits excluding the actual LSB become meaningful data, thereby selecting a set of FIR coefficients.
実施の形態3.
 図6は、本発明の実施の形態3に係る標本化レート変換装置を示すブロック図である。本実施の形態の装置は、主にデジタルオーディオに用いる標本化レート変換器であり、入力標本化レート48kHz(業務用デジタルオーディオの一般的な周波数)で標本化された入力デジタル信号を、出力標本化レート44.1kHz(オーディオCD)で標本化された出力デジタル信号に変換する。この場合の標本化レート変換は時間軸の1次元標本化レート変換となる。
Embodiment 3 FIG.
FIG. 6 is a block diagram showing a sampling rate conversion apparatus according to Embodiment 3 of the present invention. The apparatus of the present embodiment is a sampling rate converter mainly used for digital audio, and an input digital signal sampled at an input sampling rate of 48 kHz (a general frequency of commercial digital audio) is output samples. To an output digital signal sampled at a sampling rate of 44.1 kHz (audio CD). The sampling rate conversion in this case is a one-dimensional sampling rate conversion on the time axis.
 実施の形態1,2の装置は主に画像処理を目的とし、画像の標本化レート(画素サンプル列の周波数)は数MHz~150MHz程度になるため、1画素毎に数10サンプルを参照した積和演算を行うために並列FIR演算器3を用いる。これに対して、
オーディオの標本化レートは数10kHz程度と低く、その数100倍の周波数でも数10MHz程度であるため、本実施の形態では直列FIR演算器13を用いて乗算器などの回路構成を小さくする。
The devices of the first and second embodiments are mainly intended for image processing, and the sampling rate of the image (the frequency of the pixel sample string) is about several MHz to 150 MHz. Therefore, a product that refers to several tens of samples per pixel. A parallel FIR calculator 3 is used to perform the sum operation. On the contrary,
The audio sampling rate is as low as several tens of kHz, and even a frequency several hundred times as high as several tens of MHz. Therefore, in this embodiment, the serial FIR calculator 13 is used to reduce the circuit configuration such as a multiplier.
 本実施の形態の装置は、入力デジタル信号の入力標本化レート(入力クロック48kHz)で動作する。ただし、オーディオのFIR次数(参照する入力デジタル信号の数)は高く、標本化レートが低いため、PLL14によって入力クロックの256倍のFIR演算クロック12.288MHzを生成する。直列FIR演算器13は、このFIR演算クロックで動作して入力デジタル信号を出力デジタル信号に変換する。この256倍のクロックの場合、FIRの次数(FIR演算において参照する入力デジタル信号の個数)は最大255個となる。FIFOメモリ4が出力デジタル信号を保存し、適切な遅延の後(例えば、初期化後に入力デジタル信号100個程度経過した後)に、出力クロック44.1kHzに同期して出力する。 The apparatus according to the present embodiment operates at an input sampling rate (input clock 48 kHz) of an input digital signal. However, since the FIR order of audio (the number of input digital signals to be referred to) is high and the sampling rate is low, the PLL 14 generates a FIR operation clock 12.288 MHz that is 256 times the input clock. The serial FIR calculator 13 operates with this FIR calculation clock and converts the input digital signal into an output digital signal. In the case of 256 times the clock, the order of FIR (the number of input digital signals to be referred to in the FIR calculation) is 255 at the maximum. The FIFO memory 4 stores the output digital signal, and outputs it in synchronization with the output clock 44.1 kHz after an appropriate delay (for example, after about 100 input digital signals have elapsed after initialization).
 位置座標差算出部5は入力クロックで動作する。入力クロックが48kHz入力と出力クロックが44.1kHzの場合、周期比M:N=147:160となる。積算値比較器8は、Sm+M≧Sn+Nの場合に出力積算器7にNを積算させ、その際のSn-Smを位置座標差Dkとして出力する。ここではN>Mなので入力積算器6は常にMを積算する。また、実施の形態1と同様に初期値検出リセット部11は、SmとSnの差が初期値に一致した場合にSmとSnを初期値にリセットする。 The position coordinate difference calculation unit 5 operates with an input clock. When the input clock is 48 kHz input and the output clock is 44.1 kHz, the cycle ratio M: N = 147: 160. The integrated value comparator 8 adds N to the output integrator 7 when Sm + M ≧ Sn + N, and outputs Sn−Sm at that time as the position coordinate difference Dk. Here, since N> M, the input accumulator 6 always accumulates M. Similarly to the first embodiment, the initial value detection reset unit 11 resets Sm and Sn to the initial values when the difference between Sm and Sn matches the initial value.
 M=147、N=160の場合、位置座標差Dkは147種類(0~146)となる。この147種類の位置座標差Dk毎に50次FIRなら50項のFIR係数が必要となる。なお、画像信号は一般的には8~10ビット/サンプルであるが、オーディオでは12~24ビット/サンプルであり、高品質のサンプル値算出が必要なため、FIR次数は画像の数倍以上となる。ここでは簡単のため、50次としている。 When M = 147 and N = 160, the position coordinate difference Dk is 147 types (0 to 146). If the 147 types of position coordinate differences Dk are 50th-order FIR, 50 terms of FIR coefficients are required. Note that the image signal is generally 8 to 10 bits / sample, but the audio signal is 12 to 24 bits / sample, and high-quality sample value calculation is required. Therefore, the FIR order is several times that of the image. Become. Here, it is 50th for simplicity.
 図7は、本発明の実施の形態3に係る直列FIR演算器を示すブロック図である。図8は、本発明の実施の形態3に係る直列FIR演算器の動作を示すタイミングチャートである。この直列FIR演算器は、50個の入力デジタル信号を用いて直列積和演算を行って1個の出力デジタル信号を求める50-Tap直列FIR演算器である。 FIG. 7 is a block diagram showing a serial FIR computing unit according to Embodiment 3 of the present invention. FIG. 8 is a timing chart showing the operation of the serial FIR calculator according to the third embodiment of the present invention. This serial FIR computing unit is a 50-Tap serial FIR computing unit that performs serial product-sum operation using 50 input digital signals to obtain one output digital signal.
 直列FIR演算の場合、入力デジタル信号はシフトレジスタではなく、1サンプル毎にRAM15(Random Access Memory)に保存される。入力デジタル信号は、入力カウンタ16でアドレスを生成してRAM15に保存される。簡単のため、RAM15はWriteとReadを同時に行うことができる2-Port RAMとする。このRAM15が例えば8ビットアドレスで256サンプルを保存する場合、RAM15のアドレスは0、1、・・・、255となった後に再び0となる。 In the case of serial FIR calculation, the input digital signal is stored in the RAM 15 (Random Access Memory) for each sample, not in the shift register. The input digital signal generates an address by the input counter 16 and is stored in the RAM 15. For simplicity, the RAM 15 is a 2-Port RAM that can perform Write and Read simultaneously. For example, when the RAM 15 stores 256 samples with an 8-bit address, the address of the RAM 15 becomes 0, 1,.
 位置座標差算出部5からSn-SmがFIR係数メモリ9に供給され、それに対応するアドレスのFIR係数のセットが選択される。入力クロックに同期してFIR演算カウンタ17が255にリセットされ、同時に積和レジスタ18も0にリセットされる。その後、1つの出力デジタル信号を算出するための50個の入力デジタル信号Xj(j=0~49)を定めて、入力デジタル信号とそれに対応するFIR係数Fj(j=0~49)を乗算器19で乗算する。そのXj・Fjを加算器20がFIR演算クロックごとに積和し、その積和を積和レジスタ18が保存する。全ての積和を終えると、出力デジタル信号Y=X0・F0+X1・F1+・・・+X49・F49が算出される。 Sn-Sm is supplied from the position coordinate difference calculation unit 5 to the FIR coefficient memory 9, and a set of FIR coefficients corresponding to the address is selected. In synchronization with the input clock, the FIR operation counter 17 is reset to 255, and at the same time, the product-sum register 18 is also reset to 0. Thereafter, 50 input digital signals Xj (j = 0 to 49) for calculating one output digital signal are determined, and the input digital signal and the corresponding FIR coefficient Fj (j = 0 to 49) are multiplied. Multiply by 19. The adder 20 multiplies the Xj · Fj for each FIR operation clock, and the product-sum register 18 stores the product sum. When all the product-sums are finished, the output digital signal Y = X0 · F0 + X1 · F1 +... + X49 · F49 is calculated.
 RAM15は、FIR演算カウンタ値が49より小さい場合にも256サンプルを保持し、リング状に構成されている。このため、n=0の1つ前のサンプルはアドレス255に保持されている。従って、減算器21の出力0-1=-1は255となり、連続的に適切な入力デジタル信号が順に参照される。 The RAM 15 holds 256 samples even when the FIR calculation counter value is smaller than 49, and is configured in a ring shape. For this reason, the previous sample of n = 0 is held at address 255. Accordingly, the output 0-1 = −1 of the subtractor 21 becomes 255, and appropriate input digital signals are successively referred to in order.
 直列FIR演算は1つの入力デジタル信号の周期内に終わるため、その周期内においてRAM15内のデータは変わらない。FIR演算が50次(50個の入力デジタル信号を参照したFIR演算)である場合、FIR演算カウンタ値が0~49の間にFIR演算する。その際にFIR演算カウンタ17は参照入力サンプルの窓信号を積和レジスタ18に供給する。FIR演算カウンタ値が50になるとその時のFIR演算の結果を出力する。残りのカウンタ値51~254の間は何もせず、カウンタ値255でリセットする。 Since the serial FIR calculation ends within the period of one input digital signal, the data in the RAM 15 does not change within that period. When the FIR calculation is 50th order (FIR calculation referring to 50 input digital signals), the FIR calculation is performed when the FIR calculation counter value is between 0 and 49. At that time, the FIR operation counter 17 supplies the window signal of the reference input sample to the product-sum register 18. When the FIR calculation counter value reaches 50, the FIR calculation result at that time is output. No operation is performed between the remaining counter values 51 to 254, and the counter value 255 is reset.
 FIR演算カウンタ17が動作開始すると、減算器21が、RAM15のWriteアドレスに用いている入力カウンタ16の値から、FIR演算カウンタの値を減算する。その減算値に対応するReadアドレスの入力デジタル信号が順に参照される。即ち、最新の入力デジタル信号より1サンプルずつ過去の入力デジタル信号が参照される。例えば演算開始時の入力カウンタ値がnのとき、FIR演算カウンタ値0~49をnから順次減算するので、減算器21の出力はn、n-1、・・・、n-49となる。これによりReadアドレスn~n-49の入力デジタル信号が順に参照される。この際にFIR演算カウンタ値0~49のアドレスでFIR係数メモリ9にアクセスされるため、入力デジタル信号Xnに対応するFIR係数はF(0)、Xn-1ではF(1)、Xn-2ではF(2)、・・・Xn-49ではF(49)となる。なお、参照する入力デジタル信号列の中央位置のサンプルのFIR演算カウンタ値は24か25であるため、出力デジタル信号に近接する入力デジタル信号はX24またはX25である。 When the operation of the FIR operation counter 17 starts, the subtracter 21 subtracts the value of the FIR operation counter from the value of the input counter 16 used for the write address of the RAM 15. The input digital signal of the Read address corresponding to the subtraction value is referred to in order. That is, the past input digital signal is referred to by one sample from the latest input digital signal. For example, when the input counter value at the start of calculation is n, the FIR calculation counter values 0 to 49 are sequentially subtracted from n, so that the output of the subtractor 21 is n, n−1,..., N−49. As a result, the input digital signals of Read addresses n to n-49 are sequentially referred to. At this time, since the FIR coefficient memory 9 is accessed with addresses of FIR calculation counter values 0 to 49, the FIR coefficient corresponding to the input digital signal Xn is F (0), and Xn−1 is F (1), Xn−2. Then F (2),... Xn-49 becomes F (49). Since the FIR calculation counter value of the sample at the center position of the input digital signal sequence to be referred to is 24 or 25, the input digital signal close to the output digital signal is X24 or X25.
 本実施の形態における積算値Sm、Snの推移を表4に示す。
Figure JPOXMLDOC01-appb-T000004
Table 4 shows the transition of the integrated values Sm and Sn in the present embodiment.
Figure JPOXMLDOC01-appb-T000004
 まず、50次FIR演算での参照入力デジタル信号X0~X49のうちX0~X48(49サンプル)をRAM15に書き込む。時間T0に初期リセットを行い、入出力の積算値Sm、Snを0にリセットする。リセットの期間も入力デジタル信号が書き込まれ、リセット後にはX0~X49の計50個の入力デジタル信号がRAM15に書き込まれている。 First, X0 to X48 (49 samples) of the reference input digital signals X0 to X49 in the 50th-order FIR calculation are written in the RAM 15. Initial reset is performed at time T0, and input / output integrated values Sm and Sn are reset to zero. Input digital signals are written during the reset period, and a total of 50 input digital signals X0 to X49 are written in the RAM 15 after reset.
 初期化後より標本化レート変換の動作が開始される。初期化後の最初のクロック(時間T1)では、SmにはMが積算されるが、Sm+M<Sn+Nのため、SnにはNが積算されないので、出力デジタル信号は算出されない。Sm=147、Sn=0となる。 標本 Sampling rate conversion starts after initialization. At the first clock after initialization (time T1), M is accumulated in Sm, but since Sm + M <Sn + N, N is not accumulated in Sn, so that an output digital signal is not calculated. Sm = 147 and Sn = 0.
 時間T2では、Sm+M≧Sn+Nなので、Sm、SnにそれぞれMとNが積算され、出力デジタル信号が算出される。Sm=294、Sn=160となる。入力デジタル信号X0~X49を参照してY0=X0・F0+X1・F1+・・・+X49・F49を演算して出力デジタル信号Y0を求める。ここで、F0~F49はそれぞれX0~X49に対するFIR係数である。このFIR係数のセットは、Sn-Sm=160-294=-134、Modulo(-134,147)=13に対応するアドレスからFIR係数メモリ9から選択される。 At time T2, since Sm + M ≧ Sn + N, M and N are added to Sm and Sn, respectively, and an output digital signal is calculated. Sm = 294 and Sn = 160. Referring to the input digital signals X0 to X49, Y0 = X0 · F0 + X1 · F1 +... + X49 · F49 is calculated to obtain the output digital signal Y0. Here, F0 to F49 are FIR coefficients for X0 to X49, respectively. This set of FIR coefficients is selected from the FIR coefficient memory 9 from an address corresponding to Sn−Sm = 160−294 = −134 and Modulo (−134,147) = 13.
 FIR係数メモリ9は、50次FIR用に50個のFIR係数の選択のために6ビットと、位置座標差Dkの0~146の選択のために8ビットが必要であるため、計14ビットのアドレスを持つRAMで構成される。50個の係数選択は12.288MHzで動作し、位置座標差Dkの選択は48kHzで動作する。 The FIR coefficient memory 9 requires 6 bits for selecting 50 FIR coefficients for the 50th order FIR and 8 bits for selecting 0 to 146 of the position coordinate difference Dk. It consists of a RAM with an address. The selection of 50 coefficients operates at 12.288 MHz, and the selection of the position coordinate difference Dk operates at 48 kHz.
 時間T3以降も同様である。時間T3~T12まではSm+M≧Sn+Nの条件を満たすため、出力デジタル信号Y1~Y10が順次算出される。時間T13では、Sm+M=1911<Sn+N=1920のため、出力デジタル信号は算出されず、時間T14においてSm+M≧Sn+Nとなり、出力デジタル信号Y11が算出される。 The same applies after time T3. Since the condition of Sm + M ≧ Sn + N is satisfied from time T3 to T12, output digital signals Y1 to Y10 are sequentially calculated. At time T13, since Sm + M = 1911 <Sn + N = 1920, the output digital signal is not calculated, and at time T14, Sm + M ≧ Sn + N, and the output digital signal Y11 is calculated.
 暫く同様の動作が続いた後、時間T160ではSmとSnの差が初期値に一致するため、SmとSnを初期値0にリセットする。リセット後の動作は初期化後の動作と同じである。 After the same operation continues for a while, the difference between Sm and Sn coincides with the initial value at time T160, so Sm and Sn are reset to the initial value 0. The operation after reset is the same as the operation after initialization.
 本実施の形態では上記の構成及び動作により実施の形態1と同様の効果を得ることができる。また、本実施の形態でも実施の形態1と同様にリセット制御を行う。画像の標本化レート変換では画像端部でリセットを必ず行うが、オーディオには画像のような空間的な区切りが無いため、時間軸で無限にサンプルが一定レートで継続して積算値が無限に大きくなる。このため、オーディオに用いる標本化レート変換器においてリセット制御は特に重要である。 In the present embodiment, the same effects as in the first embodiment can be obtained by the above-described configuration and operation. Also in this embodiment, reset control is performed as in the first embodiment. Image sampling rate conversion always resets at the edge of the image, but since audio does not have a spatial division like an image, the sample value continues infinitely on the time axis and the integrated value becomes infinite. growing. For this reason, reset control is particularly important in a sampling rate converter used for audio.
 例えばM=147、N=160、オーディオ・サンプルが24時間継続する際にリセット制御の無い場合にはSm、Snは147x48000x3600x24=160x44100x3600x24≒6.1x1011≒239.2となり、40ビットで表現される。これに対して本実施の形態ではSmとSn双方が23360になったときリセットを行うので、SmとSnの最大値が23360となり、15ビットで表現できる。従って、リセット制御により、24時間連続動作で40ビット必要だった加減算器などの精度を15ビットに低減することができる。 For example, if M = 147, N = 160, and there is no reset control when the audio sample continues for 24 hours, Sm and Sn are 147 × 48000 × 3600 × 24 = 160 × 44100 × 3600 × 24≈6.1 × 10 11 ≈2 39.2 , and are expressed by 40 bits. The On the other hand, in this embodiment, the reset is performed when both Sm and Sn reach 23360, so the maximum value of Sm and Sn becomes 23360, which can be expressed by 15 bits. Therefore, the accuracy of the adder / subtractor, etc., which required 40 bits in 24-hour continuous operation, can be reduced to 15 bits by the reset control.
 なお、本実施の形態において、実施の形態2と同様にSm≧EかつSn≧Eである場合にSmとSnから同時にEを減算するように構成すれば、レジスタ、加減算器、大小判定器などのビット数を更に低減することができる。例えばM=147、N=160であれば、2進構成のハードウエアで簡易に構成できるようにEを147以上の2のべき乗の数値256とすることが好ましい。この場合には、Sm,Snの各9ビット目が1になるかどうかを判定すれば、SmとSnが256以上であるかどうかを判定できる。従って、SmとSnの各9ビット目が1のとき、SmとSnの9ビット目を同時に0に設定すればよい。これにより、レジスタ、加減算器、大小判定器などのビット数を9ビットにできる。 In this embodiment, as in the second embodiment, when Sm ≧ E and Sn ≧ E, if E is subtracted from Sm and Sn at the same time, a register, an adder / subtracter, a size determination device, etc. The number of bits can be further reduced. For example, if M = 147 and N = 160, it is preferable to set E to a power-of-two value 256 of 147 or more so that it can be easily configured with binary hardware. In this case, if it is determined whether each 9th bit of Sm and Sn is 1, it can be determined whether Sm and Sn are 256 or more. Therefore, when each 9th bit of Sm and Sn is 1, the 9th bit of Sm and Sn may be set to 0 simultaneously. As a result, the number of bits of the register, the adder / subtracter, the magnitude judgment device, etc. can be made 9 bits.
3 並列FIR演算器(FIR演算器)、5 位置座標差算出部、6 入力積算器、7 出力積算器、8 積算値比較器、9 FIR係数メモリ、11 初期値検出リセット部、12 比較減算器、13 直列FIR演算器(FIR演算器) 3 parallel FIR calculator (FIR calculator), 5 position coordinate difference calculator, 6 input integrator, 7 output integrator, 8 integrated value comparator, 9 FIR coefficient memory, 11 initial value detection reset unit, 12 comparison subtractor , 13 Serial FIR calculator (FIR calculator)

Claims (5)

  1.  入力標本化レートで標本化された入力デジタル信号を、出力標本化レートで標本化された出力デジタル信号に変換する標本化レート変換装置であって、
     出力デジタル信号Ykの位置座標Tkに近接する入力デジタル信号の位置座標と位置座標Tkとの位置座標差Dkを算出する位置座標差算出部と、
     前記出力標本化レートの1/2以上の周波数成分を遮断する特性を有するFIR-LPF(Finite Impulse Response Low Pass Filter)に入力されるインパルス入力の位置座標をz=0とした場合における前記FIR-LPFのFIR係数F(z)を保存し、前記位置座標差Dkが入力されると、前記出力デジタル信号Ykの位置座標Tkの周辺近傍に存在する一定個数(p個)の入力デジタル信号Xk(q)の位置座標をZk(q)、(q=1,2,・・・,p)として位置座標差(Zk(q)-Tk)に対応するFIR係数F(Zk(q)-Tk)を出力するFIR係数メモリと、
     Yk=F(Zk(1)-Tk)*Xk(1)+F(Zk(2)-Tk)*Xk(2)+…+F(Zk(p)-Tk)*Xk(p)を演算して前記出力デジタル信号Ykを求めるFIR演算器とを備えることを特徴とする標本化レート変換装置。
    A sampling rate converter for converting an input digital signal sampled at an input sampling rate into an output digital signal sampled at an output sampling rate,
    A position coordinate difference calculating unit that calculates a position coordinate difference Dk between the position coordinates of the input digital signal close to the position coordinates Tk of the output digital signal Yk and the position coordinates Tk;
    The FIR− when the position coordinate of the impulse input inputted to the FIR-LPF (Finite Impulse Response Low Pass Filter) having the characteristic of cutting off the frequency component of 1/2 or more of the output sampling rate is set to z = 0. When the FIR coefficient F (z) of the LPF is stored and the position coordinate difference Dk is input, a certain number (p) of input digital signals Xk (p) existing in the vicinity of the position coordinate Tk of the output digital signal Yk. The position coordinates of q) are Zk (q), (q = 1, 2,..., p), and the FIR coefficient F (Zk (q) −Tk) corresponding to the position coordinate difference (Zk (q) −Tk) FIR coefficient memory for outputting
    Yk = F (Zk (1) −Tk) * Xk (1) + F (Zk (2) −Tk) * Xk (2) +... + F (Zk (p) −Tk) * Xk (p) A sampling rate conversion apparatus comprising: an FIR computing unit for obtaining the output digital signal Yk.
  2.  Cを定数、MとNを互いに素な正整数として、前記入力デジタル信号の標本化周期をC・Mとし、前記出力デジタル信号の標本化周期をC・Nとし、
     前記位置座標差算出部は、
     Mを積算して積算値Smを出力する入力積算器と、
     Nを積算して積算値Snを出力する出力積算器と、
     Sm-Snが所定値以下の場合に前記入力積算器にMを積算させ、Sn-Smが所定値以下の場合に前記出力積算器にNを積算させ、前記出力積算器にNを積算させた際のSn-Smを前記位置座標差Dkとして出力する積算値比較器とを有することを特徴とする請求項1に記載の標本化レート変換装置。
    C is a constant, M and N are mutually prime positive integers, the sampling period of the input digital signal is C · M, the sampling period of the output digital signal is C · N,
    The position coordinate difference calculation unit
    An input integrator that integrates M and outputs an integrated value Sm;
    An output integrator for integrating N and outputting an integrated value Sn;
    When Sm-Sn is less than or equal to a predetermined value, M is accumulated in the input integrator, and when Sn-Sm is less than or equal to a predetermined value, N is accumulated in the output integrator, and N is accumulated in the output integrator. 2. The sampling rate converter according to claim 1, further comprising an integrated value comparator that outputs Sn-Sm at the time as the position coordinate difference Dk.
  3.  前記位置座標差算出部は、SmとSnの差が初期値に一致した場合にSmとSnを初期値にリセットする初期値検出リセット部を更に有することを特徴とする請求項2に記載の標本化レート変換装置。 The sample according to claim 2, wherein the position coordinate difference calculation unit further includes an initial value detection reset unit that resets Sm and Sn to an initial value when a difference between Sm and Sn matches an initial value. Conversion rate converter.
  4.  前記位置座標差算出部は、EをM以上又はN以上の正整数として、Sm≧EかつSn≧Eである場合にSmとSnから同時にEを減算する比較減算器を更に有することを特徴とする請求項2に記載の標本化レート変換装置。 The position coordinate difference calculation unit further includes a comparison subtractor that subtracts E from Sm and Sn simultaneously when Sm ≧ E and Sn ≧ E, where E is a positive integer not less than M or not less than N. The sampling rate conversion apparatus according to claim 2.
  5.  前記入力積算器及び前記出力積算器の精度が小数部に拡張されていることを特徴とする請求項2~4の何れか1項に記載の標本化レート変換装置。 The sampling rate conversion apparatus according to any one of claims 2 to 4, wherein the accuracy of the input integrator and the output integrator is expanded to a decimal part.
PCT/JP2013/060606 2012-08-23 2013-04-08 Sampling rate conversion device WO2014030384A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
BR112015003618-0A BR112015003618B1 (en) 2012-08-23 2013-04-08 Sample rate conversion device
US14/420,651 US9214921B2 (en) 2012-08-23 2013-04-08 Sampling rate conversion device
EP13831644.3A EP2890008B1 (en) 2012-08-23 2013-04-08 Sampling rate conversion device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2012184291A JP5573901B2 (en) 2012-08-23 2012-08-23 Sampling rate converter
JP2012-184291 2012-08-23

Publications (1)

Publication Number Publication Date
WO2014030384A1 true WO2014030384A1 (en) 2014-02-27

Family

ID=50149704

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2013/060606 WO2014030384A1 (en) 2012-08-23 2013-04-08 Sampling rate conversion device

Country Status (5)

Country Link
US (1) US9214921B2 (en)
EP (1) EP2890008B1 (en)
JP (1) JP5573901B2 (en)
BR (1) BR112015003618B1 (en)
WO (1) WO2014030384A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9721584B2 (en) * 2014-07-14 2017-08-01 Intel IP Corporation Wind noise reduction for audio reception
JP6107994B1 (en) * 2016-03-08 2017-04-05 Nttエレクトロニクス株式会社 Data processing apparatus, data processing method, and communication apparatus
CN110782940B (en) * 2019-11-15 2021-09-17 京东方科技集团股份有限公司 Shift register unit, gate drive circuit, array substrate and display device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0472905A (en) * 1990-07-13 1992-03-06 Hitachi Ltd Sampling frequency converter
JPH0865105A (en) * 1994-08-18 1996-03-08 Hitachi Denshi Ltd Sampling frequency converter
JPH0884048A (en) 1994-09-13 1996-03-26 Sony Corp Sampling rate converter

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0052847B1 (en) * 1980-11-26 1985-07-17 WILLI STUDER AG Fabrik für elektronische Apparate Method and circuit for converting the sampling frequency of a series of samples avoiding conversion into a continuous signal
JP2600236B2 (en) * 1987-12-29 1997-04-16 ソニー株式会社 Sampling frequency conversion circuit
FR2826816B1 (en) * 2001-06-29 2003-09-26 St Microelectronics Sa DEVICE FOR CONVERTING A SEQUENCE OF DIGITAL SAMPLES
JP4449007B2 (en) * 2005-01-21 2010-04-14 パイオニア株式会社 Sampling frequency converter
US8000423B2 (en) * 2005-10-07 2011-08-16 Zoran Corporation Adaptive sample rate converter

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0472905A (en) * 1990-07-13 1992-03-06 Hitachi Ltd Sampling frequency converter
JPH0865105A (en) * 1994-08-18 1996-03-08 Hitachi Denshi Ltd Sampling frequency converter
JPH0884048A (en) 1994-09-13 1996-03-26 Sony Corp Sampling rate converter

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2890008A4

Also Published As

Publication number Publication date
BR112015003618B1 (en) 2022-02-22
EP2890008A4 (en) 2016-04-20
EP2890008A1 (en) 2015-07-01
US9214921B2 (en) 2015-12-15
US20150222248A1 (en) 2015-08-06
JP5573901B2 (en) 2014-08-20
BR112015003618A2 (en) 2017-07-04
JP2014042204A (en) 2014-03-06
EP2890008B1 (en) 2017-12-13

Similar Documents

Publication Publication Date Title
US5475628A (en) Asynchronous digital sample rate converter
EP0695032B1 (en) Digital-to-digital sample rate converter
TWI450499B (en) Method and apparatus for computing interpolation factors in sample rate conversion systems
JP5573901B2 (en) Sampling rate converter
KR101181979B1 (en) apparatus of digital re-sampler using fractional delay generator
CN109976660B (en) Random signal sampling rate reconstruction method based on linear interpolation and data sampling system
CN106972840B (en) Sampling rate conversion method and device
KR100423503B1 (en) Apparatus for disposing digital image and a method using the same
JP6580831B2 (en) Image processing apparatus, image processing method, and program
JP2010067251A (en) Integer division circuit with allowable error
US7609181B2 (en) Sampling frequency conversion apparatus
WO2016197393A1 (en) Parallel multiphase image interpolation device and method
CN107193784B (en) High-precision low-hardware-complexity sinc interpolation implementation method and system
KR20050075859A (en) Apparatus and method for coordinate conversion
JP2001128061A (en) Method and device for conversion processing of video size
JP5573926B2 (en) Sampling rate converter
US9286654B2 (en) Image scaling processor and image scaling processing method
GB2495553A (en) Re-sampling method and apparatus
KR20050084345A (en) Digital sampling frequency converter
JP2724224B2 (en) Digital image signal scaling processing method and apparatus
JPH11308575A (en) Interpolation arithmetic unit and its method
EP3062236A1 (en) Downsampling by averaging with reduced memory requirements
JP2012085177A (en) Decimator circuit, and operation method for decimator circuit
JP2011160282A (en) Image processing apparatus and method
JPH04311159A (en) Digital signal processor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13831644

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 14420651

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2013831644

Country of ref document: EP

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112015003618

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112015003618

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20150220