CN103491417A - PSI (program special information) data filter for set-top box demultiplexing system and filtering method of data filter - Google Patents

PSI (program special information) data filter for set-top box demultiplexing system and filtering method of data filter Download PDF

Info

Publication number
CN103491417A
CN103491417A CN201310487597.2A CN201310487597A CN103491417A CN 103491417 A CN103491417 A CN 103491417A CN 201310487597 A CN201310487597 A CN 201310487597A CN 103491417 A CN103491417 A CN 103491417A
Authority
CN
China
Prior art keywords
data
specific information
program specific
state machine
filter
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
CN201310487597.2A
Other languages
Chinese (zh)
Inventor
罗佳明
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.)
SHANGHAI LONGJING TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI LONGJING TECHNOLOGY Co 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 SHANGHAI LONGJING TECHNOLOGY Co Ltd filed Critical SHANGHAI LONGJING TECHNOLOGY Co Ltd
Priority to CN201310487597.2A priority Critical patent/CN103491417A/en
Publication of CN103491417A publication Critical patent/CN103491417A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a program special information (PSI) data filter for a set-top box demultiplexing system and a filtering method of the data filter. The filter comprises a master controller of a state machine, a TS (Transport Stream) code stream input buffer, a comparison logical processor and a TS code stream output buffer, wherein the master controller of the state machine is used for controlling the conversion of the state machine of the PSI data filter, and the comparison logical processor is used for carrying out comparison and filtering processing on PSI data in a TS grouped data packet and feeding a processing result back to the master controller of the state machine. The invention further relates to a method for realizing PSI data filtering in the set-top box demultiplexing system based on the filter. By adopting the PSI data filter, with the structure, for the set-top box demultiplexing system and the filtering method of the data filter, the efficiency of the reading and calculating of data can be greatly increased, the filtering processing on PSI is completed accurately, and the subsequent processing burden of a central processing unit is lightened greatly, so that the PSI data filter and the filtering method thereof have a wide range of application.

Description

PSI data filter and filter method in Set Top Box demultiplexing system
Technical field
The present invention relates to the audio/video encoding/decoding field, relate in particular to data filtering field in audio frequency and video demultiplexing system, specifically refer to PSI data filter and filter method in a kind of Set Top Box demultiplexing system.
Background technology
At present, generally adopt in the world MPEG-TS grouping code stream as broadcast audio, video data and the synthetic transport vehicle of other data, be applicable to transmission and storage.2006, China formulated the advanced audio/video encoding and decoding standard (AVS) of independent intellectual property right.In actual applications, for the existing broadcast transmission system of compatibility, the broadcast audio, video data obtained with above-mentioned standard, still be packaged among MPEG-TS grouping code stream.In hardware demultiplexing system, need to carry out filtration treatment to program specific information (PSI, Program special program) data, for obtaining the broadcast control information in TS grouping code stream.
The program specific information has following four kinds of PSI table:
The program correlation table, associated program number and program map table PID;
Program map table, illustrate the value of one or more program part PID;
Network information table, physical network parameter: FDM frequency, transmitter number etc.;
Conditional access table, set up one or more (private) EMM stream and contacting of pid value independently.
Comprise necessity and the enough information of carrying out multi-channel demodulator and display routine in these tables.Therefore, the program specific information need to be filtered out by program specific information data filter (PSI Data Filter), for the follow-up processing for TS grouping code stream (as: switching between different channel, the descrambling of the TS grouping code stream of scrambling, value-added service of operator etc.).Above-mentioned four kinds of program specific information tables have itself gauge outfit information of corresponding identification, so, can deposit in advance the gauge outfit sample of the program specific information table that need to catch in system, for the program specific information data with TS grouping code stream, compare filtration treatment.
Existing program specific information data filtering processing method, a part is based on demodulation multiplexer all TS packet data package that comprise program specific information data is sent to central processing unit (CPU), carries out program specific information data filtering by the mode of pure software and processes.There is very large drawback in such processing mode, can interrupt continually the processing of central processing unit for other tasks, takies in a large number efficiency and performance that central processing unit is processed resource and reduced whole system.Another part is based in demodulation multiplexer and adds simple program specific information data filtering processing hardware logic and a microcontroller (MCU), share the filtration treatment of central processing unit for program specific information data by microcontroller, there is disadvantageous aspect equally in such processing mode, can increase the complexity of the hardware configuration of demodulation multiplexer, secondly the maintenance for demodulation multiplexer becomes difficult, need to safeguard hardware designs simultaneously and operate in the software program on microcontroller.
As can be seen here, need a kind of new hardware designs to meet the relation of balance between disposal ability and maintenance cost.This hardware designs has completed the hardware complex calculation of handling procedure specific information data, a small amount of TS grouping bag that will comprise the program specific information data of demultiplexing system needs sends to central processing unit, can reduce significantly the central processing unit processing load, in demodulation multiplexer, without microcontroller, process simultaneously, reduce maintenance cost, that is, only need to safeguard a set of central processing unit software program that operates in.Simultaneously, in order to guarantee accurately, program specific information data filtering is processed efficiently, carries out a large amount of paralell designs in hardware, and the on-chip memory address mapping method that proposes a kind of special program specific information sample data.
The address mapping method of existing program specific information sample data as shown in Figure 5.Each program specific information sample data deposits in by row, and the bit wide of sample data has been determined the bit wide of memory lines memory cell.When needs are used a plurality of sample data, all sample datas all be take the row address (Row) of memory as numeric order deposits in, while reading, are also Sequential outputs.Therefore, this address mapping method causes follow-up processing module can not carry out directly, efficiently the parallel work-flow of a plurality of sample datas of TS grouping code stream Program specific information and storage, even in the middle of opening up in follow-up processing module, buffer memory is in order to reach the purpose of parallel work-flow, but, the hardware spending that also inevitable order reads the time consumption of sample data and opens up middle buffer memory.Based on this, the spy has proposed new invention design.
Summary of the invention
The objective of the invention is to overcome the shortcoming of above-mentioned prior art, a kind of filtration treatment accurately and efficiently that can realize utilizing hardware to complete TS grouping code stream Program specific information data in fixing scope computing time is provided, has met balance between disposal ability and maintenance cost, PSI data filter and filter method in simple in structure, Set Top Box demultiplexing system with broader applications scope.
To achieve these goals, PSI data filter and the filter method in Set Top Box demultiplexing system of the present invention has following formation:
PSI data filter in this Set Top Box demultiplexing system, its main feature is that described filter comprises: the state machine master controller, in order to the conversion of the worker state machine of controlling described program specific information data filter;
TS code stream input buffer, the control information that is described state machine master controller fetch program specific information data in order to the current partial data of inputting the TS packet data package of buffer memory provides buffer time;
The Compare Logic processor, compare filtration treatment and result fed back to described state machine master controller in order to the program specific information data in the TS packet data package;
TS code stream output state, in order to buffer memory current output TS packet data package and export corresponding TS packet data package according to the control command of described state machine master controller.
Preferably, described state machine master controller comprises:
The top state machine control module, in order to the conversion of the worker state machine of controlling described program specific information data filter;
The critical data memory module, in order to the First Input First Output of the critical data in temporary described program specific information;
The critical data storage control module, in order to control the storage of the critical data in described program specific information.
Preferably, described TS code stream input buffer comprises:
The path control module, in order to control the handling process path of different program specific information data;
The input data memory module, in order to the First Input First Output of temporary input TS grouping code stream.
Preferably, described Compare Logic processor comprises:
The comparing data memory module, in order to the temporary First Input First Output that is input to the data of described Compare Logic processor;
The conversion logic memory module, carry out logical transition in order to the sample data to described program specific information;
Core Compare Logic module, compare in order to program specific information data and sample data by described TS grouping code stream.
Preferably, described TS code stream output state comprises:
The output data memory module, in order to have kept in the First Input First Output of the TS grouping code stream that filters rear output;
The data bit width modular converter, be stored in the external memory storage of wide bit wide in order to the TS block code flow data of the narrow bit wide program specific information by having exported.
The invention still further relates to a kind of method of program specific information data filtering that realizes in Set Top Box demultiplexing system based on described filter, its main feature is that described method comprises the following steps:
(1) described demultiplexing system is configured to the sample data of described program specific information in the on-chip memory of described demultiplexing system;
(2) described state machine master controller obtains the gauge outfit data of the TS packet data package Program specific information of current input;
(3) described Compare Logic processor compares and catches by the sample data of program specific information and described gauge outfit data the TS packet data package met the demands.
Preferably, described demultiplexing system is configured to the sample data of described program specific information in the on-chip memory of described demultiplexing system, comprises the following steps:
(11) described program specific information sample data is by data/address bus write-in program specific information register;
(12) the corresponding row address of the sample data just write and sample sequence number are by data/address bus writing line and serial number register;
(13) described internal controller write logic controller according to described row address and sample sequence number, described sample data is write in the corresponding memory cell of described on-chip memory;
(14) described demultiplexing system judges whether described sample data has all configured, and if so, continues step (2), if not, continues step (11).
More preferably, described sample data comprises that bit wide is the correction data of 8, mask and selection and controls data, and a sample data of described program specific information, by data/address bus write-in program specific information register, is specially:
Each part of a sample data of described program specific information be take the mode of byte-aligned and is merged into data that bit wide is 32 by senior high performance bus write-in program specific information register.
More preferably, the corresponding row address of the described sample data just write and sample sequence number, by data/address bus writing line and serial number register, are specially:
The corresponding row address of the sample data just write and sample sequence number are merged into the data that bit wide is 32 and pass through in senior high performance bus writing line and serial number register.
Preferably, described state machine master controller obtains the gauge outfit data of the TS packet data package Program specific information of current input, comprises the following steps:
(21) described state machine master controller enters by idle condition the TS packet data package state of waiting for;
(22) described state machine master controller receives the TS packet data package and detects the port id value of described TS packet data package and adjust the control information in field;
(22) described state machine master controller is ignored the non-gauge outfit data of described adjustment field data and described TS packet data package Program specific information;
(23) described state machine master controller reads the gauge outfit data of described TS packet data package Program specific information.
Preferably, described sample data comprises correction data, mask and selection control data, described Compare Logic processor compares and catches by the sample data of program specific information and described gauge outfit data the TS packet data package met the demands, and comprises the following steps:
(31) described Compare Logic controller is controlled the type of data judgement Compare Logic according to described selection, if coupling Compare Logic, continue step (32), if do not mate Compare Logic, continue step (33), if start matching ratio and do not mate Compare Logic simultaneously, continue step (32);
(32) described Compare Logic controller judges whether the gauge outfit data of described program specific information data and the correction data in described sample data mate, and if so, continue step (34), if not, continue step (35);
(33) described Compare Logic controller judges whether the gauge outfit data of described program specific information data and the correction data in described sample data mate, and if so, continue step (35), if not, continue step (34);
(34) described state machine master controller is caught the TS packet data package that comprises described program specific information gauge outfit data, then finishes to exit;
(35) described state machine master controller discarded packets, containing the TS packet data package of described program specific information gauge outfit data, then finishes to exit.
Adopt PSI data filter and filter method in the Set Top Box demultiplexing system in this invention, there is following beneficial effect:
(1) utilize the inventive method to carry out special storage to program specific information sample data, when reading the program specific information sample data configured, mode with normal row address (Row) visit data is carried out, just can be when reading the on-chip memory data line at every turn, obtain having deposited in a certain byte data of all samples of program specific information sample data simultaneously, each just can and the above-mentioned comparison of behavior filter logic circuit read corresponding a plurality of program specific information sample data simultaneously, each just can and the above-mentioned comparison of behavior filter logic circuit read corresponding a plurality of program specific information sample data simultaneously, relatively filtering circuit just can concurrent operation accordingly, when running through all program specific information sample datas that deposited in, just can obtain final comparative result.
(2) simultaneously, according to the matching ratio in program specific information data filtering method, and matching ratio is not, 8 bytes (byte) and 16 byte mode Combination application, greatly improve the relatively accuracy of filtration treatment, so, as the quantity that deposits program specific information sample data in variable (between 1 to N), parallel computing time relatively is constant, be very beneficial for like this tackling the wide variation of TS block code flow rate, solved while needing to process a large amount of program specific information sample data simultaneously, the contradiction that the hardware handles performance is inadequate, so just can increase substantially data reads and the efficiency of calculating, accurately complete program specific information filtration treatment, alleviate significantly the subsequent treatment burden of central processing unit.
The accompanying drawing explanation
The structural representation that Fig. 1 is the program specific information data filter in Set Top Box demultiplexing system of the present invention.
The circuit connection diagram that Fig. 2 is the program specific information data filter in Set Top Box demultiplexing system of the present invention.
The state conversion schematic diagram of the state machine master controller that Fig. 3 is the program specific information data filter in Set Top Box demultiplexing system of the present invention.
Fig. 4 is address mapping method schematic diagram of the prior art.
The basic structure schematic diagram that Fig. 5 is on-chip memory of the present invention.
Fig. 6 is the address mapping method schematic diagram of program specific information sample data of the present invention to on-chip memory.
Fig. 7 is program specific information sample data address mapping process schematic diagram before program specific information data filtering of the present invention.
Embodiment
In order more clearly to describe technology contents of the present invention, below in conjunction with specific embodiment, conduct further description.
Program specific information filter of the present invention (PSI Data Filter), use the stream from TS(Transport, transport stream) in the grouping code stream, all kinds of normalized number certificates of filtration and private data (wherein mainly comprise: the program contingency table, program map table, network information table and conditional access table).The structural framing of this hardware designs is as shown in Fig. 1~2.Its structure mainly contains four parts: the state machine master controller comprises submodule PSI_TOP_FSM, MEM_FSM, MEM_FIFO; TS code stream input buffer, comprise submodule PSI_DATA_PATH, IN_FIFO; The Compare Logic processor, comprise submodule CMP_FIFO, PMS_TRANFER/FIFO, CMPARER_AND_FSM; TS code stream output state, comprise submodule OUT_FIFO, CAB_STORE.
State machine master controller in the present invention, for controlling the work of whole program specific information filter, how from upper level, to obtain the TS packet data package, the control information of the fetch program specific information from the TS packet data package, the identification of control program specific information gauge outfit and the processing of comparison and compared result.
TS code stream input buffer in the present invention, for the partial data of the current input of buffer memory TS packet data package, for the master control state machine part fetch program, the control information of specific information provides buffer time.
Compare Logic processor in the present invention compares filtration treatment to the program specific information data in the TS packet data package, and result is fed back to the master control state machine under the master control state machine is controlled.
TS code stream output state in the present invention, for the current output of buffer memory TS packet data package, this packet is in the middle of program specific information data filtering processing procedure, and the control command according to the major state machine after filtration treatment completes determines whether to export this TS packet data package.
Submodule PSI_TOP_FSM top state machine control module: the top layer state of a control machine of program specific information filter;
Submodule MEM_FSM critical data storage control module: under top layer state of a control machine PSI_TOP_FSM controls, for the memory state of a control machine of temporary program specific information critical data;
Submodule MEM_FIFO critical data memory module: for the First Input First Output memory of temporary program specific information critical data;
Submodule PSI_DATA_PATH path control module: for controlling the handling process path of different program specific information data;
Submodule IN_FIFO inputs data memory module: the temporary First Input First Output memory of input TS grouping code stream;
Submodule CMP_FIFO comparing data memory module: the temporary First Input First Output memory of data that is input to the Compare Logic part;
Submodule PMS_TRANFER/FIFO conversion logic memory module: the conversion logic of program specific information sample data and First Input First Output memory;
Submodule CMPARER_AND_FSM core Compare Logic module: core Compare Logic and state of a control machine thereof;
Submodule OUT_FIFO exports data memory module: the First Input First Output memory that completes the TS grouping code stream of output after filtering;
Submodule CAB_STORE data bit width modular converter: conversion and control logic and the middle buffer memory of data storages bit wide are stored in the middle of the external memory storage of wide bit wide for the TS block code flow data of the narrow bit wide program specific information by having exported.
In Set Top Box demultiplexing system of the present invention, realize in the method for program specific information data filtering, at first the address mapping method that needs the on-chip memory of program specific information sample data, for being mapped to program specific information sample data the appropriate address of on-chip memory.Composition according to program specific information sample data, be divided into: correction data (Pattern), (Select) controlled in mask (Mask) and selection, described on-chip memory comprises 3 storage arrays, gauge outfit data maximum number of byte according to program specific information table is 16 bytes simultaneously, and the present invention is while applying, the number (N) of the program specific information sample data of parallel processing, the size of single interior memory space is N x8bit x16.
In program specific information data filtering method of the present invention, 8 bytes and 16 byte modes, be to determine according to the gauge outfit data length distribution of program specific information table, when the gauge outfit data length of specific information table during to 8 bytes, is used 8 byte modes at 1; When the gauge outfit data length of specific information table during to 16 bytes, is used 16 byte modes at 9.So just can reach the storage of optimization sample data and the time purpose of comparison filtration treatment, and improve treatment effeciency.
In an embodiment of the present invention, the gauge outfit data length of program specific information adheres to two different length ranges separately: 8 bytes (byte) and 16 bytes (byte).In order to adapt to the demand of a plurality of program specific information sample data application, on design Storage; get gauge outfit maximum length 16 bytes (byte); the quantity of program specific information sample data is 32; according to program specific information sample data by correction data (Pattern); therefore mask (Mask) and select to control (Select) three parts and form, is designed to 3x256 bit (bit) x16 to the sheet storage internal.As shown in Figure 4, the address bus A0 of demodulation multiplexer on-chip memory is to A3, be 4,3 block storages are the correction data (Pattern) of corresponding stored program specific information sample data respectively, and (Select) data are controlled in mask (Mask) and selection, its data/address bus is respectively that Pattern0 is to Pattern255, be 256, Mask0, to Mask255, is 256, Select0, to Select255, is 256; PSI0, to PSI23, is 24, and Row_N0, to Row_N8, is 9, is register PSI and Row_N unloading data/address bus.
A line of on-chip memory (Row) has 256 bits (bit) memory space, from being divided in logic 1 byte (byte) x32(N), always have 16 row (Row) and form.
Certain part in three parts of program specific information sample data (remainder therewith part consistent) is not to be stored in a row address (Row) sheet in the middle of memory space with a complete data mode, but these data be take to byte as unit, from the higher bit position to the formation byte serial of low bit, the mode increased with row address (Row) order is stored in the capable byte units memory space alignd with the sample sequence number (N) of program specific information sample data.The benefit of the configuration mode of this memory space is, under the prerequisite that program specific information gauge outfit byte number does not increase, and need the number of increase program specific information sample data, just do not affect program specific information gauge outfit and relatively calculate the spent time (relatively calculating the time of expending is the byte number decision by program specific information gauge outfit), thereby only need to increase calculation logic circuit, improve computational efficiency.
Before the filtration treatment of start-up routine specific information data, need to configure in advance one or more program specific information sample data.Layoutprocedure is as follows:
(11) first configurator specific information sample data.CPU is by three parts of program specific information sample data: correction data (Pattern), (Select) controlled in mask (Mask) and selection, be merged into 32 bit bus data { 8'h0 in the byte-aligned mode, select_byte, mask_byte, pattern_byte}, as shown in Figure 4, by AHB(Advanced High-performance Bus, senior high-performance) bus or other similar interior data/address bus be disposed in sheet in register.
(12) configure again row address (Row) and the sample sequence number (N) corresponding with said procedure specific information sample data, CPU forms 32 bit bus data 32'h80000000+ (Row<<n)+N equally by row address (Row) and sample sequence number (N) data, by ahb bus or other similar interior data/address bus, is disposed in sheet in register.
(13) as shown in Fig. 6~7, writing control logic by on-chip memory writes program specific information sample data in on-chip memory, in the present embodiment, on-chip memory writes control logic according to row address (Row) and sample sequence number (N), by select_byte, mask_byte, pattern_byte writes respectively on-chip memory SRAM_select, SRAM_mask, in the byte storage unit that the row address of SRAM_pattern (Row) and sample sequence number (N) ranks intersect.
(14) circulation step (11) to (13) is until total data has configured, and in the present embodiment, above-mentioned three steps repeat can configure a complete program specific information sample data for 15 times.
(15) if configure a plurality of program specific information sample datas, just by repeated multiple times the getting final product of above-mentioned four steps (the design's case has at most 32 samples).
The method according to this invention, wherein, in described step (11), the data structure of program specific information sample data is divided into, correction data (Pattern), (Select) controlled in mask (Mask) and selection, and three's data length is consistent, during at every turn by bus configuration, the organizational form of data (32 bits (bit) the bit wide bus of take is example), be merged into one 32 bit bus data { 8'h0, select_byte with byte-aligned, mask_byte, pattern_byte}.
According to address mapping method of the present invention, wherein, in described step (12), row address (Row) and sample sequence number (N), the maximum of row address (Row) value is exactly the gauge outfit data maximum number of byte of the table in the program specific information, 16 bytes (byte) i.e. are 16 row, and the data bit width of row address (Row) is 4; Sample sequence number (N), the data bit width n of sample sequence number (N), meet formula 2n-1<=N<=2n.The organizational form of data (32 bits (bit) the bit wide bus of take is example), 32'h80000000+ (Row<<n)+N, 32bit is the address enable signal.
Just can intactly configure needed program specific information sample data through said process, wait for and start the processing procedure of relatively filtering.
When one section TS block code that comprises the program specific information flows to as shown in Fig. 1~2, during the hardware designs module of the filtration treatment of program specific information data, start master control state machine (PSI_TOP_FSM), as shown in Figure 3, the main state conversion of major state machine is by blue lines indication.Master control state machine (PSI_TOP_FSM) state description:
IDLE: state machine is in the free time;
SYNC: state machine is waited for the TS packet data package;
SEC_PAUSE: state machine is in park mode;
SEC_BYPASS: state machine is in bypass mode;
DISCARD_TSP: state machine is in stopping output (abandoning data) pattern;
PID: state machine is in detecting the pid value of TS packet data package;
AF_CTRL: the control information of the adaptation field of state machine in detecting the TS packet data package;
PASS_AF: state machine is in bypass (ignoring) adaptation field field data;
LD_INFO: new gauge outfit relatively before, state machine be written into recorded before last in the TS packet data package the pid value of the TS packet data package of output table, continue_counter value, for the pid value with the current TS packet data package, the comparison of continue_counter value, do not determine whether the table in new TS packet data package is its continuity fully;
PF_BYTE: state machine reads the pointer_field value;
PASS_DATA: state machine is ignored the non-gauge outfit data of program specific information table;
PASS_SEC_HD: state machine fetch program specific information gauge outfit data;
SHORT_SEC: the short gauge outfit data of state machine fetch program specific information;
WAIT_CMP_DONE: the gauge outfit of state machine wait routine specific information table relatively completes;
TS_END_UPDATE:TS grouped data end-of-packet, state machine scratch list header;
In the present embodiment, do not consider state machine in park mode, bypass mode, stop non-general modfel situation such as output (abandoning data) pattern etc., the state of state machine will add the main path conversion that thick line means shown in shown in Fig. 3, thus, state machine sends various control signals and controls various piece co-ordination of the present invention.
Be the gauge outfit information that described state machine master controller obtains described program specific information data, comprise the following steps:
(21) described state machine master controller enters by idle condition the TS packet data package state of waiting for;
(22) described state machine master controller receives the TS packet data package and detects the port id value of described TS packet data package and adjust the control information in field;
(22) described state machine master controller is ignored described adjustment field data and non-gauge outfit data;
(23) described state machine master controller reads the gauge outfit data of described program specific information.
PSI data filtering method provided by the present invention mainly is divided into two large classes, and and matching ratio is not for the gauge outfit matching ratio of program specific information table.Be divided into again 8 bytes (byte) and 16 bytes (byte) pattern according to the data length of the gauge outfit of program specific information table.
Program specific information data filtering method provided by the invention is divided into two classes, the gauge outfit matching ratio of program specific information table filter and not matching ratio filter:
(1) when the startup matching ratio filters, gauge outfit and the sample of program specific information table mate fully, catch the TS packet data package that comprises this program specific information table, otherwise abandon this TS packet data package.
(2) when starting that matching ratio does not filter, gauge outfit and the sample of program specific information table do not mate, and catch the TS packet data package that comprises this program specific information table, otherwise abandon this TS packet data package.
(3) when starting that matching ratio filters and matching ratio does not filter, the priority of coupling comparative result, higher than the priority of not mating comparative result, is preferentially processed the TS packet data package according to above-mentioned coupling comparison principle simultaneously.Even think and also can be abandoned the program specific information table that need to abandon by the software program secondary containing the with good grounds above-mentioned comparison principle that do not mate in this TS packet data package.
The concrete meaning of three parts of program specific information sample data is as follows:
Pattern: correction data, for the gauge outfit with program specific information table relatively;
Mask: control ratio switching signal, 1: open relatively filter logic, 0: close the comparison filter logic;
Select: the selection signal of manner of comparison, 1: corresponding selection is not mated Compare Logic, and 0: corresponding selection coupling Compare Logic;
Above three parts all correspond to the comparison of each Bit data of gauge outfit, and logical relation relatively is as shown in table 1.In table, parameter declaration is as follows:
Bit_match, 1: the representative coupling, 0: representative is not mated;
Bit_no-match, 1: representative is not mated, and 0: the representative coupling;
Filter_bit_match, 0: represent matching filter work, 1: represent that matching filter do not work; (D represents 1 bit (bit) data of gauge outfit)
Filter_bit_no-match, 1: represent not matching filter work, 0: represent that matching filter is not worked; (D represents 1 bit (bit) data of gauge outfit)
Table 1 Compare Logic truth table
Figure BDA0000397247730000101
Figure BDA0000397247730000111
The relatively filtration of 8 bits (bit) data in a byte (byte) completes, and just the result of 8 bits (bit) need to be merged into to the result of a byte (byte).Just can obtain the result of a byte (byte) according to following formula (1), (2), (3), (4).
byte_match[j]=&(bit_match[8:1]) (1)
byte_no-match[j]=|(bit_no-match[8:1]) (2)
byte_filter_bit_match[j]=&(~filter_bit_match[8:1]) (3)
byte_filter_bit_no-match[j]=&(filter_bit_no-match[8:1]) (4)
Wherein, j represents byte (byte) numbering of the gauge outfit data of a program specific information table, span from 1 to 8 or 16.
Equally, just can obtain the result of a program specific information sample data according to following formula (5), (6), (7), (8).
match[i]=&(byte_match[j:1]) (5)
no-match[i]=|(byte_no-match[j:1]) (6)
filter_match[i]=&(~byte_filter_bit_match[j:1]) (7)
filter_no-match[i]=&(byte_filter_bit_no-match[j:1]) (8)
Wherein, j represents byte (byte) numbering of the gauge outfit data of a program specific information table, span from 1 to 8 or 16; I represents a program specific information sample number, span from 1 to 32.
The contained all program specific informations of current TS packet data package complete filtration treatment with all samples respectively, and obtain the result of corresponding each sample, last according to the logical relation shown in following false code, the result of all samples is integrated to the result obtained for current TS packet data package filtration treatment.
If (| filter_match[32:1]) // have at least a sample to mate filtration
pass=(|match[32:1])
Else if (| filter_no-match[32:1]) // have at least a sample not mate filtration
pass=(|no-match[32:1])
Wherein, the value of pass, 1: representative is caught the current TS packet data package, 0: representative abandons the current TS packet data package.
Adopt PSI data filter and filter method in the Set Top Box demultiplexing system in this invention, there is following beneficial effect:
(1) utilize the inventive method to carry out special storage to program specific information sample data, when reading the program specific information sample data configured, mode with normal row address (Row) visit data is carried out, just can be when reading the on-chip memory data line at every turn, obtain having deposited in a certain byte data of all samples of program specific information sample data simultaneously, each just can and the above-mentioned comparison of behavior filter logic circuit read corresponding a plurality of program specific information sample data simultaneously, each just can and the above-mentioned comparison of behavior filter logic circuit read corresponding a plurality of program specific information sample data simultaneously, relatively filtering circuit just can concurrent operation accordingly, when running through all program specific information sample datas that deposited in, just can obtain final comparative result.
(2) according to the matching ratio in program specific information data filtering method, and matching ratio is not, 8 bytes (byte) and 16 byte mode Combination application, greatly improve the relatively accuracy of filtration treatment, so, as the quantity that deposits program specific information sample data in variable (between 1 to N), parallel computing time relatively is constant, be very beneficial for like this tackling the wide variation of TS block code flow rate, solved while needing to process a large amount of program specific information sample data simultaneously, the contradiction that the hardware handles performance is inadequate, so just can increase substantially data reads and the efficiency of calculating, accurately complete program specific information filtration treatment, alleviate significantly the subsequent treatment burden of central processing unit.
In this specification, the present invention is described with reference to its specific embodiment.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, specification and accompanying drawing are regarded in an illustrative, rather than a restrictive.

Claims (11)

1. the program specific information data filter in a Set Top Box demultiplexing system, is characterized in that, described filter comprises:
The state machine master controller, in order to the conversion of the worker state machine of controlling described program specific information data filter;
TS code stream input buffer, the control information that is described state machine master controller fetch program specific information data in order to the current partial data of inputting the TS packet data package of buffer memory provides buffer time;
The Compare Logic processor, compare filtration treatment and result fed back to described state machine master controller in order to the program specific information data in the TS packet data package;
TS code stream output state, in order to buffer memory current output TS packet data package and export corresponding TS packet data package according to the control command of described state machine master controller.
2. the program specific information data filter in Set Top Box demultiplexing system according to claim 1, is characterized in that, described state machine master controller comprises:
The top state machine control module, in order to the conversion of the worker state machine of controlling described program specific information data filter;
The critical data memory module, in order to the First Input First Output of the critical data in temporary described program specific information;
The critical data storage control module, in order to control the storage of the critical data in described program specific information.
3. the program specific information data filter in Set Top Box demultiplexing system according to claim 1, is characterized in that, described TS code stream input buffer comprises:
The path control module, in order to control the handling process path of different program specific information data;
The input data memory module, in order to the First Input First Output of temporary input TS grouping code stream.
4. the program specific information data filter in Set Top Box demultiplexing system according to claim 1, is characterized in that, described Compare Logic processor comprises:
The comparing data memory module, in order to the temporary First Input First Output that is input to the data of described Compare Logic processor;
The conversion logic memory module, carry out logical transition in order to the sample data to described program specific information;
Core Compare Logic module, compare in order to program specific information data and sample data by described TS grouping code stream.
5. the program specific information data filter in Set Top Box demultiplexing system according to claim 1, is characterized in that, described TS code stream output state comprises:
The output data memory module, in order to have kept in the First Input First Output of the TS grouping code stream that filters rear output;
The data bit width modular converter, be stored in the external memory storage of wide bit wide in order to the TS block code flow data of the narrow bit wide program specific information by having exported.
6. realize the method for program specific information data filtering based on filter claimed in claim 1 for one kind in Set Top Box demultiplexing system, it is characterized in that, described method comprises the following steps:
(1) described demultiplexing system is configured to the sample data of described program specific information in the on-chip memory of described demultiplexing system;
(2) described state machine master controller obtains the gauge outfit data of the TS packet data package Program specific information of current input;
(3) described Compare Logic processor compares and catches by the sample data of program specific information and described gauge outfit data the TS packet data package met the demands.
7. realize the method for program specific information data filtering in Set Top Box demultiplexing system according to claim 6, it is characterized in that, described demultiplexing system is configured to the sample data of described program specific information in the on-chip memory of described demultiplexing system, comprises the following steps:
(11) described program specific information sample data is by data/address bus write-in program specific information register;
(12) the corresponding row address of the sample data just write and sample sequence number are by data/address bus writing line and serial number register;
(13) described internal controller write logic controller according to described row address and sample sequence number, described sample data is write in the corresponding memory cell of described on-chip memory;
(14) described demultiplexing system judges whether described sample data has all configured, and if so, continues step (2), if not, continues step (11).
8. realize the method for program specific information data filtering in Set Top Box demultiplexing system according to claim 7, it is characterized in that, described sample data comprises that bit wide is the correction data of 8, mask and selection and controls data, a sample data of described program specific information, by data/address bus write-in program specific information register, is specially:
Each part of a sample data of described program specific information be take the mode of byte-aligned and is merged into data that bit wide is 32 by senior high performance bus write-in program specific information register.
9. realize the method for program specific information data filtering in Set Top Box demultiplexing system according to claim 7, it is characterized in that, the corresponding row address of the described sample data just write and sample sequence number, by data/address bus writing line and serial number register, are specially:
The corresponding row address of the sample data just write and sample sequence number are merged into the data that bit wide is 32 and pass through in senior high performance bus writing line and serial number register.
10. realize the method for program specific information data filtering in Set Top Box demultiplexing system according to claim 6, it is characterized in that, described state machine master controller obtains the gauge outfit data of the TS packet data package Program specific information of current input, comprises the following steps:
(21) described state machine master controller enters by idle condition the TS packet data package state of waiting for;
(22) described state machine master controller receives the TS packet data package and detects the port id value of described TS packet data package and adjust the control information in field;
(22) described state machine master controller is ignored the non-gauge outfit data of described adjustment field data and described TS packet data package Program specific information;
(23) described state machine master controller reads the gauge outfit data of described TS packet data package Program specific information.
11. realize the method for program specific information data filtering in Set Top Box demultiplexing system according to claim 6, it is characterized in that, described sample data comprises correction data, mask and selection control data, described Compare Logic processor compares and catches by the sample data of program specific information and described gauge outfit data the TS packet data package met the demands, and comprises the following steps:
(31) described Compare Logic controller is controlled the type of data judgement Compare Logic according to described selection, if coupling Compare Logic, continue step (32), if do not mate Compare Logic, continue step (33), if start matching ratio and do not mate Compare Logic simultaneously, continue step (32);
(32) described Compare Logic controller judges whether the gauge outfit data of described program specific information data and the correction data in described sample data mate, and if so, continue step (34), if not, continue step (35);
(33) described Compare Logic controller judges whether the gauge outfit data of described program specific information data and the correction data in described sample data mate, and if so, continue step (35), if not, continue step (34);
(34) described state machine master controller is caught the TS packet data package that comprises described program specific information gauge outfit data, then finishes to exit;
(35) described state machine master controller discarded packets, containing the TS packet data package of described program specific information gauge outfit data, then finishes to exit.
CN201310487597.2A 2013-10-17 2013-10-17 PSI (program special information) data filter for set-top box demultiplexing system and filtering method of data filter Pending CN103491417A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310487597.2A CN103491417A (en) 2013-10-17 2013-10-17 PSI (program special information) data filter for set-top box demultiplexing system and filtering method of data filter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310487597.2A CN103491417A (en) 2013-10-17 2013-10-17 PSI (program special information) data filter for set-top box demultiplexing system and filtering method of data filter

Publications (1)

Publication Number Publication Date
CN103491417A true CN103491417A (en) 2014-01-01

Family

ID=49831329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310487597.2A Pending CN103491417A (en) 2013-10-17 2013-10-17 PSI (program special information) data filter for set-top box demultiplexing system and filtering method of data filter

Country Status (1)

Country Link
CN (1) CN103491417A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699448A (en) * 2015-03-20 2015-06-10 上海交通大学 Paralleled decoding system of FAST protocol and realization method of paralleled decoding system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1226357A (en) * 1996-05-31 1999-08-18 汤姆森消费电子有限公司 Block data form for digital data storage medium
JP2008289077A (en) * 2007-05-21 2008-11-27 Sony Corp Reception apparatus and method, and program
CN102098541A (en) * 2010-12-11 2011-06-15 福州大学 Code stream multiplexer constituting device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1226357A (en) * 1996-05-31 1999-08-18 汤姆森消费电子有限公司 Block data form for digital data storage medium
JP2008289077A (en) * 2007-05-21 2008-11-27 Sony Corp Reception apparatus and method, and program
CN102098541A (en) * 2010-12-11 2011-06-15 福州大学 Code stream multiplexer constituting device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699448A (en) * 2015-03-20 2015-06-10 上海交通大学 Paralleled decoding system of FAST protocol and realization method of paralleled decoding system

Similar Documents

Publication Publication Date Title
EP1636695B1 (en) An apparatus and method for selectable hardware accelerators in a data driven architecture
CN100414535C (en) Reconfigurable integrated circuit device
US8954174B2 (en) Method and device to process digital media streams
US7185224B1 (en) Processor isolation technique for integrated multi-processor systems
US6330584B1 (en) Systems and methods for multi-tasking, resource sharing and execution of computer instructions
US8677045B2 (en) Transaction reordering system and method with protocol indifference
CN102402490B (en) There is the multi-Port Memory Controller of the port associated with class of service
CN101685388B (en) Method and device for executing comparison operation
CN100527111C (en) On-chip DMA structure and its implement method
US20100030927A1 (en) General purpose hardware acceleration via deirect memory access
CN103714026B (en) A kind of memory access method supporting former address data exchange and device
CN105183698A (en) Control processing system and method based on multi-kernel DSP
WO2003003197A2 (en) System-on-a-chip controller
CN101510185A (en) Method and apparatus for writing-in and reading data to low speed bus from high speed bus
US20120079148A1 (en) Reordering arrangement
US7007111B2 (en) DMA port sharing bandwidth balancing logic
WO2006002209A2 (en) Processing digital media streams
IL264794B2 (en) Scheduling of tasks in a multiprocessor device
US8358312B2 (en) Multi-pass system and method supporting multiple streams of video
CN103491417A (en) PSI (program special information) data filter for set-top box demultiplexing system and filtering method of data filter
CN104834629B (en) The central processing unit of bus-type
CN114116015B (en) Method and system for managing hardware command queue
US11544009B2 (en) Heterogeneous computation and hierarchical memory image sensing pipeline
CN101859429A (en) Embedded image processing method and device for machine vision
CN204652526U (en) A kind of video acquisition memory circuit based on FPGA

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140101