KR100316529B1 - Packet identification compare apparatus and method for mpeg-2 system - Google Patents

Packet identification compare apparatus and method for mpeg-2 system Download PDF

Info

Publication number
KR100316529B1
KR100316529B1 KR1019990064698A KR19990064698A KR100316529B1 KR 100316529 B1 KR100316529 B1 KR 100316529B1 KR 1019990064698 A KR1019990064698 A KR 1019990064698A KR 19990064698 A KR19990064698 A KR 19990064698A KR 100316529 B1 KR100316529 B1 KR 100316529B1
Authority
KR
South Korea
Prior art keywords
current
pid
bits
register
value
Prior art date
Application number
KR1019990064698A
Other languages
Korean (ko)
Other versions
KR20010064495A (en
Inventor
민경파
Original Assignee
박종섭
주식회사 하이닉스반도체
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 박종섭, 주식회사 하이닉스반도체 filed Critical 박종섭
Priority to KR1019990064698A priority Critical patent/KR100316529B1/en
Publication of KR20010064495A publication Critical patent/KR20010064495A/en
Application granted granted Critical
Publication of KR100316529B1 publication Critical patent/KR100316529B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

본 발명은 엠펙2 시스템의 피아이디 비교장치 및 방법에 관한 것으로, 종래에는 여러 프로그램을 분리할시 피아이디가 한개의 프로그램을 디코딩할 때와 비교하여 디코더에서 많은 피아이디 레지스터가 필요하게 됨과 아울러 이를 모두 비교하는데 시간이 많이 걸리는 문제점이 있었다. 따라서, 본 발명은 9비트로 이루어진 제1 피아이디를 저장하는 제1 피아이디레지스터와, 16비트로 이루어진 제2 피아이디를 저장하는 제2 피아이디레지스터와; 상기 커런트피아이디의 후반 8비트를 제1 커런트 피아이디로 입력받아 해당되는 상기 제1 피아이디레지스터의 제1 피아이디값을 읽어들여 그 제1 커런트 피아이디와 비교하는 제1 피아이디비교부와; 상기 제1 피아이디비교부로부터 제1 피아이디매칭신호가 발생되면 그 때의 어드레스에 해당되는 제2 피아이디를 일어들인후, 상기 커런트 피아디의 전반 4비트를 제2 커런트 피아이디로 입력받아 그 값에 해당되는 상기 제2 피아이디의 비트값을 조사하여 그에 따라 제2 피아이디매칭신호를 출력하는 제2 피아이디매칭비트조사부를 포함하여 구성함으로써 적은 레지스터 영역으로 비교해야 할 많은 피아이디를 저장하여 활용할 수 있는 효과가 있다.The present invention relates to an apparatus and method for comparing PIDs of an MPEG-2 system. In the related art, when a plurality of programs are separated, a plurality of PID registers are required in a decoder as compared to when a PD decodes a program. There was a problem that it takes a long time to compare all. Accordingly, the present invention provides a first PD register for storing a first PD of 9 bits, and a second PD register for storing a second PD of 16 bits; A first PD comparison unit which receives the second 8 bits of the current PID as a first current PD and reads a first PD value of the first PD register corresponding to the first current PD and compares it with the first current PD; ; When the first PD matching signal is generated from the first PD comparison unit, the second PD corresponding to the address is raised, and the first four bits of the current piad are input to the second current PD. Including a second PID matching bit checker for checking the bit value of the second PID corresponding to the value and outputting the second PD matching signal, the number of PIDs to be compared in a small register area There is an effect that can be saved and utilized.

Description

엠펙2 시스템의 피아이디 비교장치 및 방법{PACKET IDENTIFICATION COMPARE APPARATUS AND METHOD FOR MPEG-2 SYSTEM}ID comparison system and method of MPEG-2 system {PACKET IDENTIFICATION COMPARE APPARATUS AND METHOD FOR MPEG-2 SYSTEM}

본 발명은 엠펙2 시스템의 피아이디 비교장치 및 방법에 관한 것으로, 특히 한개의 엠펙2 시스템의 디먹스에서 멀티 디코딩시 입력되는 피아이디를 간단하고 효율적으로 비교하여 디코더의 성능을 향상시킬 수 있도록 한 엠펙2 시스템의 피아이디 비교장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for comparing PIDs of an MPEG2 system. In particular, the present invention relates to a method for comparing MPEGs input during multi-decoding in a demux of an MPEG2 system to improve the performance of a decoder. The present invention relates to a PID comparison apparatus and method for an MPEG-2 system.

일반적으로, 한개의 엠펙2 시스템의 디먹스를 이용하여 한개의 채널에서 여러 프로그램을 분리해 내거나 여러 채널의 프로그램을 분리할 때, 오디오,비디오, 부가데이터, PSI,PSIP를 검출하기 위한 피아이디가 한개의 프로그램을 디코딩할 때와 비교하여 산술급수적으로 증가하게 되는데, 이와 같은 종래 기술을 첨부한 도면을 참조하여 상세히 설명한다.Generally, PID for detecting audio, video, supplementary data, PSI, and PSIP is used when separating multiple programs from one channel or separating multiple channels using a demux of one MPEG2 system. Compared to the decoding of one program, the arithmetic order is increased, which will be described in detail with reference to the accompanying drawings.

도1은 종래 엠펙2 시스템의 피아이디 비교장치에 대한 구성을 보인 블록도로서, 이에 도시된 바와같이 전송패킷을 입력받아 그 전송패킷에 대한 동기를 검출함과 아울러 피아이디를 추출하는 동기검출 및 피아이디추출부(1)와; 상기 동기검출 및 피아이디추출부(1)로부터 피아이디신호를 입력받아 그에 해당되는 어드레스의 데이터와 커런트피아이디를 비교하는 피아이디비교부(2)와; 상기 피아이디비교부 (2)의 비교신호를 입력받아 그에 따른 피아이디매치신호 또는 피아이디미스매치신호를 상기 동기검출 및 피아이디추출부(1)로 출력하는 제어부(3)와; 상기 동기검출 및 피아이디추출부(1)로부터 전송패킷을 입력받아 이를 분석하여 오디오 및 비디오데이터로 분리하여 출력하는 파서(4)와; 상기 파서(4)의 오디오 데이터를 디코딩하여 출력하는 오디오디코더(6)와; 상기 파서(4)의 비디오 데이터를 디코딩하여 출력하는 비디오디코더(5)로 구성되며, 이와같이 구성한 종래 장치의 동작을 설명한다.1 is a block diagram showing a structure of a PID comparison device of the conventional MPEG-2 system. As shown in FIG. 1, a synchronization packet is detected by receiving a transmission packet and detecting a synchronization with the transmission packet, and extracting an ID. ID extracting unit (1); A PID comparison unit (2) which receives the PID signal from the synchronization detection and ID extraction unit (1) and compares the data of the corresponding address with the current video; A control unit 3 which receives the comparison signal of the ID comparing unit 2 and outputs the ID matching signal or the ID matching signal to the synchronous detection and ID extracting unit 1; A parser (4) which receives the transmission packet from the synchronous detection and ID extraction unit (1), analyzes it, and separates it into audio and video data and outputs it; An audio decoder 6 for decoding and outputting audio data of the parser 4; The video decoder 5 which decodes and outputs the video data of the parser 4 will be described.

먼저, 엠펙2 스탠다드는 여러 소스의 디지탈 정보르 패킷에 담아서 전송하는 규격을 제시하는데, 이 전송패킷의 구조는 도3과 같이 이루어지며, 모든 비디오,오디오,부가데이터는 상기 전송패킷의 형태로 전송된다.First, MPEG-2 Standard proposes a standard for transmitting a packet of digital information from several sources. The structure of the transmission packet is shown in FIG. 3, and all video, audio, and additional data are transmitted in the form of the transmission packet. do.

이때, 각각의 전송패킷은 피아이디 13비트로 구별하게 되고, 엠펙에서 제안하는 한개의 피지컬 채널에 여러 프로그램을 섞어서 전송할 수 있는데, 여기서 각각의 프로그램의 오디오,비디오,부가데이터등은 다른 피아이디값을 사용하여야 한다.At this time, each transmission packet is distinguished by PID 13 bits, and it is possible to mix and transmit several programs in one physical channel proposed by MPEG, where the audio, video, and additional data of each program have different PID values. Should be used.

우선, 피아이디검출 및 피아이디추출부(1)가 전송패킷을 입력받아 그 전송패킷에 대한 동기를 검출함과 아울러 피아이디를 추출하고, 피아이디비교부((2)는 상기 동기검출 및 피아이디추출부(1)로부터 피아이디신호를 입력받아 그에 해당되는 어드레스의 데이터와 커런트피아이디를 비교한다.First, the ID detection and ID extraction unit 1 receives a transmission packet, detects synchronization with the transmission packet, extracts an ID, and the PID comparison unit (2) detects and synchronizes the synchronization packet. The ID extractor 1 receives the PD signal and compares the data of the address with the current username.

이후, 제어부(3)는 상기 피아이디비교부(2)의 비교신호를 입력받아 그에 따른 피아이디매치신호 또는 피아이디미스매치신호를 상기 동기검출 및 피아이디추출부(1)로 출력하여 상기 동기검출 및 피아이디추출부(1)로부터 파서(4)로의 전송패킷 전송을 제어한다.Thereafter, the control unit 3 receives the comparison signal of the ID comparing unit 2 and outputs the ID matching signal or the ID matching signal according to the synchronization detecting and ID extracting unit 1 to perform the synchronization. The transmission and transmission of the transmission packet from the detection and extraction unit 1 to the parser 4 are controlled.

이때, 파서(4)는 피아이디매치신호에 의해 상기 동기검출 및 피아이디추출부 (1)로부터 전송패킷을 입력받아 이를 분석하여 오디오 및 비디오데이터로 분리하여 출력하고, 오디오디코더(6)는 상기 파서(4)의 오디오 데이터를 디코딩하여 출력하며, 또한 비디오디코더(5)도 상기 파서(4)의 비디오 데이터를 디코딩하여 출력한다.At this time, the parser 4 receives the transmission packet from the synchronous detection and the ID extracting unit 1 by the ID match signal, analyzes it, outputs the audio and video data separately, and the audio decoder 6 outputs the The audio data of the parser 4 is decoded and output, and the video decoder 5 also decodes and outputs the video data of the parser 4.

보다 상세하게 도2 및 도4를 참조하여 설명하면, 우선 피아이디레지스터(7)를 셋팅한후 입력되는 전송패킷의 전송 아이디를 검출한 다음, 피아이디레지스터 해당어드레스의 데이터값을 읽어온다.(처음에는 어드레스가 '0'이다)2 and 4, first, after setting the PID register 7, the transmission ID of the input transmission packet is detected, and then the data value of the ID register corresponding address is read. Initially the address is '0')

그 다음, 상기 피아이디레지스터(7)로부터 읽어온 13비트의 피아이디와 커런트 피아이디를 비교하여, 그 비교결과가 미스매칭이면 어드레스를 증가시켜 상기와 같은 비교를 반복수행한다.Next, 13-bit PIDs and current PDs read from the PD register 7 are compared, and if the comparison result is mismatching, the address is increased and the above comparison is repeated.

그래서, 마지막 어드레스에 해당되는 피아이디값이 커런트 피아이디와 일치하지 않으면 피아이디미스매칭신호(mismatch)를 발생한다.Thus, if the ID value corresponding to the last address does not match the current PID, a PID mismatch signal is generated.

반대로, 상기 피아이디레지스터(7)로부터 읽어온 13비트의 피아이디와 커런트 피아이디를 비교하여, 그 비교결과가 매칭이면 그 전송패킷을 받아들일 수 있도록 피아이디매칭신호(PID match)를 발생한다.On the contrary, a 13-bit PID and a current PD are read from the PD register 7, and if the comparison result is matched, a PID matching signal is generated to accept the transmission packet. .

그러나, 상기와 같은 종래 기술은 여러 프로그램을 분리할시 피아이디가 한개의 프로그램을 디코딩할 때와 비교하여 디코더에서 많은 피아이디 레지스터가 필요하게 됨과 아울러 이를 모두 비교하는데 시간이 많이 걸리는 문제점이 있었다.However, the prior art as described above has a problem in that a plurality of PID registers are required in the decoder as compared to when a PD decodes a single program when separating several programs, and it takes a long time to compare them all.

따라서, 상기와 같은 문제점을 감안하여 창안한 본 발명은 한개의 엠펙2 시스템의 디먹스에서 멀티 디코딩시 입력되는 피아이디를 간단하고 효율적으로 비교하여 디코더의 성능을 향상시킬 수 있도록 한 엠펙2 시스템의 피아이디 비교장치 및 방법을 제공함에 그 목적이 있다.Accordingly, the present invention devised in view of the above-described problems provides an MPEG-2 system that can improve the performance of a decoder by simply and efficiently comparing the PIDs input during multi-decoding in a demux of one MPEG-2 system. It is an object of the present invention to provide a PID comparison apparatus and method.

도1은 종래 엠펙2 시스템의 개략적인 구성을 보인 블록도.1 is a block diagram showing a schematic configuration of a conventional MPEG-2 system.

도2는 도1에 있어서, 피아이디비교장치의 구성을 보인 개략도.FIG. 2 is a schematic view showing the structure of a PID comparison device in FIG. 1; FIG.

도3은 도1에 있어서, 전송패킷의 개략적인 모습을 보인 예시도.3 is an exemplary view showing a schematic view of a transmission packet in FIG.

도4는 종래 엠펙2 시스템의 피아이디 비교방법에 대한 동작흐름도.Figure 4 is a flow chart for the PID comparison method of the conventional MPEG2 system.

도5는 본 발명 엠펙2 시스템의 피아이디 비교장치에 대한 구성을 보인 블록도.Figure 5 is a block diagram showing the configuration of the PID comparison apparatus of the present invention MPEG2 system.

도6은 본 발명 엠펙2 시스템의 피아이디 비교방법에 대한 동작흐름도.Figure 6 is a flow chart for the PID comparison method of the present invention MPEG2 system.

도7은 도5에 있어서, 전송패킷의 피아이디 리스트를 보인도.FIG. 7 shows a list of IDs of transmission packets in FIG. 5; FIG.

도8은 도5에 있어서, 제1 피아이디레지스터의 데이터 저장을 보인 개략도.FIG. 8 is a schematic diagram showing data storage of the first PD register in FIG. 5; FIG.

도9는 도5에 있어서, 제2 피아이디레지스터의 데이터 저장을 보인 개략도.FIG. 9 is a schematic diagram showing data storage of a second PD register in FIG. 5; FIG.

도10은 전송패킷의 종류에 따른 피아이디의 정의를 보인 개략도.Figure 10 is a schematic diagram showing the definition of the password according to the type of transmission packet.

*****도면의 주요부분에 대한 부호의 설명********** Description of the symbols for the main parts of the drawings *****

100:제1 피아이디 비교부 200:제2 피아이디매칭비트조사부100: first PD comparison unit 200: second PD matching bit irradiation unit

300:제1 피아이디레지스터 400:제2 피아이디레지스터300: first PID register 400: second PID register

상기와 같은 목적을 달성하기 위한 본 발명은 9비트로 이루어진 제1 피아이디를 저장하는 제1 피아이디레지스터와, 16비트로 이루어진 제2 피아이디를 저장하는 제2 피아이디레지스터와; 상기 커런트피아이디의 후반 8비트를 제1 커런트 피아이디로 입력받아 해당되는 상기 제1 피아이디레지스터의 제1 피아이디값을 읽어들여 그 제1 커런트 피아이디와 비교하는 제1 피아이디비교부와; 상기 제1 피아이디비교부로부터 제1 피아이디매칭신호가 발생되면 그 때의 어드레스에 해당되는 제2 피아이디를 읽어들인후, 상기 커런트 피아디의 전반 4비트를 제2 커런트 피아이디로 입력받아 그 값에 해당되는 상기 제2 피아이디의 비트값을 조사하여 그에 따라 제2 피아이디매칭신호를 출력하는 제2 피아이디매칭비트조사부를 포함하여 구성한 것을 특징으로 한다.The present invention for achieving the above object includes a first PD register for storing the first PID of 9 bits, and a second PD register for storing the second PID of 16 bits; A first PD comparison unit which receives the second 8 bits of the current PID as a first current PD and reads a first PD value of the first PD register corresponding to the first current PD and compares it with the first current PD; ; When the first PD matching signal is generated from the first PD comparing unit, the second PD corresponding to the address is read, and the first four bits of the current piad are input to the second current PD. And a second PD matching bit irradiation unit for examining a bit value of the second PD corresponding to the value and outputting a second PD matching signal accordingly.

상기와 같은 목적을 달성하기 위한 본 발명은 제1,제2 피아이디 레지스터를 셋트시킨후 현재 입력되는 전송패킷의 커런트 피아이디가 검출되면 해당되는 제1 레지스터의 어드레스 데이터를 제1 피아이디값으로 읽어오는 제1 단계와; 상기 피아이디의 제1 커런트 피아이디와 상기 제1 단계의 제1 레지스터에서 읽어온 제1 피아이디를 비교하는 제2 단계와; 상기 제2 단계의 판단결과 제1 커런트 피아이디와 제1 피아이디가 일치하지 않고 마지막 어드레스가 아니면 상기 제2 단계를 반복하여 수행하고, 마지막 어드레스이면 피아이디 미스매칭신호를 발생한후 상기 제1 단계로 궤환하는 제3 단계와; 상기 제2 단계의 판단결과 제1 커런트 피아이디와 제1 피아이디가 일치하면 그에 해당되는 어드레스의 제2 피아이디값을 제2 레지스터로부터 읽어오는 제4 단계와; 상기 제1 커런트 피아이디의 전반부인 제2 커런트 피아이디의 값에 해당되는 제2 피아이디의 비트값을 체크하는 제5 단계와; 상기 제5 단계의 체크결과 제2 피아이디의 비트값이 '0'이면 피아이디 미스 매칭신호를 출력하고, 그 제2 피아이디의 비트값이 '1'이면 피아이디 매칭신호를 발생하는 제6 단계로 수행함을 특징으로 한다.According to the present invention for achieving the above object, if the current PID of the currently transmitted transmission packet is detected after setting the first and second PD registers, the address data of the corresponding first register is set as the first PD value. A first step of reading; A second step of comparing the first current PD of the PD with the first PD read from the first register of the first stage; As a result of the determination of the second step, if the first current PD and the first PD do not match and are not the last address, the second step is repeatedly performed. A third step of feeding back; A fourth step of reading a second PD value of an address corresponding to the first current PD and the first PD as a result of the determination of the second step; Checking a bit value of a second PD corresponding to a value of a second current PD that is a first half of the first current PD; A sixth result of outputting a PID miss matching signal when the bit value of the second PID is '0' and a bit matching signal of the second PD when the bit value of the second PD is '1' Characterized in performing as a step.

이하, 본 발명에 의한 엠펙2 시스템의 피아이디 비교장치 및 방법에 대한 작용과 효과를 첨부한 도면을 참조하여 상세히 설명한다.Hereinafter, with reference to the accompanying drawings, the operation and effects of the PID comparison apparatus and method of the MPEG-2 system according to the present invention will be described in detail.

도5는 본 발명 엠펙2 시스템의 피아이디 비교장치에 대한 구성을 보인 블록도로서, 이에 도시한 바와 같이 9비트로 이루어진 제1 피아이디(PID1)를 저장하는 제1 피아이디레지스터(300)와, 16비트로 이루어진 제2 피아이디를 저장하는 제2 피아이디레지스터(400)와; 상기 커런트 피아이디(Current_PID)의 후반 8비트를 제1 커런트 피아이디(Current_PID[12:4])로 입력받아 해당되는 상기 제1 피아이디레지스터 (300)의 제1 피아이디(PID1)값을 읽어들여 그 제1 커런트 피아이디 (Current_PID[12:4])와 비교하는 제1 피아이디비교부(100)와; 상기 제1 피아이디비교부(100)로부터 제1 피아이디매칭신호(match1)가 발생되면 그 때의 어드레스에 해당되는 제2 피아이디(PID2)를 읽어들인후, 상기 커런트 피아디(Current_PID)의 전반 4비트를 제2 커런트 피아이디(Current_PID[3:0])로 입력받아 그 값에 해당되는 상기 제2 피아이디(PID2)의 비트값을 조사하여 그에 따라 제2 피아이디매칭신호 (PID match)를 출력하는 제2 피아이디매칭비트조사부(200)를 포함하여 구성한다.FIG. 5 is a block diagram showing a configuration of an apparatus for comparing PIDs of the MPEG-2 system according to the present invention. As shown in FIG. 5, a first PID register 300 for storing a first PID (PID1) consisting of 9 bits and A second PD register 400 for storing a second PD having 16 bits; The second 8 bits of the current PID (Current_PID) are input to the first current PID (12: 4]) and the corresponding first PID (PID1) value of the first PID register 300 is read. A first PD comparison unit 100 for comparing with the first current PID (Current_PID [12: 4]); When the first PID matching signal match1 is generated from the first PD comparing unit 100, the second PD PID2 corresponding to the address is read, and then the current PID of current_PID is set. The first 4 bits are input to the second current PID (Current_PID [3: 0]), and the bit values of the second PID (PID2) corresponding to the value are examined, and accordingly, the second PID matching signal (PID match) It comprises a second ID matching bit irradiation unit 200 for outputting a).

도6은 본 발명 엠펙2 시스템의 피아이디 비교방법에 대한 동작흐름도로서, 이에 도시한 바와같이 제1,제2 피아이디 레지스터(300),(400)를 셋트시킨후 현재 입력되는 전송패킷의 커런트 피아이디(Current_PID)가 검출되면 해당되는 제1 레지스터(300)의 어드레스 데이터를 제1 피아이디(PID1)값으로 읽어오는 제1 단계와; 상기 피아이디의 제1 커런트 피아이디(Current_PID[12:4])와 상기 제1 단계의 제1 레지스터(300)에서 읽어온 제1 피아이디(PID1)를 비교하는 제2 단계와; 상기 제2 단계의 판단결과 제1 커런트 피아이디(Current_PID[12:4])와 제1 피아이디(PID1)가 일치하지 않고 마지막 어드레스가 아니면 상기 제2 단계를 반복하여 수행하고, 마지막 어드레스이면 피아이디 미스매칭신호(mismatch)를 발생한후 상기 제1 단계로 궤환하는 제3 단계와; 상기 제2 단계의 판단결과 제1 커런트 피아이디 (Cur rent_PID[12:4])와 제1 피아이디(PID1)가 일치하면 그에 해당되는 어드레스의 제2 피아이디(PID2)값을 제2 레지스터(400)로부터 읽어오는 제4 단계와; 상기 커런트 피아이디(Current_PID)의 전반부인 제2 커런트 피아이디(Current_PID[3:0])의 값에 해당되는 제2 피아이디(PID2)의 비트값을 체크하는 제5 단계와; 상기 제5 단계의 체크결과 제2 피아이디(PID2)의 비트값이 '0'이면 피아이디 미스 매칭신호(mismatch)를 출력하고, 그 제2 피아이디(PID2)의 비트값이 '1'이면 피아이디 매칭신호(PID match)를 발생하는 제6 단계로 이루어지며, 이와같은 본 발명의 동작을 설명한다.FIG. 6 is a flowchart illustrating a method of comparing PIDs of the MPEG-2 system according to the present invention. As shown in FIG. 6, currents of a transmission packet currently input after setting the first and second PID registers 300 and 400 are illustrated. A first step of reading address data of a corresponding first register 300 as a first PID value when a CUID is detected; A second step of comparing the first current PID (Current_PID [12: 4]) of the PD with the first PID (PID1) read from the first register (300) of the first step; As a result of the determination of the second step, if the first current PID (Current_PID [12: 4]) and the first PID (PID1) do not match and are not the last address, the second step is repeated. A third step of generating an ID mismatch signal and returning to the first step; As a result of the determination of the second step, when the first current PID (Cur rent_PID [12: 4]) and the first PID (PID1) coincide with each other, the second PID (PID2) value of the corresponding address is stored in the second register ( A fourth step of reading from 400); A fifth step of checking a bit value of a second PID (PID2) corresponding to a value of the second current PID (Current_PID [3: 0]), which is a first half of the current PID (Current_PID); If the bit value of the second PID (PID2) is '0' when the bit value of the second PID (PID2) is output, if the bit value of the second PID (PID2) is '1' The sixth step of generating a PID match signal will be described.

먼저, 제1 피아이디레지스터(300)와 제2 피아이디레지스터(400)를 셋트시키는데, 이때 상기 제1 피아디레지스터(300)는 도8과 같이 9비트로 이루어진 제1 피아이디(PID1)가 저장되고, 제2 피아이디레지스터(400)는 도9와 같이 16비트로 이루어진 제2 피아이디(PID2)가 저장된다.First, the first PD register 300 and the second PD register 400 are set. In this case, the first PD register 300 stores the first PID PID1 having 9 bits as shown in FIG. As shown in FIG. 9, the second PD register 400 stores a second PID PID2 consisting of 16 bits.

이때, 전송패킷이 입력되면, 도7과 같은 피아이디(PID) 리스트로 그 전송패킷의 피아이디(PID)를 검출하여 그 피아이디(PID)를 제1 커런트 피아이디 (Current_PID[12:4])와 제2 커런트 피아이디(Current_PID[3:0])로 구분하는데, 제1 커런트 피아이디(Current_PID[12:4])는 9비트로 이루어지고, 제2 커런트 피아이디 (Current_PID[3:0])는 4비트로 이루어진다.At this time, when the transmission packet is input, the PID of the transmission packet is detected by the PID list as shown in FIG. 7, and the PID is converted into the first current PID [12: 4]. ) And the second current ID (Current_PID [3: 0]), and the first current ID (Current_PID [12: 4]) is composed of 9 bits, and the second current ID (Current_PID [3: 0]). ) Consists of 4 bits.

제1 피아이디비교부(100)는 상기 제1 커런트 피아이디(Current_PID[12:4])를 입력받아 해당되는 제1 피아이디레지스터(300)의 제1 피아이디(PID1)를 읽어들여 비교하는데, 만약 제1 커런트 피아이디(Current_PID[12:4])와 제1 피아이디(PID1)가 매칭되면 그에 따른 제1 피아이디매칭신호(match1)를 제2 피아이디매칭비트조사부(200)로 출력한다.The first PD comparison unit 100 receives the first current PID (Current_PID [12: 4]) and reads and compares the first PID (PID1) of the corresponding first PD register 300. If the first current PID (Current_PID [12: 4]) and the first PID (PID1) match, the first PD matching signal (match1) is output to the second PD matching bit checker 200 accordingly. do.

그러면, 상기 제2 피아이디매칭비트조사부(200)는 상기 제1 피아이디매칭신호(match1)를 입력받아 그 제1 피아이디(PID1)에 해당되는 제2 피아이디레지스터 (400)의 어드레스로부터 제2 피아이디(PID2)를 읽어들인후, 상기 커런트 피아이디 (Current_PID)의 전반 4비트를 제2 커런트 피아이디(Current_PID[3:0])로 입력받아 그 값에 해당되는 상기 제2 피아이디(PID2)의 비트값을 조사하여 그에 따라 제2 피아이디매칭신호(PID match)를 출력하는데, 제2 피아이디(PID2)의 비트값이 '0'이면 피아이디 미스 매칭신호(mismatch)를 출력하고, 제2 피아이디(PID2)의 비트값이 '1'이면 피아이디매칭신호(PID match)를 출력한다.Then, the second ID matching bit irradiation unit 200 receives the first ID matching signal match1 and outputs a second ID from the address of the second PID register 400 corresponding to the first ID PID1. After reading the second PID2, the first 4 bits of the current PID_CID are input to the second current ID_CID [3: 0], and the second PID corresponding to the value is input. Investigate the bit value of PID2) and output a second PID matching signal accordingly. If the bit value of the second PID2 is '0', the PID mismatch signal is output. When the bit value of the second PID2 is '1', the PID matching signal is output.

이때, 도10은 전송패킷의 종류에 따른 피아이디의 정의를 보인 개략도이다.At this time, Figure 10 is a schematic diagram showing the definition of the PID according to the type of the transmission packet.

보다 상세하게 도6을 참조하여 설명하면, 우선 제1,제2 피아이디 레지스터(300),(400)를 셋트시킨후 현재 입력되는 전송패킷의 커런트 피아이디 (Current_PID)가 검출되면 해당되는 제1 레지스터(300)의 어드레스 데이터를 제1 피아이디(PID1) 값으로 읽어온다.In more detail, referring to FIG. 6, first, the first and second PD registers 300 and 400 are set, and if a current CU (Current_PID) of a currently transmitted transmission packet is detected, the corresponding first ID is set. The address data of the register 300 is read as the first PID1 value.

그 다음, 상기 피아이디의 제1 커런트 피아이디(Current_PID[12:4])와 상기 제1 레지스터(300)에서 읽어온 제1 피아이디(PID1)를 비교하는데, 만약 제1 커런트 피아이디(Current_PID[12:4])와 제1 피아이디(PID1)가 일치하지 않으면 어드레스를 계속하여 증가시키면서 상기 과정을 반복수행한다.Next, the first current PID (Current_PID [12: 4]) of the PID and the first PID (PID1) read from the first register 300 are compared, and if the first current PID (Current_PID) is compared. [12: 4]) and the first PID PID1 do not coincide, the process is repeated while increasing the address.

이때, 마지막 어드레스의 제1 피아이디(PID1)가 제1 커런트 피아이디 (Current _PID[12:4])와 일치하지 않으면 그 다음 전송패킷의 피아이디(PID)를 검출한다.At this time, if the first PID PID1 of the last address does not match the first current PID (Current_PID [12: 4]), then the PID of the next transmission packet is detected.

만약, 제1 커런트 피아이디(Current_PID[12:4])와 제1 피아이디(PID1)가 일치하면 그에 해당되는 어드레스의 제2 피아이디(PID2)값을 제2 레지스터(400)로부터 읽어온 다음, 상기 제1 커런트 피아이디(Current_PID[12:4])의 전반부인 제2 커런트 피아이디(Current_PID[3:0])의 값에 일치하는 제2 피아이디(PID2)의 해당 비트값을 체크한다.If the first current PID (Current_PID [12: 4]) and the first PID (PID1) coincide with each other, the second PID (PID2) value of the corresponding address is read from the second register (400). The corresponding bit value of the second PID (PID2) corresponding to the value of the second current PID (Current_PID [3: 0]) that is the first half of the first current PID (Current_PID [12: 4]) is checked. .

상기 체크결과 제2 피아이디(PID2)의 비트값이 '0'이면 피아이디 미스 매칭신호 (mismatch)를 출력하고, 그 제2 피아이디(PID2)의 비트값이 '1'이면 피아이디매칭신호 (PID match)를 발생한다.If the bit value of the second PID2 is '0', the PD mismatch signal is output. If the bit value of the second PID2 is '1', the PID matching signal is output. Generate a (PID match)

이상에서 상세히 설명한 바와 같이 본 발명은 각 패킷당 존재하는 13비트의 아이디를 전반부 10비트와 후반부 3비트로 나누어 비교함으로써 적은 레지스터 영역으로 비교해야 할 많은 피아이디를 저장하여 활용할 수 있는 효과가 있다.As described in detail above, the present invention has an effect of storing and using a large number of PIDs to be compared in a small register area by comparing the 13-bit ID existing in each packet into 10 bits for the first half and 3 bits for the second half.

Claims (6)

제1,제2 피아이디 레지스터를 셋트시킨후 현재 입력되는 전송패킷의 커런트 피아이디가 검출되면 해당되는 제1 레지스터의 어드레스 데이터를 제1 피아이디값으로 읽어오는 제1 단계와;A first step of reading address data of a corresponding first register as a first PD value when a current PID of a currently inputted transmission packet is detected after setting the first and second PD registers; 상기 피아이디의 제1 커런트 피아이디와 상기 제1 단계의 제1 레지스터에서 읽어온 제1 피아이디를 비교하는 제2 단계와;A second step of comparing the first current PD of the PD with the first PD read from the first register of the first stage; 상기 제2 단계의 판단결과 제1 커런트 피아이디와 제1 피아이디가 일치하지 않고 마지막 어드레스가 아니면 상기 제2 단계를 반복하여 수행하고, 마지막 어드레스이면 피아이디 미스매칭신호를 발생한후 상기 제1 단계로 궤환하는 제3 단계와;As a result of the determination of the second step, if the first current PD and the first PD do not match and are not the last address, the second step is repeatedly performed. A third step of feeding back; 상기 제2 단계의 판단결과 제1 커런트 피아이디와 제1 피아이디가 일치하면 그에 해당되는 어드레스의 제2 피아이디값을 제2 레지스터로부터 읽어오는 제4 단계와;A fourth step of reading a second PD value of an address corresponding to the first current PD and the first PD as a result of the determination of the second step; 상기 제1 커런트 피아이디의 전반부인 제2 커런트 피아이디의 값에 해당되는 제2 피아이디의 비트값을 체크하는 제5 단계와;Checking a bit value of a second PD corresponding to a value of a second current PD that is a first half of the first current PD; 상기 제5 단계의 체크결과 제2 피아이디의 비트값이 '0'이면 피아이디 미스 매칭신호를 출력하고, 그 제2 피아이디의 비트값이 '1'이면 피아이디 매칭신호를 발생하는 제6 단계로 수행함을 특징으로 하는 엠펙2 시스템의 피아이디 비교방법.A sixth result of outputting a PID miss matching signal when the bit value of the second PID is '0' and a bit matching signal of the second PD when the bit value of the second PD is '1' PID comparison method of MPEG2 system, characterized in that performed in steps. 제1 항에 있어서, 커런트 피아이디는 후반부[12:4]인 9비트로 이루어진 제1커런트 피아이디와 전반부[3:0]인 4비트로 이루어진 제2 커런트 피아이디로 구분되는 것을 특징으로 하는 엠펙2 시스템의 피아이디 비교방법.2. The MPEG2 as claimed in claim 1, wherein the current PID is divided into a first current PID having 9 bits in the second half [12: 4] and a second current PD having 4 bits in the first half [3: 0]. How to compare IDs of systems. 제1 항에 있어서, 제1 피아이디는 9비트[8:0]로 이루어진 것을 특징으로 하는 엠펙2 시스템의 피아이디 비교방법.2. The method of claim 1, wherein the first PD comprises 9 bits [8: 0]. 제1 항에 있어서, 제2 피아이디는 16비트[15:0]로 이루어진 것을 특징으로 하는 엠펙2 시스템의 피아이디 비교방법.The method of claim 1, wherein the second PD has 16 bits [15: 0]. 전송패킷의 피아이디를 추출하여 그 피아이디에 해당되는 어드레스의 데이터를 읽어들여 커런트피아이디와 비교하여 그에 따른 피아이디매칭신호를 출력하는 엠펙2 시스템의 피아이디 비교장치에 있어서,In the PID comparison device of MPEG2 system that extracts the ID of the transmission packet, reads the data of the address corresponding to the ID and compares it with the current CD, and outputs the ID matching signal accordingly; 9비트로 이루어진 제1 피아이디를 저장하는 제1 피아이디레지스터와, 16비트로 이루어진 제2 피아이디를 저장하는 제2 피아이디레지스터와; 상기 커런트피아이디의 후반 8비트를 제1 커런트 피아이디로 입력받아 해당되는 상기 제1 피아이디레지스터의 제1 피아이디값을 읽어들여 그 제1 커런트 피아이디와 비교하는 제1 피아이디비교부와; 상기 제1 피아이디비교부로부터 제1 피아이디매칭신호가 발생되면 그 때의 어드레스에 해당되는 제2 피아이디를 읽어들인후, 상기 커런트 피아디의 전반 4비트를 제2 커런트 피아이디로 입력받아 그 값에 해당되는 상기 제2 피아이디의 비트값을 조사하는 제2 피아이디매칭비트조사부를 포함하여 구성한 것을 특징으로 하는 엠펙2 시스템의 피아이디 비교장치.A first PD register for storing a first PD of 9 bits, and a second PD register for storing a second PD of 16 bits; A first PD comparison unit which receives the second 8 bits of the current PID as a first current PD and reads a first PD value of the first PD register corresponding to the first current PD and compares it with the first current PD; ; When the first PD matching signal is generated from the first PD comparing unit, the second PD corresponding to the address is read, and the first four bits of the current piad are input to the second current PD. And a second PD matching bit irradiation unit for examining a bit value of the second PD corresponding to the value. 제5 항에 있어서, 제2 피아이디매칭비트조사부는 제2 피아이디의 비트값이 '0'이면 피아이디 미스 매칭신호를 출력하고, 제2 피아이디의 비트값이 '1'이면 제2 피아이디 매칭신호를 출력하는 것을 특징으로 하는 엠펙2 시스템의 피아이디 비교장치.6. The method of claim 5, wherein the second PD matching bit checker outputs the PD miss matching signal when the bit value of the second PD is '0', and the second PD bit value is '1' when the bit value of the second PD is '1'. ID comparison device of the MPEG-2 system, characterized in that for outputting the ID matching signal.
KR1019990064698A 1999-12-29 1999-12-29 Packet identification compare apparatus and method for mpeg-2 system KR100316529B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019990064698A KR100316529B1 (en) 1999-12-29 1999-12-29 Packet identification compare apparatus and method for mpeg-2 system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019990064698A KR100316529B1 (en) 1999-12-29 1999-12-29 Packet identification compare apparatus and method for mpeg-2 system

Publications (2)

Publication Number Publication Date
KR20010064495A KR20010064495A (en) 2001-07-09
KR100316529B1 true KR100316529B1 (en) 2001-12-12

Family

ID=19631967

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990064698A KR100316529B1 (en) 1999-12-29 1999-12-29 Packet identification compare apparatus and method for mpeg-2 system

Country Status (1)

Country Link
KR (1) KR100316529B1 (en)

Also Published As

Publication number Publication date
KR20010064495A (en) 2001-07-09

Similar Documents

Publication Publication Date Title
US6069902A (en) Broadcast receiver, transmission control unit and recording/reproducing apparatus
ES2436171T3 (en) Receiving device for digital broadcasting signal and receiving / recording or recording / playback apparatus of said signal
JPH1198098A (en) Data separating device
US7061930B2 (en) Data selection/storage apparatus and data processing apparatus using data selection/storage apparatus
US7706379B2 (en) TS transmission system, transmitting apparatus, receiving apparatus, and TS transmission method
KR100590185B1 (en) A storage and search apparatus of audio/video data including additional information
KR100555658B1 (en) Stream decoder
US7088732B2 (en) Apparatus and methods for storing and comparing PIDs
US20060140183A1 (en) Signal processing apparatus and stream processing method
KR20070060886A (en) Apparatus and method for multiplexing and demultiplexing for delivering mpeg-2 ts packet error signal through cablecard interface
US8649662B2 (en) Coded signal reproduction apparatus
KR100316529B1 (en) Packet identification compare apparatus and method for mpeg-2 system
US5598219A (en) Data extracting apparatus for validating data multiplexed in a video signal
FI93072B (en) Improvements in applications for information transmitted in the image return intervals of a television signal
US20070245395A1 (en) Video reproducing apparatus
KR100329830B1 (en) Apparatus for receiving an ac-3 audio in a digital television system and the method for processing the same
JP2007110512A (en) Digital broadcast receiving apparatus and digital broadcast receiving method
CN101159880A (en) Receiving apparatus for digital broadcasting signal and receiving/recording/reproducing apparatus thereof
KR100503264B1 (en) How to set current time by KBPS data
JPH10290207A (en) Multiplexed data separating device
KR100354536B1 (en) Looping PSI Parsing Method and Its Apparatus
JPH1155315A (en) Receiving, recording and reproducing device for digital broadcast signal
JP4788279B2 (en) Digital broadcast receiving apparatus and digital broadcast receiving method
KR920008109B1 (en) Channel state information processing circuit of digital audio tape recorder
JPH09148995A (en) Digital multiplex broadcasting receiver

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20051021

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee