KR100284564B1 - How to convert data speed - Google Patents
How to convert data speed Download PDFInfo
- Publication number
- KR100284564B1 KR100284564B1 KR1019970066040A KR19970066040A KR100284564B1 KR 100284564 B1 KR100284564 B1 KR 100284564B1 KR 1019970066040 A KR1019970066040 A KR 1019970066040A KR 19970066040 A KR19970066040 A KR 19970066040A KR 100284564 B1 KR100284564 B1 KR 100284564B1
- Authority
- KR
- South Korea
- Prior art keywords
- data
- write
- clock
- read
- speed
- Prior art date
Links
Images
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
본 발명은 데이터를 처리하는 두 볼록간에 선입선출기(FIFO)를 이용하여 데이터를 기록 및 판독할 경우 두 볼록간의 데이터 처리 능력에 맞게 미리 기록 클록과 판독 클록을 생성하여 선입선출기의 기록 및 판독을 제어함으로써 두 볼록간의 데이터 처리 속도가 다를 경우에도 데이터의 기록 및 판독이 원할히 이루어지도록 한 데이터 처리 속도 변환방법에 관한 것으로서, 이러한 본 발명은 데이터를 기록 및 판독하는 선입선출기의 기록 클록과 판독 클록이 최소의 정수비를 갖는 기록 및 판독 최소 정수 값을 산출하는 단계와; 상기 산출한 기록 및 판독 최소 정수 값에 시스템에 맞게 회로 제어가 편리한 적절한 값을 부가시켜 최종 기록 제어 값을 산출하는 단계와; 상기 기록 제어값 산출후 데이터를 기록하는 기록 블록과 그 기록된 데이터를 판독하는 판독 블록간의 데이터 처리 속도를 비교하여 그 대소관계에 따라 상기 기록 제어값의 인에이블 및 디스에이블 시간을 콘트롤하는 단계를 순차 실행시키게 되는 것이다.According to the present invention, when a data is written and read out using a first-in first-out (FIFO) between two convex processing data, a write clock and a read clock are generated in advance according to the data processing capability between the two convex to write and read the first-in first-out. The present invention relates to a data processing speed conversion method for smoothly writing and reading data even when the data processing speed between the two convexities is different. The present invention relates to a write clock and a readout of a first-in-first-out machine that records and reads data. Calculating a write and read minimum integer value at which the clock has a minimum integer ratio; Calculating a final write control value by adding an appropriate value convenient for circuit control to the system to the calculated write and read minimum integer values; Comparing the data processing speed between the write block for recording data and the read block for reading the recorded data after calculating the write control value and controlling the enable and disable times of the write control value according to the magnitude relationship; It will be executed sequentially.
Description
본 발명은 데이터 처리 속도 변환(Rate Conversion Method)에 관한 것으로, 특히 데이터를 처리하는 두 볼록간에 선입선출기(FIFO)을 이용하여 데이터를 기록 및 판독할 경우 두 볼록간의 데이터 처리 능력에 맞게 미리 기록 클록과 판독 클록을 생성하여 선입선출기의 기록 및 판독을 제어함으로써 두 볼록간의 데이터 처리 속도가 다를 경우에도 데이터의 기록 및 판독이 원할히 이루어지도록 한 데이터 처리 속도 변환방법에 관한 것이다.The present invention relates to a rate conversion method, and in particular, when data is recorded and read using a first-in first-out (FIFO) between two convex processing data, the data is recorded in advance according to the data processing capability between the two convex. The present invention relates to a data rate conversion method for generating a clock and a read clock to control writing and reading of a first-in, first-out, so that data can be written and read smoothly even when the data processing rates between the two convexities are different.
일반적으로, 디지털 신호 처리 시스템에서는 두 볼록간의 데이터 처리 속도가 다르면 데이터 처리 속도 변환을 위해 선입선출(FIFO)을 이용한다.In general, a digital signal processing system uses first-in first-out (FIFO) for data rate conversion if the data rates between the two convexities are different.
이때 선입선출은 입출력 데이터 속도의 차이로 인한 내부의 상태를 표시하기 위해 풀 플래그(Full Flag)와 엠티 플래그(Empty Flag)를 사용한다.In this case, first-in, first-out uses a full flag and an empty flag to indicate an internal state due to a difference in input / output data rates.
여기서, 상기 두 신호들을 이용할 경우에는 FIFO의 상태를 계속 감시하여 변화되는 상태에 맞게 계속적으로 데이터의 입출력을 변화시켜 제어하게 된다.In this case, when the two signals are used, the state of the FIFO is continuously monitored to continuously change the input / output of the data according to the changed state.
첨부한 도면 도 1은 상기와 같은 FIFO 을 이용한 데이터 처리 속도 제어장치의 일예이다.1 is an example of a data processing speed control apparatus using the FIFO as described above.
이에 도시된 바와 같이, 외부에서 전달되는 기록 클록(WCLK)과 선입선출기(FIFO)에서 발생되는 풀 플래그(/FF)에 의해 적절한 기록 가능신호(WEN)와 데이터 출력 제어신호를 발생하는 데이터 기록 제어부(1)와, 상기 데이터 기록 제어부(1)에서 발생되는 데이터 출력 제어신호에 의해 상기 외부에서 전달되는 기록 클록(WCLK)에 동기 되어 입력되는 데이터를 출력을 제어하는 입력 데이터 경로 제어부(2)와, 외부에서 전달되는 판독 클록(RCLK)과 상기 선입선출기(5)에서 얻어지는 엠티 플래그(/EF)에 의해 적절한 판독 가능신호(REN)와 데이터 출력 제어신호를 발생하는 데이터 판독 제어부(3)와, 상기 데이터 판독 제어부(3)에서 발생되는 데이터 출력 제어신호에 따라 상기 판독 클록(RCLK)에 동기 되어 상기 선입선출기(5)에서 출력되는 데이터를 출력해주는 출력 데이터 경로 제어부(4)와, 상기 데이터 기록 제어부(1)에서 얻어지는 데이터 기록 가능신호에 따라 상기 입력 데이터 경로 제어부(2)에서 출력되는 데이터를 기록하고, 상기 데이터 판독 제어부(3)에서 얻어지는 데이터 판독 가능신호에 따라 상기 저장한 데이터를 출력하며 내부 기록 및 판독 버퍼의 상태에 따라 풀 플래그(/FF)와 엠티 플래그(/EF)를 발생하는 선입선출기(5)로 구성되었다.As shown therein, data recording for generating an appropriate recordable signal WEN and a data output control signal by the externally transmitted write clock WCLK and the first-in-first-out FIFO generated by the full flag / FF. An input
이와 같이 구성된 종래 데이터 처리 속도 제어장치는, 데이터 기록 제어부(1)에서 기록 블록에서 입력되는 기록 클록(WCLK)과 선입선출기(5)에서 얻어지는 풀 플래그(/FF)신호에 따라 기록 가능신호(WEN)를 생성하여 선입선출기(5)에 제공해주게 되고, 아울러 기록 가능 시에는 데이터 출력 제어신호를 발생하여 입력 데이터 경로 제어부(2)에 전달해준다.The conventional data processing speed control device configured as described above is capable of recording a recordable signal according to the recording clock WCLK inputted from the recording block by the data
그러면 입력 데이터 경로 제어부(2)는 그 데이터 출력 제어신호에 따라 입력 데이터(Data In)의 출력 여부를 결정하게 되며, 데이터 출력시에는 상기 입력 데이터를 상기 선입선출기(5)에 전달해주게 된다.Then, the input
한편, 데이터 판독 제어부(3)는 데이터를 처리하는 블록으로부터 전달되는 판독 클록(RCLK)과 상기 선입선출기(5)에서 얻어지는 엠티 플래그(/EF)에 의해 판독 가능 신호(REN)를 발생하여 상기 선입선출기(5)에 전달해주며, 동시에 출력 데이터 경로 제어부(4)에 데이터 출력 제어신호를 전달해주게 된다.On the other hand, the data read
이에 따라 출력 데이터 경로 제어부(4)는 상기 선입선출기(5)에서 출력되는 데이터를 후단의 상기 데이터 처리 블록에 전달해주게 된다.Accordingly, the output data
한편, 선입선출기(5)는 상기 데이터 기록 제어부(1)에서 얻어지는 기록 가능신호(WEN)와 상기 데이터 판독 제어부(3)에서 얻어지는 판독 가능신호(REN)에 따라 입력 데이터를 기록하거나 그 기록된 데이터를 출력하는 동작을 수행하게 되는데, 이때 데이터를 입력 블록과 데이터를 처리하는 볼록간의 데이터 처리 속도가 달라지게 되면 내부 버퍼의 데이터 기록량과 데이터 출력량이 달라져 데이터 풀이라는 신호 또는 데이터 엠티라는 신호를 발생하게 된다.The first-in-first-outer 5 records the input data in accordance with the writeable signal WEN obtained from the data
즉, 상기 선입선출기(5)에 데이터를 기록하는 속도가 판독하는 속도보다 빠를 경우에 상기 선입선출기(5)는 풀 플래그(/FF)를 발생하여 상기 데이터 기록 제어부(1)에 전달해주게 되고, 이와 반대로 데이터를 기록하는 속도보다 데이터를 판독하는 속도가 더 빠른 경우에는 엠티 플래그(/EF)를 발생하여 상기 데이터 판독 제어부(3)에 전달해주게 된다.That is, when the speed of writing data to the first-in, first-out 5 is faster than the reading speed, the first-in, first-out 5 generates a full flag / FF to transfer to the data
이때 선입선출기(5)로부터 풀 플래그가 발생하면 선입선출기(5)에 데이터를 기록하는 블록은 상기 선입선출기(5)에 데이터를 기록하는 동작을 일시 정지하여 데이터가 소실되는 것을 방지해야되며, 상기 선입선출기(5)로부터 엠티 플래그가 발생되는 경우에는 상기 선입선출기(5)로부터 데이터를 판독하는 블록은 데이터 판독 동작을 일시 중단해야 한다.At this time, if a full flag is generated from the first-in-first-out (5), the block for recording data in the first-in-first-out (5) should temporarily stop the operation of writing data to the first-in-first-out (5) to prevent data loss. When the empty flag is generated from the first-in, first-out 5, the block for reading data from the first-in, first-out 5 must suspend the data reading operation.
따라서 상기 선입선출기(5)에서의 데이터 오류를 방지하기 위해서는 기록 또는 판독 블록에서 상기 선입선출기에서 발생되는 플래그를 참조하여 적절한 기록 및 판독 제어 회로를 구성해야 하는데, 이러한 제어 회로는 실제적으로 하드웨어 설계를 어렵게 만들고 복잡도를 증가시키는 문제점을 유발시킨다.Therefore, in order to prevent data errors in the first-in-first-out (5), it is necessary to configure an appropriate write and read control circuit with reference to the flag generated in the first-in-first-out in the write or read block. It causes problems that make the design difficult and increase the complexity.
이에 본 발명은 상기와 같은 종래 선입선출기를 이용한 데이터 처리 속도 제어장치에서 발생되는 제반 문제점을 해결하기 위해서 제안된 것으로,Accordingly, the present invention has been proposed to solve various problems generated in the data processing speed control apparatus using the conventional first-in, first-out.
본 발명은 데이터를 처리하는 두 볼록간에 선입선출기(FIFO)를 이용하여 데이터를 기록 및 판독할 경우 두 볼록간의 데이터 처리 능력에 맞게 미리 기록 클록과 판독 클록을 생성하여 선입선출의 기록 및 판독을 제어함으로써 두 볼록간의 데이터 처리 속도가 다를 경우에도 데이터의 기록 및 판독이 원할히 이루어지도록 한 데이터 처리 속도 변환방법을 제공하는 데 그 목적이 있다.In the present invention, when writing and reading data using a first-in first-out (FIFO) between two convex processing data, a write clock and a read clock are generated in advance according to the data processing capability between the two convex to record and read first-in-first-out. It is an object of the present invention to provide a data processing speed conversion method that allows data to be written and read smoothly even when the data processing speed between the two convexities is different.
상기와 같은 목적을 달성하기 위한 본 발명(방법)은,The present invention (method) for achieving the above object,
데이터를 기록 및 판독하는 선입선출기의 기록 클록과 판독 클록이 최소의 정수비를 갖는 기록 및 판독 최소 정수 값을 산출하는 단계와;Calculating a write and read minimum integer value having a minimum integer ratio between the write clock and the read clock of the first-in, first-out machine that writes and reads data;
상기 산출한 기록 및 판독 최소 정수 값에 시스템에 맞게 회로 제어가 편리한 적절한 값을 고려하여 최종 기록 제어값을 산출하는 단계와;Calculating a final write control value in consideration of an appropriate value for which circuit control is convenient for the system to the calculated write and read minimum integer values;
상기 기록 제어값 산출후 데이터를 기록하는 기록 블록과 그 기록된 데이터를 판독하는 판독 블록간의 데이터 처리 속도를 비교하여 그 대소관계에 따라 상기 기록 제어값의 인에이블 및 디스에이블 시간을 콘트롤하는 단계로 이루어진다.Calculating the write control value and comparing the data processing speed between the write block for recording the data and the read block for reading the recorded data and controlling the enable and disable time of the write control value according to the magnitude relationship; Is done.
상기에서, 데이터 처리 속도 비교후 기록 속도가 판독 속도보다 클 경우에는 판독 클록만큼 기록을 인에이블 시키고 그 나머지 기록 타임은 디스에이블 시키며, 상기 기록 속도가 판독 속도보다 작을 경우에는 기록 클록만큼 기록을 한후 남는 판독 클록만큼 기록을 디스에이블 시키는 것을 특징으로 한다.In the above, if the write speed is greater than the read speed after the data processing speed comparison, the write is enabled by the read clock and the remaining write time is disabled. If the write speed is less than the read speed, the write clock is written. It is characterized by disabling the recording as much as the remaining read clock.
도 1 은 종래 FIFO를 이용한 데이터 처리 속도 제어 장치의 일예도,1 is an example of a data processing speed control apparatus using a conventional FIFO;
도 2 는 본 발명이 적용되는 FIFO를 이용한 데이터 처리 속도 변환장치 블록 구성도,2 is a block diagram of a data processing speed converter using a FIFO to which the present invention is applied;
도 3 은 본 발명에서 데이터 처리 속도 변환시 각부의 입출력 타이밍도로서,3 is an input / output timing diagram of each unit at the time of converting data processing speed in the present invention.
(a)는 기록 클록이 판독 클록보다 클 경우의 각부 입출력 타이밍도이고,(a) is a part input / output timing chart when the write clock is larger than the read clock,
(b)는 판독 클록이 기록 클록보다 클 경우의 각부 입출력 타이밍도이다.(b) is an input / output timing chart of each part when the read clock is larger than the write clock.
도 4 는 본 발명에 의한 데이터 처리 속도 변환방법을 보인 제어 흐름도.4 is a control flowchart showing a data processing speed conversion method according to the present invention;
<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for main parts of the drawings>
10:데이터 기록 제어부 20:입력 데이터 경로 제어부10: data recording control unit 20: input data path control unit
30:데이터 판독 제어부 40:출력 데이터 경로 제어부30: data reading control part 40: output data path control part
50:선입선출기50: first-in, first-out machine
이하, 본 발명의 바람직한 실시예를 첨부한 도면에 의거 상세히 설명하면 다음과 같다.Hereinafter, with reference to the accompanying drawings, preferred embodiments of the present invention will be described in detail.
도 2는 본 발명이 적용되는 FIFO를 이용한 데이터 처리 속도 변환장치의 블록 구성도이다.2 is a block diagram of a data processing rate converting apparatus using a FIFO to which the present invention is applied.
이에 도시된 바와 같이, 데이터를 FIFO에 기록하는 기록 블록에서 전달되는 기록 클록(WCLK)과 상기 FIFO에 기록된 데이터를 판독하는 판독 블록에서 얻어지는 판독 클럭을 비교하여 그 대소 관계에 따라 기록 가능신호(WEN)를 콘트롤하는 데이터 기록 제어부(10)와, 상기 데이터 기록 제어부(10)에서 발생되는 데이터 출력 제어신호에 의해 상기 외부에서 전달되는 기록 클록(WCLK)에 동기 되어 입력되는 데이터의 출력을 제어하는 입력 데이터 경로 제어부(20)와, FIFO에 기록된 데이터를 판독하는 판독 블록에서 전달되는 판독 클록(RCLK)에 따라 판독 가능신호(REN)를 발생함과 동시에 데이터 출력 제어신호를 발생하는 데이터 판독 제어부(30)와, 상기 데이터 판독 제어부(30)에서 발생되는 데이터 출력 제어신호에 따라 상기 판독 클록(RCLK)에 동기 되어 상기 선입선출기(50)에서 출력되는 데이터를 출력해주는 출력 데이터 경로 제어부(40)와, 상기 데이터 기록 제어부(10)에서 얻어지는 데이터 기록 가능신호에 따라 상기 입력 데이터 경로 제어부(20)에서 출력되는 데이터를 기록하고, 상기 데이터 판독 제어부(30)에서 얻어지는 데이터 판독 가능신호에 따라 상기 저장한 데이터를 출력하는 선입선출기(50)로 구성되었다.As shown in the drawing, the write clock WCLK transferred from the write block for writing data to the FIFO and the read clock obtained from the read block for reading the data written to the FIFO are compared, and the write enable signal ( A data
첨부한 도면 도 4는 본 발명에 의한 데이터 처리 속도 변환방법을 보인 제어 흐름도이다.4 is a control flowchart illustrating a data processing speed conversion method according to the present invention.
이에 도시된 바와 같이, 선입선출기의 기록 클록과 판독 클록이 최소의 정수비를 갖는 최소 정수 값(x, y)을 산출하는 단계와; 상기 기록 클록과 판독 클록의 대소 관계를 비교하는 단계와; 상기 기록 클록의 속도가 상기 판독 클록의 속도보다 빠를 경우 데이터 기록시 판독 클록만큼 기록을 하고 남는 기록 시간만큼 기록을 디스에이블시키는 단계와; 상기 기록 클록의 속도가 상기 판독 클록의 속도보다 늦을 경우 기록 클록만큼 기록을 하고 남는 판독 클록만큼 기록을 디스에이블 시키는 단계로 이루어진다.Calculating a minimum integer value (x, y) having a minimum integer ratio between the write clock and the read clock of the first-in, first-out, as shown therein; Comparing the magnitude relationship between the write clock and read clock; If the speed of the write clock is faster than the speed of the read clock, writing as much as the read clock when writing data and disabling recording for the remaining write time; When the speed of the write clock is slower than the speed of the read clock, recording is performed by a write clock, and the write is disabled by the remaining read clock.
이와 같이 이루어지는 본 발명에 의한 데이터 처리 속도 변환방법을 첨부한 도면 도 1 내지 도 4에 의거 상세히 설명하면 다음과 같다.Referring to Figures 1 to 4 attached to the data processing speed conversion method according to the present invention made as described above in detail as follows.
먼저, 데이터 기록 제어부(10)는 클리어 신호에 의해 초기화된 상태에서, 기록 클록(WCLK)이 입력되면 선입선출기(50)에 기록된 데이터를 판독하는 데이터 판독 블록에서 얻어지는 판독 클록(RCLK)과의 최소의 정수 비를 갖는 값을 구한다. 즉, 기록 클록을 fin, 판독 클록을 fout, 그리고 각각의 최소 정수 값을 x, y라고 하면 아래와 같은 수식을 얻을 수 있다.First, the data
fin : fout = x : y ........(1)fin: fout = x: y ........ (1)
다음으로, 상기에서 구한 최소 정수 값 x, y를 해당 시스템에 적용할 때 회로 제어가 편리한 적절한 값인가를 고려하여, 기록 클록의 속도와 판독 클록의 대소 관계에 따라 최종 값 X, Y를 구하게 된다.Next, the final values X and Y are determined according to the magnitude of the write clock speed and the read clock, considering whether the minimum integer values x and y obtained above are appropriate values that are convenient for circuit control when applying the system. .
이때 X와 Y는 다음과 같이 표현된다.X and Y are expressed as follows.
X = Y + N, fin > fout ......(2)X = Y + N, fin> fout ...... (2)
Y = X + N, fin < fout ......(3).Y = X + N, fin <fout ...... (3).
상기에서, N은 기록 클록과 판독 클록의 대소 관계시 남게되는 클록을 뜻하는 임의의 정수이다.In the above, N is an arbitrary integer meaning the clock remaining in the magnitude relationship between the write clock and the read clock.
즉, 동일한 시간 동안 판독 클록이 Y 개의 데이터를 읽어낼 동안 기록 클록은 X 개의 데이터를 선입선출기(50)에 기록함을 뜻한다.That is, while the read clock reads Y data for the same time, the write clock means writes X data to the first-in-first-
여기서 수식(2)의 fin > fout일 경우는 선입선출기(2)에 데이터를 기록할 때 Y 개의 유효 데이터를 기록하고, N개의 더미 클록동안 기록 동작을 중지하고, 선입선출기(50)에서 데이터를 읽어낼 때 쓰기 시점보다 1클록 이후에 읽기를 시작하면 다른 제어 회로가 필요치 않고 계속해서 데이터를 판독하여도 풀 플래그와 엠티 플래그가 발생하지 않게 된다.In this case, when fin> fout of Equation (2), Y valid data is recorded when data is written to the first-in, first-out, and the write operation is stopped for N dummy clocks. When reading data, if the reading starts one clock later than the writing time point, no other control circuit is needed and the full and empty flags are not generated even if the data is read continuously.
첨부한 도면 도 3a는 상기와 같이 기록 클록이 판독 클록보다 클 경우의 첨부한 도면 도2의 각부 입출력 신호 타이밍을 나타낸 것이다.FIG. 3A shows timings of input / output signals of each part of FIG. 2 when the write clock is larger than the read clock as described above.
여기서, (a')는 클리어 신호이고, (b')는 데이터 기록 제어부(10)에 인가되는 기록 클록(WCLK)이고, (c')는 입력 데이터의 타이밍이며, (d')는 상기 데이터 기록 제어부(10)에서 발생하는 기록 가능신호(WEN)의 타이밍이며, (e')는 상기 데이터 판독 제어부(30)에 인가되는 판독 클록(RCLK)이며, (f')는 상기 출력 데이터 경로 제어부(40)에서 출력되는 데이터의 타이밍이며, (g')는 상기 데이터 판독 제어부(30)에서 발생되는 판독 가능신호(REN)의 타이밍이다.Here, (a ') is a clear signal, (b') is a write clock WCLK applied to the data recording
한편, 수식(3)의 fin < fout의 경우는 최소 X개의 유효 데이터를 선입선출기(50)에 기록한 후 판독시 X개의 유효 데이터를 읽고 N개의 클록 분 동안 읽기를 중지하면 마찬가지로 선입선출기(50)의 풀 플래그와 엠티 플래그가 발생 없이 효과적인 기록 및 판독 제어가 가능해진다.On the other hand, in the case of fin <fout of Equation (3), if at least X valid data is written to the first-in, first-out, the first-in-first-out (50) data is read and the reading is stopped for N clock minutes. An effective write and read control can be performed without generating the full flag and empty flag of 50).
첨부한 도면 도 3b는 상기와 같이 기록 클록이 판독 클록보다 늦을 경우의 첨부한 도면 도2의 각부 입출력 신호 타이밍을 나타낸 것이다.FIG. 3B shows timings of the input / output signals of each part of FIG. 2 when the write clock is later than the read clock as described above.
여기서, (a")는 클리어 신호이고, (b")는 데이터 기록 제어부(10)에 인가되는 기록 클록(WCLK)이고, (c")는 입력 데이터의 타이밍이며, (d")는 상기 데이터 기록 제어부(10)에서 발생하는 기록 가능신호(WEN)의 타이밍이며, (e")는 상기 데이터 판독 제어부(30)에 인가되는 판독 클록(RCLK)이며, (f")는 상기 출력 데이터 경로 제어부(40)에서 출력되는 데이터의 타이밍이며, (g")는 상기 데이터 판독 제어부(30)에서 발생되는 판독 가능신호(REN)의 타이밍이다.Here, (a ") is a clear signal, (b") is a write clock WCLK applied to the data recording
이러한 본 발명의 데이터 처리 속도 변환방법을 첨부한 도면 도2와 같은 시스템에 적용할 경우의 동작은 다음과 같다.The operation in the case of applying the data processing speed conversion method of the present invention to the system shown in FIG. 2 is as follows.
먼저, 데이터 기록 제어부(10)는 상기 식(1) - (3)에 의해 구해진 X, Y값에 따라 기록 가능신호(WEN)를 발생하여 선입선출기(50)에 전달해주게 되며, 입력 데이터 경로 제어부(20)는 상기 기록 가능신호에 의해 입력 데이터를 선입선출기(50)에 전달해주게 된다.First, the data recording
여기서 상기 선입선출기(50)에 입력되는 데이터는 fin > fout 또는 fin < fout의 조건에 따라 그 타이밍이 제어된다.Here, the timing of the data input to the first-in, first-out (50) is controlled according to the condition of fin> fout or fin <fout.
아울러 데이터 판독 제어부(30)도 상기 식(1) - 식(3)에 의해 구해진 X, Y값에 따라 판독 가능신호(REN)를 생성하여 상기 선입선출기(50)에 전달해 줌으로써 선입선출기(50)는 풀 플래그와 엠티 플래그를 발생하지 않고도 데이터의 기록 및 판독을 원할히 수행하게 되는 것이다.In addition, the data read
실제적으로 데이터 처리 속도 변환이 필요한 시스템에 본 발명에 의한 데이터 처리 속도 변환을 적용하면 다음과 같다.If the data processing rate conversion according to the present invention is applied to a system that actually needs a data processing rate conversion is as follows.
HDTV의 경우 프레임은 주사선당 2200화소로 구성된 1125개의 주사선으로 구성되고, 초당 프레임의 수는 30프레임이다.In the case of HDTV, a frame consists of 1125 scan lines of 2200 pixels per scan line, and the number of frames per second is 30 frames.
따라서 HDTV의 시스템 속도는 74.25MHz이다. 그러나 하드웨어의 부담을 줄이기 위해 움직임 보상/추정, 가변길이 부호기/복호기, DCT/IDCT, 양자화기/역양자화기 등의 영상 신호 처리 알고리듬 블록에서는 이 중 수직 동기 신호와 수평 동기 신호를 위한 영역을 제외한 유효 영상 데이터인 1088개의 주사선과 주사선당 1920 화소만을 사용한 33MHz만을 사용한다.Thus, the HDTV system speed is 74.25 MHz. However, in order to reduce the burden on the hardware, video signal processing algorithm blocks such as motion compensation / estimation, variable length encoder / decoder, DCT / IDCT, quantizer / dequantizer, etc. Only 1088 scan lines which are effective image data and 33 MHz using only 1920 pixels per scan line are used.
즉, 영상 입출력부와 신호 처리부 사이에 데이터 처리 속도 변환을 위한 선입선출기가 요구되어 진다.That is, a first-in first-out machine for converting data processing speed is required between the image input / output unit and the signal processor.
이 선입선출기는 부호기의 경우는 기록 클록이 37.125MHz, 판독 클록이 33MHz이고, 복호기의 경우는 기록 클록이 33MHz이고 판독 클록이 37.125MHz가 된다.In the first-in, first-out case, the write clock is 37.125 MHz, the read clock is 33 MHz, and in the decoder, the write clock is 33 MHz and the read clock is 37.125 MHz.
따라서 본 발명에 의한 최소 정수 값을 구하는 식(1)에 이를 대입하면,Therefore, substituting this into Equation (1) to obtain the minimum integer value according to the present invention,
37.125MHz : 33MHz = 144 : 128이된다.37.125 MHz: 33 MHz = 144: 128.
즉, 부호기의 경우는 FIFO에 데이터를 쓸 때 128 클록분의 유효 데이터와 16클록 분의 더미 데이터를 쓰게 되면 읽어낼때는 쓰는 시점보다 최소 1클록 이후에만 읽어내게 되면 계속해서 읽어도 풀이나 엠티가 발생하지 않게 된다.That is, in the case of the encoder, when writing data to the FIFO, if 128 data of valid data and 16 clocks of dummy data are written, at least one clock after the reading is read, the pool or empty can be read. It does not occur.
또한 복호기의 경우도 선입선출기에 먼저 128클록 분의 데이터를 쓴 후 128클록의 유효 데이터를 읽고 16클록 동안 읽기를 중지하는 동작을 계속해서 반복하기만 하면 엠티와 풀의 발생은 없게 된다.In the case of the decoder, there is no occurrence of empty and pool by simply writing 128 clocks of data to the first-in, first-out, then valid data of 128 clocks and stopping reading for 16 clocks.
이렇게 되면 데이터 처리 속도 변환부의 전 또는 후에 위치하는 프레임 메모리부 등의 회로 제어가 풀 플래그와 엠티 플래그를 사용할 때보다 훨씬 간단하게 구현된다.In this way, circuit control such as a frame memory unit located before or after the data processing rate conversion unit is much simpler than when using the full flag and the empty flag.
이상에서 상술한 바와 같이 본 발명은, 데이터를 기록하는 블록과 데이터를 판독하는 블록과의 데이터 처리 속도가 다를 경우, 기록 클록의 속도와 판독 클록의 속도의 대소 관계를 비교하여 기록 클록의 타이밍을 적절히 조절해 줌으로써 선입선출기에서 풀 플래그와 엠티 플래그를 발생하지 않고도 데이터의 선입선출이 원할해지는 효과가 있다.As described above, in the present invention, when the data processing speed between the block for writing data and the block for reading data is different, the timing of the write clock is compared by comparing the magnitude relationship between the write clock speed and the read clock speed. By adjusting appropriately, the first-in, first-out of data can be smoothly performed without generating a full flag and an empty flag in the first-in first-out machine.
또한, 선입선출기에서 발생하는 풀 플래그와 엠티 플래그를 처리하는 주변 회로를 설계할 필요가 없으므로 전체적인 시스템 구현이 간단해지는 이점도 있다.In addition, since there is no need to design a peripheral circuit for processing the full flag and the empty flag generated in the first-in, first-out, the overall system implementation is simplified.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970066040A KR100284564B1 (en) | 1997-12-04 | 1997-12-04 | How to convert data speed |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970066040A KR100284564B1 (en) | 1997-12-04 | 1997-12-04 | How to convert data speed |
Publications (2)
Publication Number | Publication Date |
---|---|
KR19990047585A KR19990047585A (en) | 1999-07-05 |
KR100284564B1 true KR100284564B1 (en) | 2001-03-15 |
Family
ID=66088633
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019970066040A KR100284564B1 (en) | 1997-12-04 | 1997-12-04 | How to convert data speed |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100284564B1 (en) |
-
1997
- 1997-12-04 KR KR1019970066040A patent/KR100284564B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR19990047585A (en) | 1999-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3326669B2 (en) | Data playback device | |
US5805300A (en) | Image processing apparatus | |
JPH0696574A (en) | Fifo memory controller | |
US5793384A (en) | Image decoder with bus arbitration circuit | |
JPH05258556A (en) | Adaptive fifo memory controller | |
JPH10149618A (en) | Data transfer method, data transfer device and medium | |
KR100284564B1 (en) | How to convert data speed | |
JPH1198099A (en) | Method and device for multiplexing data | |
US20010020951A1 (en) | Apparatus and method for transferring video data | |
KR0122745B1 (en) | Moving picture decoding system having improved memory architecture | |
JP3136634B2 (en) | Video processing circuit | |
KR101025140B1 (en) | Asynchronous jitter reduction technique | |
JP2530728B2 (en) | Decryption device | |
JP3624457B2 (en) | Image signal encoding apparatus and image signal decoding apparatus | |
KR970003804B1 (en) | Apparatus for controlling the memory structure in moving picture signal processor | |
JP2983372B2 (en) | Image reproducing apparatus and method | |
JP2752806B2 (en) | Cell phase transfer circuit | |
JP2733140B2 (en) | FIFO memory control circuit | |
JPH0251987A (en) | Decoder for picture signal | |
JPH0339438B2 (en) | ||
JPH0447892A (en) | User data multiplexing system for picture coder | |
JPS63272191A (en) | Time base variance correcting circuit | |
KR970001852Y1 (en) | Underflow protect circuit in variable code decoder | |
KR100223050B1 (en) | Variable length encoder of header information for mpeg-2 image compression | |
KR950013876B1 (en) | Variable coder error processur apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
LAPS | Lapse due to unpaid annual fee |