JP2002185960A - Method and circuit for section filtering - Google Patents

Method and circuit for section filtering

Info

Publication number
JP2002185960A
JP2002185960A JP2000377341A JP2000377341A JP2002185960A JP 2002185960 A JP2002185960 A JP 2002185960A JP 2000377341 A JP2000377341 A JP 2000377341A JP 2000377341 A JP2000377341 A JP 2000377341A JP 2002185960 A JP2002185960 A JP 2002185960A
Authority
JP
Japan
Prior art keywords
section
data
comparison
position information
filtering circuit
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2000377341A
Other languages
Japanese (ja)
Inventor
Hideki Fukuhara
秀樹 福原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Engineering Ltd
Original Assignee
NEC Engineering Ltd
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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2000377341A priority Critical patent/JP2002185960A/en
Publication of JP2002185960A publication Critical patent/JP2002185960A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce the respective storage capacities of the reference register and the mask register of the section filtering circuit of a transport stream. SOLUTION: The storage capacities of the reference register 7 and the mask register 8 are made to be several bites and a comparing position information part 6 is provided for storing the comparing position of reference data by a comparing part 5. A data strobe signal from a section start detection part 3 and a counter value from a section byte counter 4 inputting a reset signal are outputted to the part 5. The part 5 outputs the coincidence/noncoincidence of the reference data and section data to a RAM interface 9 at a rear stage and filtering is performed by address control.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はセクションフィルタ
リング方法および回路、特に国際標準化機構(ISO)
の動画コード化委員会規定(PEG2)のMPEG2ト
ランスポートストリームパケットより所望のセクション
を切り出すセクションフィルタリング方法および回路に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and a circuit for section filtering, and in particular, to the International Standards Organization (ISO).
And a section filtering method for extracting a desired section from an MPEG2 transport stream packet specified by the Moving Picture Coding Committee (PEG2).

【0002】[0002]

【従来の技術】ISOのPEG2規定のMPEG2トラ
ンスポートストリームパケットより所望のセクションを
切り出すデータ分離方法等に関連する従来技術は、例え
ば特開平10−341419号公報の「MPEG2トラ
ンスポートストリーム分離方法と回路」、特開平10−
23399号公報の「MPEG2データ再生装置」およ
び特開平11−205789号公報の「MPEG2トラ
ンスポートストリーム伝送レート変換装置」等に開示さ
れている。
2. Description of the Related Art A conventional technique relating to a data separation method for extracting a desired section from an MPEG-2 transport stream packet defined by ISO PEG2 is disclosed in, for example, JP-A-10-341419. ", JP-A-10-
This is disclosed in, for example, "MPEG2 Data Reproducing Apparatus" of JP-A-23399 and "MPEG2 Transport Stream Transmission Rate Converter" of JP-A-11-205789.

【0003】MPEG2トランスポートストリーム(以
下、TSと省略する)において、プログラムスペシフィ
ックインフォメーション(以下、PSIと省略する)を
伝送する方法については、ISO/IEC13818.
1に規格されている。図5に示す如く、ISO/IEC
13818.1に規定されているTSパケットは、18
8バイトの固定長である。異なるPID(パケットI
D)を有するTSパケットが時間的にマルチプレクスさ
れて1つのデータストリームを構成している。TSにお
いてPSIを伝送するとき、PSIは、セクションに分
割され、TSパケット内部に挿入される。セクションフ
ィルタは、PIDでフィルタリングされたTSパケット
内のセクションデータを比較し、一致したデータを持つ
TSパケット又はセクションデータのみを抽出する。こ
れにより、後段でそのデータを蓄積するための記憶手段
の容量を低減するものである。
A method of transmitting program-specific information (hereinafter abbreviated to PSI) in an MPEG2 transport stream (hereinafter abbreviated to TS) is described in ISO / IEC13818.
1 standard. As shown in FIG. 5, ISO / IEC
The TS packet specified in 1388.1 is 18
It has a fixed length of 8 bytes. Different PIDs (Packet I
TS packets having D) are temporally multiplexed to form one data stream. When transmitting a PSI in a TS, the PSI is divided into sections and inserted into TS packets. The section filter compares the section data in the TS packet filtered by the PID, and extracts only the TS packet or the section data having the matching data. This reduces the capacity of the storage means for storing the data at a later stage.

【0004】このTSパケット又はセクションデータ抽
出方法としては、TSパケット内のヘッダ部に含まれる
13ビットのPIDがリファレンスのPID値と一致し
た場合に、そのTSパケット中に含まれるセクションの
先頭のnバイトと、リファレンスデータのnバイトおよ
びマスクデータのnバイトを論理和したものとが一致す
るか否かを判定する。この判定結果が一致した場合に
は、そのTSパケット又はセクションのみを後段のRA
M(ランダムアクセスメモリ)に転送する。
[0004] As a method for extracting a TS packet or section data, when a 13-bit PID included in a header portion of a TS packet matches a reference PID value, the first n of a section included in the TS packet is referred to. It is determined whether or not the byte matches the logical sum of n bytes of the reference data and n bytes of the mask data. If the determination results match, only the TS packet or section is transferred to the subsequent RA.
M (random access memory).

【0005】このセクションフィルタの1例は、上述し
た特開平10−341419号公報に開示されている。
図6は、この先行技術文献にて開示された手法である。
図6の従来回路は、PIDフィルタ60、セクションフ
ィルタ61およびRAMインタフェース67により構成
される。また、セクションフィルタ61は、セクション
スタート検出部62、比較部63、リファレンスレジス
タ64、マスクレジスタ65および比較ステータスレジ
スタ66により構成される。更に、RAMインタフェー
ス67は、ライトストローブ発生部68、データラッチ
69およびアドレス生成部70を含んでいる。
[0005] An example of this section filter is disclosed in the above-mentioned Japanese Patent Application Laid-Open No. 10-341419.
FIG. 6 shows a method disclosed in this prior art document.
The conventional circuit of FIG. 6 includes a PID filter 60, a section filter 61, and a RAM interface 67. The section filter 61 includes a section start detection unit 62, a comparison unit 63, a reference register 64, a mask register 65, and a comparison status register 66. Further, the RAM interface 67 includes a write strobe generating section 68, a data latch 69, and an address generating section 70.

【0006】図6中の各構成要素60〜65の機能を説
明する。PIDフィルタ60は、TSパケットのPID
とリファレンスのPIDとを比較し、一致していた場合
には、後段にそのTSパケットを通過させる。セクショ
ンフィルタ61中のセクションスタート検出部62は、
セクション先頭を検出する。リファレンスレジスタ64
は、セクションのデータとマッチングを行うリファレン
スデータnバイトを格納する。マスクレジスタ65は、
リファレンスデータのマスクデータnバイトを格納す
る。比較部63は、TSデータとリファレンスデータを
比較する。比較ステータスレジスタ66は、セクション
先頭のnバイトが1つのTSパケット内に含まれていな
い場合に、現在までの比較位置と一致ステータスを保持
する。
The function of each of the components 60 to 65 in FIG. 6 will be described. The PID filter 60 determines the PID of the TS packet.
Is compared with the reference PID, and if they match, the TS packet is passed to the subsequent stage. The section start detection unit 62 in the section filter 61 includes:
Detect section start. Reference register 64
Stores n bytes of reference data to be matched with the section data. The mask register 65
Stores n bytes of mask data of reference data. The comparing unit 63 compares the TS data with the reference data. When the n bytes at the head of the section are not included in one TS packet, the comparison status register 66 holds the comparison position up to the present and the matching status.

【0007】次に、図6に示す従来回路の動作を説明す
る。PIDフィルタ60のフィルタリングを通過したT
Sパケットは、セクションスタート検出部62に送られ
る。セクションスタート検出部62では、TSパケット
内のセクション先頭を検出し、後段の比較部63へスタ
ート信号を通知する。比較部63は、セクション情報の
一致/不一致の判定が終了するまでは、判定の合否に拘
らず、セクションデータを後段に出力する。また、セク
ション先頭nバイトのヘッダデータがnバイト全て含ま
れているか又は途中で切れているかを判定する。先頭n
バイトが1つのTSパケットに含まれていると、リファ
レンスレジスタ64に登録されているリファレンスデー
タと比較する。先頭nバイトが未完了で途中で切れてい
る場合には、切れているバイト位置と、一致/不一致ス
テータスを比較ステータスレジスタ66に保持する。
Next, the operation of the conventional circuit shown in FIG. 6 will be described. T that has passed the filtering of the PID filter 60
The S packet is sent to the section start detector 62. The section start detection section 62 detects the head of the section in the TS packet and notifies the comparison section 63 of the subsequent stage of a start signal. The comparison unit 63 outputs the section data to the subsequent stage until the determination of the match / mismatch of the section information is completed, regardless of whether the determination is successful or not. Further, it is determined whether the header data of the first n bytes of the section includes all n bytes or is cut off in the middle. First n
When a byte is included in one TS packet, the byte is compared with reference data registered in the reference register 64. If the first n bytes are not completed and are cut off halfway, the position of the cut byte and the match / mismatch status are held in the comparison status register 66.

【0008】その後、後続のTSパケットが到着する
と、比較ステータスレジスタ66内のnバイトの切れて
いるバイト位置と、一致/不一致ステータスを比較部6
3にロードし、リファレンスレジスタ64からのリファ
レンスデータとの比較を再開する。比較部63は、セク
ション先頭nバイトのヘッダデータとリファレンスレジ
スタとの全ての比較が完了すると、一致の場合には、デ
ータの出力を続ける。一方、不一致の場合には、後段の
RAMインタフェース67へアドレスリセット信号を送
出し、既に出力しているセクションデータのクリアを要
求する。
Thereafter, when a subsequent TS packet arrives, the comparing unit 6 compares the n-byte position in the comparison status register 66 with the matching / mismatching status.
3 and restart comparison with the reference data from the reference register 64. When all the comparisons between the header data of the first n bytes of the section and the reference register are completed, the comparing section 63 continues to output the data when they match. On the other hand, if they do not match, an address reset signal is sent to the subsequent RAM interface 67 to request clearing of the section data already output.

【0009】[0009]

【発明が解決しようとする課題】上述した従来技術で
は、nバイトのリファレンスデータとnバイトのマスク
データを記憶する2×8×nビット分の記憶回路を必要
とする。nに近い値でのマスク解除状態での比較では十
分に有効である。しかし、nより十分小さい値でのマス
ク解除状態、例えばセクションのテーブルIDの1バイ
トのみのフィルタリングを行う場合には、リファレンス
データとマスクデータの記憶回路の殆どが無駄になると
いう問題がある。
The above-mentioned prior art requires a storage circuit of 2 × 8 × n bits for storing n-byte reference data and n-byte mask data. The comparison in the unmasked state at a value close to n is sufficiently effective. However, when the mask is released with a value sufficiently smaller than n, for example, when filtering is performed on only one byte of the table ID of the section, there is a problem that most of the storage circuits for the reference data and the mask data are wasted.

【0010】[0010]

【発明の目的】従って、本発明の目的は、従来のセクシ
ョンフィルタリング回路のリファレンスレジスタとマス
クレジスタの記憶回路(容量)を低減可能なセクション
フィルタリング方法および回路を提供することである。
SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide a section filtering method and circuit capable of reducing the storage circuit (capacity) of a reference register and a mask register of a conventional section filtering circuit.

【0011】[0011]

【課題を解決するための手段】本発明によるセクション
フィルタリング方法は、トランスポートストリームパケ
ットから転送単位であるセクション中の所望のセクショ
ンデータをリファレンスデータと比較して一致するセク
ションを有するトランスポートストリームパケットを分
離する方法であって、リファレンスデータと、リファレ
ンスデータマスク情報に位置情報を保持し、比較位置情
報に基づきリファレンスデータとマスクデータの参照す
るタイミングを判断する。
SUMMARY OF THE INVENTION A section filtering method according to the present invention compares desired section data in a section, which is a transfer unit, from a transport stream packet with reference data to generate a transport stream packet having a matching section. In the separation method, position information is held in reference data and reference data mask information, and a timing for referring to reference data and mask data is determined based on comparison position information.

【0012】また、本発明によるセクションフィルタリ
ング回路は、PIDフィルタとRAMインタフェース間
に配置され、PIDフィルタからのデータからセクショ
ン先頭を検出するセクションスタート検出部、このセク
ションスタート検出部の出力側に接続された比較部、こ
の比較部に接続されたリファレンスレジスタおよびマス
クレジスタを備え、比較部によりセクション情報の一致
/不一致を判定する回路であって、このリファレンスレ
ジスタからのリファレンスデータとマスクデータをセク
ションデータの何バイト目と比較するかの比較位置情報
を記憶保持する比較位置情報部を備える。更に、本発明
のセクションフィルタリング回路の好適実施形態による
と、セクションスタート検出部からのリセット信号およ
びデータストローブを入力とし、カウンタ値を比較部に
出力するセクションバイトカウンタを備える。比較部
は、セクションバイトカウンタのカウンタ値と、比較位
置情報部の値を参照し、適切な位置でリファレンスデー
タとセクションデータの比較を行う。また、比較部は、
全ての比較が終了した時点で比較結果をRAMインタフ
ェースへ出力する。
A section filtering circuit according to the present invention is arranged between a PID filter and a RAM interface, and is connected to a section start detecting section for detecting a section head from data from the PID filter and an output side of the section start detecting section. A comparison unit, a reference register and a mask register connected to the comparison unit, and the comparison unit determines whether the section information matches / mismatches. A comparison position information section is provided for storing comparison position information on the number of bytes to be compared with. Further, according to a preferred embodiment of the section filtering circuit of the present invention, the section filtering circuit includes a section byte counter which receives a reset signal and a data strobe from the section start detecting section and outputs a counter value to the comparing section. The comparing section refers to the counter value of the section byte counter and the value of the comparison position information section, and compares the reference data and the section data at an appropriate position. Also, the comparison unit
When all the comparisons are completed, the comparison result is output to the RAM interface.

【0013】[0013]

【発明の実施の形態】以下、本発明によるセクションフ
ィルタリング方法および回路の好適実施形態の構成およ
び動作を、添付図面を参照して詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The construction and operation of a preferred embodiment of a section filtering method and circuit according to the present invention will be described below in detail with reference to the accompanying drawings.

【0014】図1は、本発明によるセクションフィルタ
リング回路の好適実施形態の構成例を示すブロック図で
ある。セクションフィルタリング回路2は、PIDフィ
ルタ1およびRAMインタフェース9間に接続されてい
る。このセクションフィルタリング回路2は、セクショ
ンスタート検出部3、セクションバイトカウンタ4、比
較部5、比較位置情報部6、リファレンス(基準)レジ
スタ7およびマスクレジスタ8により構成される。ま
た、上述したRAMインタフェース9は、ライトストロ
ーブ発生部10、データラッチ11およびアドレス生成
部12を有する。
FIG. 1 is a block diagram showing a configuration example of a preferred embodiment of a section filtering circuit according to the present invention. The section filtering circuit 2 is connected between the PID filter 1 and the RAM interface 9. The section filtering circuit 2 includes a section start detection unit 3, a section byte counter 4, a comparison unit 5, a comparison position information unit 6, a reference (reference) register 7, and a mask register 8. Further, the above-described RAM interface 9 includes a write strobe generating unit 10, a data latch 11, and an address generating unit 12.

【0015】先ず、図1に示す各構成要素1〜8の機能
を簡単に説明する。PIDフィルタ1は、入力されたT
Sデータ#1の中からある特定のPIDを有するTSパ
ケットのみを抽出する。そして、後段のセクションフィ
ルタリング回路2に、Hit情報およびSUI情報と共
にTSデータ#2を出力する。また、RAMインタフェ
ース9へも、Hit情報、TSのスタート信号およびエ
ンド信号と共にTSデータ#3を出力する。セクション
フィルタリング回路2のセクションスタート検出部3
は、入力されるTSパケットからセクションの開始を検
出し、セクションバイトカウンタ4のリセットと比較部
5へのTSデータ#4の送出を行う。セクションバイト
カウンタ4は、セクションスタート検出部3からのリセ
ット信号を受け、カウンタ値をクリアする。また、セク
ションデータ、即ちTSデータ#4が比較部5に入力さ
れるタイミングに合わせて、バイト数をカウントアップ
する。
First, the function of each of the components 1 to 8 shown in FIG. 1 will be briefly described. The PID filter 1 receives the input T
Only TS packets having a specific PID are extracted from the S data # 1. Then, it outputs TS data # 2 together with Hit information and SUI information to the section filtering circuit 2 at the subsequent stage. Also, it outputs TS data # 3 to the RAM interface 9 together with the Hit information, the TS start signal and the end signal. Section start detector 3 of section filtering circuit 2
Detects the start of the section from the input TS packet, resets the section byte counter 4 and sends out the TS data # 4 to the comparing section 5. The section byte counter 4 receives the reset signal from the section start detector 3 and clears the counter value. Further, the number of bytes is counted up in accordance with the timing at which the section data, that is, the TS data # 4, is input to the comparison unit 5.

【0016】一方、リファレンスレジスタ7は、mバイ
トのリファレンスデータを保持する回路である。マスク
レジスタ8は、リファレンスレジスタ7から出力される
リファレンスデータのmバイトのマスク情報を保持する
回路である。比較位置情報部6は、上述したリファレン
スデータとマスクデータをセクションデータの何バイト
目と比較させるかの情報を保持する。従って、比較位置
情報部6は、mバイト分の位置情報を保持する回路であ
る。比較部5は、セクションバイトカウンタ4のカウン
タ値と比較位置情報部6の値を参照し、適切な位置でリ
ファレンスデータとセクションデータの比較を行う。そ
して、全ての比較が終了した時点で、比較部5は、比較
結果をRAMインタフェース9へ出力する。
On the other hand, the reference register 7 is a circuit for holding m bytes of reference data. The mask register 8 is a circuit that holds m-byte mask information of the reference data output from the reference register 7. The comparison position information section 6 holds information indicating the byte number of the section data with which the reference data and the mask data are compared. Therefore, the comparison position information section 6 is a circuit that holds m bytes of position information. The comparison unit 5 compares the reference data and the section data at an appropriate position with reference to the counter value of the section byte counter 4 and the value of the comparison position information unit 6. Then, when all the comparisons are completed, the comparison unit 5 outputs the comparison result to the RAM interface 9.

【0017】次に、このセクションフィルタリング回路
2の動作を説明する。PIDフィルタ1は、入力された
TSデータの中から指定された特定のPIDを有するT
Sデータのみを通過させる。TSデータ#1のPIDが
PIDフィルタ1のリファレンス値と一致した場合に
は、PIDフィルタ1は、セクションフィルタリング回
路2の一致/不一致を待たず、RAMインタフェース9
へ、PIDの一致情報を意味するHit信号と共にTS
データ#3を送出する。これと同時に、TSデータ#2
およびPIDフィルタ1からのHit信号が、セクショ
ンフィルタリング回路2へ送出される。
Next, the operation of the section filtering circuit 2 will be described. The PID filter 1 has a TID having a specific PID specified from the input TS data.
Pass only S data. When the PID of the TS data # 1 matches the reference value of the PID filter 1, the PID filter 1 does not wait for the matching / mismatch of the section filtering circuit 2 and the RAM interface 9
To the TS together with the Hit signal indicating PID match information
Send data # 3. At the same time, TS data # 2
And a Hit signal from the PID filter 1 are sent to the section filtering circuit 2.

【0018】また、TSデータのPayload Unit Start
Indicatorが1の場合には、SUI信号をセクション
フィルタリング回路2に送出する。PIDフィルタ1
は、RAMインタフェース9へ、TSデータ#3の1バ
イト目(TSヘッダ)を送出するとき、TSスタート信
号も送出する。また、TSデータ#3の188バイト目
を送出するとき、TSエンド信号を送出する。セクショ
ンフィルタリング回路2に、TSデータ#2が入力され
ると、セクションスタート検出部3が、セクションの先
頭検出を開始する。
[0018] Also, the Payload Unit Start of the TS data
When the indicator is 1, the SUI signal is sent to the section filtering circuit 2. PID filter 1
Sends the TS start signal when transmitting the first byte (TS header) of the TS data # 3 to the RAM interface 9. When transmitting the 188th byte of TS data # 3, it transmits a TS end signal. When the TS data # 2 is input to the section filtering circuit 2, the section start detection unit 3 starts detecting the head of the section.

【0019】次に、図2のフローチャートを参照して図
1中のセクションスタート検出部3の動作を説明する。
セクションスタート検出部3は、先ず入力データ中のT
Sデータ#2がPIDフィルタリング1で一致している
か否かのHitフラグを参照する(ステップ30)。こ
のHitフラグを参照するタイミングは、TSデータ#
2がTSヘッダのときである。Hitフラグがアクティ
ブ(有効)であるとき、このTSデータ#2のPayload
Unit Start Indicatorが1であるか否かを判定する
(ステップ31)。このPayload Unit Start Indica
torは、PIDフィルタ1より出力される。Payload Un
it Start Indicatorが1のとき、セクションスタート
検出部3は、セクションの開始位置の検出を始める。セ
クションスタート検出部3は、TSデータ#2のアダプ
テーションフィールドの読み飛ばしを行なった後(ステ
ップ32)、セクションバイトカウンタ4へリセット信
号を送出する(ステップ33)。その後、セクションス
タート検出部3は、TSデータ#4を比較部5に送出
し、その出力タイミングをデータストローブ信号として
セクションバイトカウンタ4へ出力する(ステップ3
4)。その後に初期状態へ戻る。
Next, the operation of the section start detector 3 in FIG. 1 will be described with reference to the flowchart in FIG.
The section start detection unit 3 first detects T in the input data.
A Hit flag indicating whether or not the S data # 2 matches in the PID filtering 1 is referred to (Step 30). The timing for referring to the Hit flag is determined by the TS data #
2 is a TS header. When the Hit flag is active (valid), this TS data # 2 Payload
It is determined whether the Unit Start Indicator is 1 (step 31). This Payload Unit Start Indica
tor is output from the PID filter 1. Payload Un
When the it Start Indicator is 1, the section start detection unit 3 starts detecting a section start position. After skipping the adaptation field of the TS data # 2 (step 32), the section start detector 3 sends a reset signal to the section byte counter 4 (step 33). Thereafter, the section start detector 3 sends the TS data # 4 to the comparator 5, and outputs the output timing to the section byte counter 4 as a data strobe signal (step 3).
4). Then, it returns to the initial state.

【0020】次に、図3のフローチャートを参照して、
図1中のセクションバイトカウンタ4の動作を説明す
る。先ず、セクションバイトカウンタ4へのリセット信
号はアクティブか否か判断する(ステップ40)。リセ
ット信号がアクティブの場合(ステップ40:YES)
には、セクションバイトカウンタ4は、セクションスタ
ート検出部3からのリセット信号を受け、セクションバ
イトカウンタ4を0クリアする(ステップ41)。ま
た、リセット信号がアクティブでない場合(ステップ4
0:NO)には、セクションバイトカウンタ4へのデー
タストローブはイネーブルか否か判断する(ステップ4
2)。イネーブルの場合(ステップ42:YES)に
は、セクションバイトカウンタ4は、セクションスター
ト検出部3からのデータストローブ信号を受け、カウン
タの値を1ずつカウントアップしていく(ステップ4
3)。ステップ41又はステップ43の後およびデータ
ストローブがイネーブルでない場合(ステップ42:N
O)には、上述したステップ40へ戻る。
Next, referring to the flowchart of FIG.
The operation of the section byte counter 4 in FIG. 1 will be described. First, it is determined whether or not the reset signal to the section byte counter 4 is active (step 40). When the reset signal is active (Step 40: YES)
First, the section byte counter 4 receives the reset signal from the section start detector 3 and clears the section byte counter 4 to 0 (step 41). If the reset signal is not active (step 4
(0: NO), it is determined whether the data strobe to the section byte counter 4 is enabled (step 4).
2). When enabled (step 42: YES), the section byte counter 4 receives the data strobe signal from the section start detector 3 and counts up the counter value by one (step 4).
3). After step 41 or step 43 and when the data strobe is not enabled (step 42: N
In O), the process returns to step 40 described above.

【0021】次に、図4のフローチャートを参照して図
1中の比較部5の動作を説明する。比較部5は、先ず、
Payload Unit Start Indicatorが1か否か判断する
(ステップ50)。ステップ50:YESの場合には、
セクションバイトカウンタ4のカウンタ値が比較位置情
報値と同じか否か判断する(ステップ51)。ステップ
50:YESで且つセクションバイトカウンタ4のカウ
ンタ値と比較位置情報部6の値が同じになった場合(ス
テップ51:YES)には、リファレンスレジスタ7の
値とマスクレジスタ8の値とを各ビット毎に論理積した
値と、TSデータ#4とマスクレジスタ8の値を各ビッ
ト毎に論理積した値を比較する(ステップ52)。この
2値が同じ値の場合(ステップ52:YES)には、一
致判定をし、一致フラグを出力する(ステップ53)。
異なる値の場合(ステップ52:NO)には、不一致フ
ラグをセクションフィルタリング回路2の判定結果とし
て出力する(ステップ54)。この判定結果は、次にPa
yload Unit Start Indicatorが1になるTSデータ
#2がセクションフィルタリング回路2に入力まで保持
される。
Next, the operation of the comparing section 5 in FIG. 1 will be described with reference to the flowchart in FIG. First, the comparison unit 5
It is determined whether or not the Payload Unit Start Indicator is 1 (step 50). Step 50: If YES,
It is determined whether the counter value of the section byte counter 4 is the same as the comparison position information value (step 51). Step 50: If YES and the counter value of the section byte counter 4 becomes equal to the value of the comparison position information section 6 (Step 51: YES), the value of the reference register 7 and the value of the mask A value obtained by logically ANDing the bits for each bit is compared with a value obtained by logically ANDing the TS data # 4 and the value of the mask register 8 for each bit (step 52). If the two values are the same (step 52: YES), a match is determined and a match flag is output (step 53).
If the values are different (step 52: NO), the non-coincidence flag is output as the determination result of the section filtering circuit 2 (step 54). The result of this determination is
The TS data # 2 for which the yload Unit Start Indicator becomes 1 is held in the section filtering circuit 2 until it is input.

【0022】RAMインタフェース9は、PIDフィル
タ1からのTSデータ#3に、RAMへ書き込むための
ライトストローブ信号、アドレス信号を付加する。ライ
トストローブ生成部10では、Hitフラグを参照し、
Hitフラグが有効なとき、TSデータ#3の入力に同
期して、ライトストローブ信号を生成する。Hitフラ
グが無効なときは、TSデータ#3のRAMへの書き込
みは不要なため、ライトストローブ信号の生成は行われ
ない。
The RAM interface 9 adds a write strobe signal and an address signal for writing to the RAM to the TS data # 3 from the PID filter 1. In the write strobe generation unit 10, referring to the Hit flag,
When the Hit flag is valid, a write strobe signal is generated in synchronization with the input of the TS data # 3. When the Hit flag is invalid, it is not necessary to write the TS data # 3 to the RAM, so that the write strobe signal is not generated.

【0023】データラッチ部11は、RAMへの書き込
みタイミングに適したデータ出力を行う。アドレス生成
部12は、Hitフラグを参照し、Hitフラグが有効
なとき、TSデータ#3がRAMに書き込まれる度に、
アドレス値をインクリメントする。但し、次の条件のと
き、アドレス値の操作が行われる。先ず、TSスタート
信号が有効なとき、現在のアドレス値のバックアップ値
として記憶する。TSエンド信号が有効なとき、セクシ
ョンフィルタリング回路2の一致判定結果を参照し、一
致判定のときは、アドレスをそのままとする。不一致判
定のときは、バックアップ値を新しいアドレス値とす
る。即ち、アドレス値を1TSパケット分リセットす
る。
The data latch section 11 outputs data suitable for the timing of writing to the RAM. The address generation unit 12 refers to the Hit flag, and when the Hit flag is valid, every time TS data # 3 is written to the RAM,
Increment the address value. However, the operation of the address value is performed under the following conditions. First, when the TS start signal is valid, it is stored as a backup value of the current address value. When the TS end signal is valid, the match determination result of the section filtering circuit 2 is referred to, and when the match is determined, the address is left as it is. If a mismatch is determined, the backup value is set as a new address value. That is, the address value is reset for one TS packet.

【0024】以上、本発明によるセクションフィルタリ
ング方法および回路の好適実施形態の構成および動作を
詳述した。しかし、斯かる実施形態は、本発明の単なる
例示に過ぎず、何ら本発明を限定するものではないこと
に留意されたい。本発明の要旨を逸脱することなく、特
定用途に応じて種々の変形変更が可能であること、当業
者には容易に理解できよう。
The configuration and operation of the preferred embodiment of the section filtering method and circuit according to the present invention have been described above in detail. However, it should be noted that such an embodiment is merely an example of the present invention and does not limit the present invention in any way. It will be readily apparent to those skilled in the art that various modifications can be made in accordance with the particular application without departing from the spirit of the invention.

【0025】[0025]

【発明の効果】以上の説明から理解される如く、本発明
のセクションフィルタリング方法および回路によると、
次の如き実用上の顕著な効果が得られる。第1に、セク
ションフィルタリング回路の回路規模が削減でき、ハー
ドウェアの費用の削減が可能となることである。その理
由は、リファレンスレジスタとマスクレジスタの保持す
るデータ数を減らすことが可能となるからである。第2
に、セクションフィルタリングを先頭から任意のバイト
数の位置で行うことが可能となることである。その理由
は、比較位置情報を保持することにより、リファレンス
データの比較位置を任意に設定可能であるからである。
As will be understood from the above description, according to the section filtering method and circuit of the present invention,
The following remarkable practical effects can be obtained. First, the circuit size of the section filtering circuit can be reduced, and the cost of hardware can be reduced. The reason is that the number of data held in the reference register and the mask register can be reduced. Second
Second, section filtering can be performed at an arbitrary number of bytes from the beginning. The reason is that by holding the comparison position information, the comparison position of the reference data can be arbitrarily set.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明によるセクションフィルタリング回路の
好適実施形態の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a preferred embodiment of a section filtering circuit according to the present invention.

【図2】図1中に示すセクションスタート検出部の動作
手順を示すフローチャートである。
FIG. 2 is a flowchart showing an operation procedure of a section start detection unit shown in FIG.

【図3】図1中に示すセクションバイトカウンタの動作
手順を示すフローチャートである。
FIG. 3 is a flowchart showing an operation procedure of a section byte counter shown in FIG. 1;

【図4】図1中に示す比較部の動作手順を示すフローチ
ャートである。
FIG. 4 is a flowchart illustrating an operation procedure of a comparison unit illustrated in FIG. 1;

【図5】トランスポートストリーム(TS)の構成を示
す図である。
FIG. 5 is a diagram illustrating a configuration of a transport stream (TS).

【図6】セクションフィルタリング回路の従来例の回路
構成を示すブロック図である。
FIG. 6 is a block diagram showing a circuit configuration of a conventional example of a section filtering circuit.

【符号の説明】[Explanation of symbols]

1 PIDフィルタ 2 セクションフィルタリング回路 3 セクションスタート検出部 4 セクションバイトカウンタ 5 比較部 6 比較位置情報部 8 マスクレジスタ 9 RAMインタフェース 10 ライトストローブ発生部 11 データラッチ 12 アドレス生成部 DESCRIPTION OF SYMBOLS 1 PID filter 2 Section filtering circuit 3 Section start detection part 4 Section byte counter 5 Comparison part 6 Comparison position information part 8 Mask register 9 RAM interface 10 Write strobe generation part 11 Data latch 12 Address generation part

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】トランスポートストリームパケットから転
送単位であるセクション中の所望のセクションデータを
リファレンスデータと比較して、一致するセクションを
有するトランスポートストリームパケットを分離するセ
クションフィルタリング方法において、 前記リファレンスデータとリファレンスデータマスク情
報の位置情報を保持し、比較位置情報に基づき前記リフ
ァレンスデータとマスクデータの参照するタイミングを
制御することを特徴とするセクションフィルタリング方
法。
1. A section filtering method for comparing desired section data in a section, which is a transfer unit, from a transport stream packet with reference data and separating a transport stream packet having a matching section, comprising: A section filtering method comprising: holding position information of reference data mask information; and controlling a timing of referring to the reference data and the mask data based on comparison position information.
【請求項2】PIDフィルタとRAMインタフェース間
に配置され、前記PIDフィルタからのデータからセク
ション先頭を検出するセクションスタート検出部、該セ
クションスタート検出部の出力側に接続された比較部、
該比較部に接続されたリファレンスレジスタおよびマス
クレジスタを備え、前記比較部によりセクション情報の
一致/不一致を判定するセクションフィルタリング回路
において、 前記リファレンスレジスタからのリファレンスデータと
マスクデータをセクションデータの何バイト目と比較す
るかの比較位置情報を記憶保持する比較位置情報部を備
えることを特徴とするセクションフィルタリング回路。
2. A section start detecting section disposed between a PID filter and a RAM interface for detecting a section head from data from the PID filter, a comparing section connected to an output side of the section start detecting section,
A section filtering circuit that includes a reference register and a mask register connected to the comparing unit, and determines whether the section information matches / mismatches by the comparing unit. A section filtering circuit, comprising: a comparison position information unit that stores comparison position information indicating whether to compare with the comparison position information.
【請求項3】前記セクションスタート検出部からのリセ
ット信号およびデータストローブを入力とし、カウンタ
値を前記比較部に出力するセクションバイトカウンタを
備えることを特徴とする請求項2に記載のセクションフ
ィルタリング回路。
3. The section filtering circuit according to claim 2, further comprising a section byte counter that receives a reset signal and a data strobe from the section start detection section and outputs a counter value to the comparison section.
【請求項4】前記比較部は、前記セクションバイトカウ
ンタのカウンタ値と、前記比較位置情報部の値を参照
し、適切な位置で前記リファレンスデータと前記セクシ
ョンデータの比較を行うことを特徴とする請求項3に記
載のセクションフィルタリング回路。
4. The comparison section references the counter value of the section byte counter and the value of the comparison position information section, and compares the reference data and the section data at an appropriate position. The section filtering circuit according to claim 3.
【請求項5】前記比較部は、前記全ての比較が終了した
時点で比較結果を前記RAMインタフェースへ出力する
ことを特徴とする請求項4に記載のセクションフィルタ
リング回路。
5. The section filtering circuit according to claim 4, wherein the comparing section outputs a comparison result to the RAM interface when all the comparisons have been completed.
JP2000377341A 2000-12-12 2000-12-12 Method and circuit for section filtering Pending JP2002185960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000377341A JP2002185960A (en) 2000-12-12 2000-12-12 Method and circuit for section filtering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000377341A JP2002185960A (en) 2000-12-12 2000-12-12 Method and circuit for section filtering

Publications (1)

Publication Number Publication Date
JP2002185960A true JP2002185960A (en) 2002-06-28

Family

ID=18846074

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000377341A Pending JP2002185960A (en) 2000-12-12 2000-12-12 Method and circuit for section filtering

Country Status (1)

Country Link
JP (1) JP2002185960A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008153869A (en) * 2006-12-15 2008-07-03 Toshiba Corp Filtering device and digital broadcast receiving device
JP2009159472A (en) * 2007-12-27 2009-07-16 Toshiba Corp Information processor, key processor, and information processing method
WO2009113352A1 (en) * 2008-03-12 2009-09-17 Kabushiki Kaisha Toshiba Filtering apparatus and digital broadcasting receiving apparatus
US8000396B2 (en) 2004-05-20 2011-08-16 Kabushiki Kaisha Toshiba Filtering apparatus, digital broadcast receiving apparatus and filtering method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8000396B2 (en) 2004-05-20 2011-08-16 Kabushiki Kaisha Toshiba Filtering apparatus, digital broadcast receiving apparatus and filtering method
JP2008153869A (en) * 2006-12-15 2008-07-03 Toshiba Corp Filtering device and digital broadcast receiving device
US8213557B2 (en) 2006-12-15 2012-07-03 Kabushiki Kaisha Toshiba Filtering apparatus and digital broadcast receiving apparatus
JP2009159472A (en) * 2007-12-27 2009-07-16 Toshiba Corp Information processor, key processor, and information processing method
WO2009113352A1 (en) * 2008-03-12 2009-09-17 Kabushiki Kaisha Toshiba Filtering apparatus and digital broadcasting receiving apparatus
JP2009219046A (en) * 2008-03-12 2009-09-24 Toshiba Corp Filter and digital broadcast receiver

Similar Documents

Publication Publication Date Title
US6654389B1 (en) System and method for searching patterns in real-time over a shared media
CA2713906C (en) Packet comparator
JP3641336B2 (en) Data separator
JP3189889B2 (en) PID filter circuit
JP3919860B2 (en) Demultiplexer
US6948186B1 (en) Multi-tasking message extractor
JPH10341419A (en) Mpeg2 transport stream separation method and circuit
US6600745B1 (en) Cell aligners
US6763031B1 (en) Network device incorporating selective compression of stored data packets
US5675654A (en) System and method for interfacing a transport decoder to a national renewable security systems (NRSS) smart card
JP2002185960A (en) Method and circuit for section filtering
JP3564309B2 (en) Data processing device and control method thereof
JP2004088160A (en) Frame transfer method and node in ethernet (r)
WO2004066562A1 (en) Data transmission apparatus
US6683875B1 (en) Network switch including restriction of source address look-ups based on receive queue length
US6611497B1 (en) TS data filtering circuit in digital broadcasting receiver
US6810085B2 (en) MPEG video elementary stream extruction device and elementary stream extruction method used for the same
US7426187B2 (en) False sync code protection (FSP) decoding by software
JP3076456B2 (en) Synchronous control method
JP2003199075A (en) Data transmission method, data transmission apparatus and data reception apparatus
JPH11146354A (en) Video audio decoder
JP2001053700A (en) Data selecting device and data processor
JPH10190742A (en) Data transmitting method/device, data receiving method/ device and integrated circuit for link layer
JPH10290207A (en) Multiplexed data separating device
JP2001103116A (en) Stream generator

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040720

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040921

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050316