+

WO2016000376A1 - Signal processing method and signal processing apparatus based on pci-e interfaces - Google Patents

Signal processing method and signal processing apparatus based on pci-e interfaces Download PDF

Info

Publication number
WO2016000376A1
WO2016000376A1 PCT/CN2014/090397 CN2014090397W WO2016000376A1 WO 2016000376 A1 WO2016000376 A1 WO 2016000376A1 CN 2014090397 W CN2014090397 W CN 2014090397W WO 2016000376 A1 WO2016000376 A1 WO 2016000376A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
pci
tlp
signal processing
input signal
Prior art date
Application number
PCT/CN2014/090397
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2016000376A1 publication Critical patent/WO2016000376A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer

Definitions

  • the present invention relates to the field of signal processing, and in particular, to a signal processing method and a signal processing apparatus based on a PCI-E interface.
  • PCI-E Peripheral Component Interconnect Express
  • Intel Corporation in 2001. At the end of 2002, it merged with AMD, DELL, IBM and other companies to form a technical specification named PCI-E.
  • PCI-E uses the popular point-to-point serial connection in the industry. Each device has its own dedicated connection. It does not need to request bandwidth from the entire bus, and can increase the data transmission rate to a very high frequency.
  • PCI-E Dual simplex connections provide higher transfer rates and quality.
  • the PCI-E interface differs according to the bit width requirements of the bus interface, which are PCI-E 1X (250M/S), 2X, 4X, 8X, 16X, or even 32X.
  • the 1X rate is the lowest and the 32X rate is the highest.
  • This technology is widely used in industrial control, communication, and computer fields, and has become the mainstream of breakthrough transmission rate and fast interconnection.
  • Altera and Xilinx have introduced their own PCI-E core (PCI-E core) high-end FPGA (Field-Programmable Gate Array), also known as programmable controller ), the application of PCI-E to achieve 100G and 400G, more and more become the preferred solution for major communication vendors.
  • PCI-E core PCI-E core
  • FPGA Field-Programmable Gate Array
  • the implementation of the PCI-E technology is for a specific signal or a specific format, and the transmission mode is single, which is difficult to meet the requirements for multiple signal access.
  • the embodiment of the invention provides a signal processing method and a signal processing device based on a PCI-E interface, so as to at least solve the problem that the prior art can only perform for a specific signal or a specific format when adopting the PCI-E high-speed transmission technology. Transmission, and a single transmission method, it is difficult to meet the problem of the need for multiple signal access.
  • an embodiment of the present invention provides a signal processing method based on a PCI-E interface, including:
  • the TLP message of each input signal is output to the PCI-E controller.
  • the plurality of signals comprise at least two of an SDH overhead signal, an OTN overhead signal, a DVB signal, and a CPU signal.
  • the step of acquiring multiple types of input signals of different types is specifically: acquiring multiple types of input signals of different types, and storing each input signal in a cache unit, wherein the size of the cache unit is respectively Assigned according to the format of each input signal.
  • the step of converting each of the plurality of input signals into a TLP message that satisfies a PCI-E bus format and buffering, respectively includes:
  • each input signal is sequentially converted to obtain a TLP message satisfying each input signal of the PCI-E bus format and buffered.
  • the step of performing arbitration control on the TLP message of each input signal that is buffered includes:
  • the preset rule includes: a preset outflow order of each TLP packet, a preset priority between multiple TLP messages, a sending interval between TLP messages, and a processing method of an error packet.
  • the embodiment of the invention provides a signal processing device based on a PCI-E interface, including:
  • Obtaining a module configured to obtain a plurality of input signals of different types
  • a conversion module configured to convert each of the plurality of input signals into a TLP message that satisfies a PCI-E bus format and cache the same;
  • control module configured to arbitrate control of a TLP message of each input signal buffered
  • the transmission module is configured to output a TLP message of each input signal to the PCI-E controller for output according to the result of the arbitration control.
  • the acquiring module acquires multiple input signals of different types, and stores each input signal into a buffer unit, wherein the size of the buffer unit is respectively allocated according to a format of each input signal.
  • the conversion module includes:
  • a first obtaining unit configured to acquire processing priority of different types of signals
  • the conversion unit is configured to sequentially perform conversion processing on each input signal in the order of the processing priority to obtain a TLP message satisfying each input signal of the PCI-E bus format and buffering.
  • control module includes:
  • a second obtaining unit configured to acquire a preset rule
  • control unit configured to perform arbitration control on the TLP message according to the preset rule
  • the preset rule includes: a preset outflow order of each TLP packet, a preset priority between multiple TLP messages, a sending interval between TLP messages, and a processing method of an error packet.
  • the above solution realizes transmission control of multiple access signals by using arbitration control, and transmits to a PCI-E controller through a single interface. In this way, the setting of the PCI-E interface is reduced, and the processing efficiency of the signal is improved, and at the same time Improve equipment interconnection efficiency.
  • FIG. 2 is a block diagram showing the signal processing apparatus according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of signal access according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram showing a signal processing flow according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a module in an FPGA according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram showing a signal processing process of an arbitration module in an FPGA according to an embodiment of the present invention.
  • Fig. 7 is a diagram showing the signal conversion of the embodiment of the present invention.
  • the present invention is directed to the prior art that when the PCI-E high-speed transmission technology is adopted, the transmission can only be performed for a specific signal or a specific format, and the transmission mode is single, and it is difficult to meet the problem of demand for multiple signal access, and a problem is provided.
  • a signal processing method and a signal processing device based on a PCI-E interface are provided.
  • the signal processing method of the embodiment of the present invention includes:
  • Step 10 acquiring multiple types of input signals of different types
  • Step 20 Convert each input signal of the multiple input signals into a Transaction Layer Packet (TLP) message that satisfies the PCI-E bus format, and cache the signal;
  • TLP Transaction Layer Packet
  • Step 30 Perform arbitration control on the TLP message of each input signal that is buffered
  • Step 40 According to the result of the arbitration control, the TLP message of each input signal is output to the PCI-E controller.
  • transmission control of multiple access signals is realized by using arbitration control, and is transmitted to the PCI-E controller through a single interface, thereby reducing the setting of the PCI-E interface and improving the interconnection efficiency of the device.
  • each input signal may be a CPU signal, an OTN (Optical Transport Network) overhead signal, an SDH (Synchronous Digital Hierarchy) signal, or a DVB (Digital Video Broadcasting).
  • OTN Optical Transport Network
  • SDH Synchronous Digital Hierarchy
  • DVB Digital Video Broadcasting
  • each input signal is first stored in a buffer, and the buffer size occupied by the signal is correspondingly allocated according to the format of each input signal.
  • the step 20 in the embodiment of the present invention is specifically:
  • each input signal is sequentially converted to obtain a TLP message satisfying each input signal of the PCI-E bus format and buffered.
  • the type of each input signal in the buffer is obtained, and then according to the processing priority of different types of signals, which signal is first converted, for example, the processing order of the signal is CPU signal, OTN overhead signal, if both of the above are exist in the buffer
  • the signal firstly converts the format of the CPU signal.
  • the format conversion of the OTN overhead signal is performed.
  • the preset conversion rule corresponding to the signal is called according to the type of each signal. , complete the format conversion of this kind of signal.
  • the preset rule mainly includes: a preset outflow order of each TLP message, a priority between preset multiple TLP messages, a sending interval between TLP messages, and an error packet.
  • the packet check is performed on each TLP packet, and the TLP packet can be sent only after the check is passed.
  • the TLP packet is sequentially transmitted according to the priority order of the TLP packet. After the data in all the TLP packets is transmitted in the sequence, the next TLP packet can be transmitted after the preset interval is reached.
  • arbitration control is actually processing a signal, that is, the PCI-E standard packet format, which simplifies the processing flow.
  • the PCI-E controller After the TLP packet is transmitted to the PCI-E controller, the PCI-E controller sends the TLP packet to the corresponding device to output the TLP packet according to the type of the TLP packet.
  • the received multiple input signals are respectively converted into corresponding data packets satisfying the PCI-E bus format, and then the data packets are respectively sent to the PCI-E by an interface through arbitration control.
  • -E controller can receive multiple different signals through one interface, reduce interface settings, improve signal processing efficiency, improve device interconnection efficiency, and simplify signal docking between boards, saving The cost.
  • the signal processing apparatus of the embodiment of the present invention includes:
  • Obtaining module 1 configured to acquire a plurality of input signals of different types
  • the conversion module 2 is configured to respectively convert each of the plurality of input signals into a TLP message that satisfies the PCI-E bus format and cache the same;
  • the control module 3 is configured to perform arbitration control on the TLP message of each input signal buffered
  • the sending module 4 is configured to output a TLP message of each input signal to the PCI-E controller according to the result of the arbitration control.
  • the obtaining module 1 is configured to acquire different types of input signals of different types, and store each input signal into the buffer unit separately, and the size of the buffer unit is respectively allocated according to the format of each input signal. of.
  • the conversion module 2 includes:
  • a first obtaining unit configured to acquire processing priority of different types of signals
  • the conversion unit is configured to sequentially perform conversion processing on each input signal in the order of the processing priority to obtain a TLP message satisfying each input signal of the PCI-E bus format and buffering.
  • control module 3 includes:
  • a second obtaining unit configured to acquire a preset rule
  • the control unit is configured to perform arbitration control on the TLP message according to the preset rule.
  • the preset rule acquired by the second acquiring unit mainly includes: a preset outflow order of each TLP packet, a preset priority between multiple TLP packets, and a TLP packet.
  • the sending interval and the processing method of the error packet mainly includes: a preset outflow order of each TLP packet, a preset priority between multiple TLP packets, and a TLP packet.
  • the signal processing device embodiment is a signal processing device corresponding to the above signal processing method, and all implementations of the signal processing method are applicable to the signal processing device embodiment, and can also achieve the signal processing method. The same technical effect.
  • PCI-E core PCI-E core
  • the core is used for PCI-E transmission, and the transmission rate setting and PCI-E core setting can be configured according to the configuration wizard in an IDE (Integrated Drive Electronics) development environment.
  • the PCI-E core includes SERDES (short for SERializer/DESerializer) and PCI-E, and the signal is transmitted between the PCI-E core and the arbitration module, all inputs.
  • the signals (CPU signal, OTN overhead signal, SDH signal, DVB signal, etc.) are all connected to the arbitration module through the dedicated signal access pin of the FPGA, and then stored in the buffer (RAM), after the format conversion of the input signal is performed. Then, the various converted signals are subjected to abnormal processing, and the converted signal is subjected to arbitration control according to the arbitration profile accessed by the control signal, and then the converted signal is respectively sent to the PCI-E core via the cache.
  • the processing flow of the signal is: a plurality of different kinds of input signals (such as CPU signal, OTN overhead signal, SDH signal) are first stored in the buffer RAM, and then the input signals in the buffer RAM are respectively passed.
  • the corresponding format conversion rule is converted into a TLP message having a unified format, and then the flow control module performs exception processing on the signals according to the arbitration configuration information (ie, the preset rule described above) and outputs an abnormal processing result, and after the processing is completed,
  • the TLP packets corresponding to the input signals are separately transmitted through the PCI-E core interface.
  • the FPGA module includes a PCI-E module and an arbitration module;
  • the PCI-E module is instantiated using Vivado (Vivado Design Suite, an integrated design environment released by FPGA manufacturer Xilinx in 2012), consisting of a PCI-E core and a configuration module.
  • the PCI-E core is mainly composed of PCI-E core.
  • SERDES and PCI-E the PCI-E module is mainly configured to complete the conversion of the PCI-E serial interface and process the PCI-E related protocol; wherein the PCI-E core is used by the IP core (IP core is used for Product application specific integrated circuit (ASIC) or FPGA logic block or data block is generated.
  • IP core IP core is used for Product application specific integrated circuit (ASIC) or FPGA logic block or data block is generated.
  • the configuration module Due to the complicated configuration of PCI-E, the configuration module is implemented separately outside the IP core. This configuration module not only completes the configuration of the RC (Root Complex) side. And complete the configuration of the EP (End Point) end (by configuring the TLP
  • the configuration module is composed of a Completion Decoder, a Controller, a Packet Generator, and a TX Mux.
  • the configuration module is configured to send and receive service TLP packets. Only for transparent transmission, the PCI-E core and the configuration module are connected by AXI4-Stream (a bus protocol) interface, and the PCI-E module and the signal processing device are also connected using the AXI4-Stream interface.
  • AXI4-Stream a bus protocol
  • the arbitration module is in the PCI-E sending direction, and the module completes the arbitration of the CPU_TLP packet, the OTN_TLP packet, and the like, and uses a sequential polling mechanism (which can be modified by the configuration file cfg_file) as an example, and various TLPs.
  • the packets have the same priority and are sequentially sent.
  • the PCI-E receiving direction it is necessary to determine the response of the received packet to which signal, and according to the determination result, the packet is sent to the corresponding module; in addition, the arbitration module further It is necessary to implement the TLP packet reception failure determination function, and start timing after transmission.
  • the TLP packet reception failure is reported, and the failure indication signal is valid for at least one clock cycle.
  • the number of failure registers is incremented by one, and the next TLP packet can be sent.
  • the AXI bus is no longer occupied.
  • the arbitration module also implements the AXI interface with the PCI-E IPcore, if the receiving clock and transmission are provided by the PCI-E IPcore. If the clock is not a clock, the module needs to perform cross-clock domain processing on the received TLP packet with FIFO (First Input First Output), and convert the received TLP packet into a transmission clock domain, for example, a cross-clock domain. After processing, the frequency of the receive and transmit clocks is 37.25MHz, but the frequency has a slight deviation.
  • the TLP message after the signal conversion is completed is stored in the corresponding cache.
  • the TLP message completed by the CPU signal conversion is recorded as CPU_TLP
  • the CPU_TLP is stored in the cache
  • the cache field is recorded as CPU_TLP_BUFFER
  • the OTN message completed by the OTN signal is recorded as OTN_TLP
  • the OTN_TLP is stored in the buffer
  • the buffer field is recorded as OTN_TLP_BUFFER
  • the flow control module FLOW_CTRL
  • the CPU_TLP and the OTN_TLP are respectively transmitted through the AXI interface; after the flow control module receives the signal transmitted by the AXI interface, the signal is also subjected to arbitration control according to the configuration file (Cfg_file), and then the received signal is transmitted.
  • arbitration module implements various control functions such as polling control, burst control, priority programmable control, and packet interval programmable control.
  • the signal transmission is bidirectional, when receiving the TLP message sent in the PCI-E direction, it first determines the response of the received TLP message to which signal, and then separately reports the TLP.
  • the text is converted into a signal conforming to the device by using the corresponding format conversion rule, and then the format converted signal is sent to the corresponding device; when the signal sent by the device is received, the corresponding format conversion rule is used.
  • the signal format is converted into a TLP message, and then the TLP message is transmitted.
  • the PCI-E interface-based signal processing method and the signal processing apparatus provided by the embodiments of the present invention have the following beneficial effects: transmission control of multiple access signals is implemented by using arbitration control, and is sent to a single interface.
  • the PCI-E controller reduces the setting of the PCI-E interface, improves the processing efficiency of the signal, and improves the interconnection efficiency of the device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)
  • Communication Control (AREA)

Abstract

The present invention relates to the field of signal processing. The present invention provides a signal processing method and a signal processing apparatus based on PCI-E interfaces. The signal processing method comprises: acquiring multiple different types of input signals; converting each of the multiple types of input signals into a transaction layer packet (TLP) packet satisfying a PCI-E bus format and buffering the TLP packet; performing arbitration control on the buffered TLP packet of each type of input signal; and providing the TLP packet of each type of input signal to a PCI-E controller for output according to the result of arbitration control. According to the solution, transmission control of multiple types of access signals is realized by arbitration control. By means of the solution, few PCI-E interfaces are arranged, and device interconnection efficiency is improved.

Description

一种基于PCI-E接口的信号处理方法及信号处理装置Signal processing method and signal processing device based on PCI-E interface 技术领域Technical field

本发明涉及信号处理领域,特别涉及一种基于PCI-E接口的信号处理方法及信号处理装置。The present invention relates to the field of signal processing, and in particular, to a signal processing method and a signal processing apparatus based on a PCI-E interface.

背景技术Background technique

PCI-E(Peripheral Component Interconnect Express,即高速传输的外部互联设备标准)技术由Intel公司在2001年提出,并在2002年底联合AMD,DELL,IBM等公司形成技术规范,命名为PCI-E,是第三代I/O总线的标准。PCI-E采用了目前业内流行的点对点串行连接,每个设备都有自己的专用连接,不需要向整个总线请求带宽,而且可以把数据传输率提高到一个很高的频率,PCI-E的双单工连接能够提供更高的传送速率和质量。PCI-E接口根据总线接口对位宽的要求不同而有所差异,分别为PCI-E 1X(250M/S)、2X、4X、8X、16X、甚至32X,1X速率最低,32X速率最高。该技术正在广泛应用在工业控制、通信、计算机领域,成为突破传输速率,快速互联的主流。在通信领域,随着Altera和Xilinx公司相继推出自身集成PCI-E core(PCI-E硬核)的高端FPGA(Field-Programmable Gate Array,即领域可编程门阵列,也可称为可编程控制器),应用PCI-E实现100G和400G,越来越多的成为各大通信厂商的首选方案。PCI-E (Peripheral Component Interconnect Express) technology was proposed by Intel Corporation in 2001. At the end of 2002, it merged with AMD, DELL, IBM and other companies to form a technical specification named PCI-E. The third generation I/O bus standard. PCI-E uses the popular point-to-point serial connection in the industry. Each device has its own dedicated connection. It does not need to request bandwidth from the entire bus, and can increase the data transmission rate to a very high frequency. PCI-E Dual simplex connections provide higher transfer rates and quality. The PCI-E interface differs according to the bit width requirements of the bus interface, which are PCI-E 1X (250M/S), 2X, 4X, 8X, 16X, or even 32X. The 1X rate is the lowest and the 32X rate is the highest. This technology is widely used in industrial control, communication, and computer fields, and has become the mainstream of breakthrough transmission rate and fast interconnection. In the field of communications, Altera and Xilinx have introduced their own PCI-E core (PCI-E core) high-end FPGA (Field-Programmable Gate Array), also known as programmable controller ), the application of PCI-E to achieve 100G and 400G, more and more become the preferred solution for major communication vendors.

但现有的技术方案,PCI-E技术的实现是针对特定信号或者特定格式来进行的传输,并且传输方式单一,难以满足对多种信号接入的需求。However, in the existing technical solution, the implementation of the PCI-E technology is for a specific signal or a specific format, and the transmission mode is single, which is difficult to meet the requirements for multiple signal access.

发明内容Summary of the invention

本发明实施例提供了一种基于PCI-E接口的信号处理方法及信号处理装置,以至少解决现有技术中在采用PCI-E高速传输技术时,只能针对特定信号或者特定格式来进行的传输,且传输方式单一,难以满足对多种信号接入的需求的问题。The embodiment of the invention provides a signal processing method and a signal processing device based on a PCI-E interface, so as to at least solve the problem that the prior art can only perform for a specific signal or a specific format when adopting the PCI-E high-speed transmission technology. Transmission, and a single transmission method, it is difficult to meet the problem of the need for multiple signal access.

为了解决上述技术问题,本发明实施例提供一种基于PCI-E接口的信号处理方法,包括:In order to solve the above technical problem, an embodiment of the present invention provides a signal processing method based on a PCI-E interface, including:

获取不同类型的多种输入信号; Obtain different types of input signals of different types;

将所述多种输入信号中的每种输入信号分别转换成满足PCI-E总线格式的事务层包TLP报文后并缓存;Converting each of the plurality of input signals into a transaction layer packet TLP message that satisfies the PCI-E bus format and buffering;

对缓存的每种输入信号的TLP报文进行仲裁控制;Arbitral control of the TLP message of each input signal buffered;

根据所述仲裁控制后的结果,将每种输入信号的TLP报文给PCI-E控制器进行输出。According to the result of the arbitration control, the TLP message of each input signal is output to the PCI-E controller.

可选地,所述多种信号包括SDH开销信号、OTN开销信号、DVB信号和CPU信号中的至少两种。Optionally, the plurality of signals comprise at least two of an SDH overhead signal, an OTN overhead signal, a DVB signal, and a CPU signal.

可选地,所述获取不同类型的多种输入信号的步骤具体为:获取不同类型的多种输入信号,并将每种输入信号分别存入缓存单元,其中,所述缓存单元的大小是分别根据每种输入信号的格式来分配的。Optionally, the step of acquiring multiple types of input signals of different types is specifically: acquiring multiple types of input signals of different types, and storing each input signal in a cache unit, wherein the size of the cache unit is respectively Assigned according to the format of each input signal.

可选地,所述将所述多种输入信号中的每种输入信号分别转换成满足PCI-E总线格式的TLP报文后并缓存的步骤包括:Optionally, the step of converting each of the plurality of input signals into a TLP message that satisfies a PCI-E bus format and buffering, respectively, includes:

获取不同种类信号的处理优先级;Obtain processing priorities for different types of signals;

按照所述处理优先级的顺序,对每种输入信号依次进行转换处理,得到满足PCI-E总线格式的每种输入信号的TLP报文并缓存。According to the order of processing priorities, each input signal is sequentially converted to obtain a TLP message satisfying each input signal of the PCI-E bus format and buffered.

可选地,所述对缓存的每种输入信号的TLP报文进行仲裁控制的步骤包括:Optionally, the step of performing arbitration control on the TLP message of each input signal that is buffered includes:

获取预设规则;Get preset rules;

根据所述预设规则,对所述TLP报文进行仲裁控制;Performing arbitration control on the TLP message according to the preset rule;

其中,所述预设规则包括:预设的每种TLP报文的流出顺序、预设的多种TLP报文之间的优先级、TLP报文之间的发送间隔以及错误包的处理方法。The preset rule includes: a preset outflow order of each TLP packet, a preset priority between multiple TLP messages, a sending interval between TLP messages, and a processing method of an error packet.

本发明实施例提供一种基于PCI-E接口的信号处理装置,包括:The embodiment of the invention provides a signal processing device based on a PCI-E interface, including:

获取模块,设置为获取不同类型的多种输入信号;Obtaining a module, configured to obtain a plurality of input signals of different types;

转换模块,设置为将所述多种输入信号中的每种输入信号分别转换成满足PCI-E总线格式的TLP报文后并缓存;a conversion module, configured to convert each of the plurality of input signals into a TLP message that satisfies a PCI-E bus format and cache the same;

控制模块,设置为对缓存的每种输入信号的TLP报文进行仲裁控制; a control module configured to arbitrate control of a TLP message of each input signal buffered;

传输模块,设置为根据所述仲裁控制后的结果,将每种输入信号的TLP报文给PCI-E控制器进行输出。The transmission module is configured to output a TLP message of each input signal to the PCI-E controller for output according to the result of the arbitration control.

可选地,所述获取模块获取不同类型的多种输入信号,并将每种输入信号分别存入缓存单元,其中,所述缓存单元的大小是分别根据每种输入信号的格式来分配的。Optionally, the acquiring module acquires multiple input signals of different types, and stores each input signal into a buffer unit, wherein the size of the buffer unit is respectively allocated according to a format of each input signal.

可选地,所述转换模块包括:Optionally, the conversion module includes:

第一获取单元,设置为获取不同种类信号的处理优先级;a first obtaining unit, configured to acquire processing priority of different types of signals;

转换单元,设置为按照所述处理优先级的顺序,对每种输入信号依次进行转换处理,得到满足PCI-E总线格式的每种输入信号的TLP报文并缓存。The conversion unit is configured to sequentially perform conversion processing on each input signal in the order of the processing priority to obtain a TLP message satisfying each input signal of the PCI-E bus format and buffering.

可选地,所述控制模块包括:Optionally, the control module includes:

第二获取单元,设置为获取预设规则;a second obtaining unit, configured to acquire a preset rule;

控制单元,设置为根据所述预设规则,对所述TLP报文进行仲裁控制;a control unit, configured to perform arbitration control on the TLP message according to the preset rule;

其中,所述预设规则包括:预设的每种TLP报文的流出顺序、预设的多种TLP报文之间的优先级、TLP报文之间的发送间隔以及错误包的处理方法。The preset rule includes: a preset outflow order of each TLP packet, a preset priority between multiple TLP messages, a sending interval between TLP messages, and a processing method of an error packet.

本发明的有益效果是:The beneficial effects of the invention are:

上述方案,通过利用仲裁控制实现对多种接入信号的传输控制,通过单一接口发送给PCI-E控制器,此种方式,减少了PCI-E接口的设置,提高了信号的处理效率,同时提高了设备互联效率。The above solution realizes transmission control of multiple access signals by using arbitration control, and transmits to a PCI-E controller through a single interface. In this way, the setting of the PCI-E interface is reduced, and the processing efficiency of the signal is improved, and at the same time Improve equipment interconnection efficiency.

附图说明DRAWINGS

图1表示本发明实施例的所述信号处理方法的总体流程图;1 is a general flowchart of the signal processing method according to an embodiment of the present invention;

图2表示本发明实施例的所述信号处理装置的模块示意图;2 is a block diagram showing the signal processing apparatus according to an embodiment of the present invention;

图3表示本发明实施例的信号接入示意图;FIG. 3 is a schematic diagram of signal access according to an embodiment of the present invention; FIG.

图4表示本发明实施例的信号处理流程示意图;4 is a schematic diagram showing a signal processing flow according to an embodiment of the present invention;

图5表示本发明实施例的FPGA中模块示意图;FIG. 5 is a schematic diagram of a module in an FPGA according to an embodiment of the present invention; FIG.

图6表示本发明实施例的FPGA中仲裁模块的信号处理过程示意图; 6 is a schematic diagram showing a signal processing process of an arbitration module in an FPGA according to an embodiment of the present invention;

图7表示本发明实施例的信号转换示意图。Fig. 7 is a diagram showing the signal conversion of the embodiment of the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图及具体实施例对本发明进行详细描述。The present invention will be described in detail below with reference to the drawings and specific embodiments.

本发明针对现有技术中在采用PCI-E高速传输技术时,只能针对特定信号或者特定格式来进行的传输,且传输方式单一,难以满足对多种信号接入的需求的问题,提供一种基于PCI-E接口的信号处理方法及信号处理装置。The present invention is directed to the prior art that when the PCI-E high-speed transmission technology is adopted, the transmission can only be performed for a specific signal or a specific format, and the transmission mode is single, and it is difficult to meet the problem of demand for multiple signal access, and a problem is provided. A signal processing method and a signal processing device based on a PCI-E interface.

如图1所示,本发明实施例的所述信号处理方法,包括:As shown in FIG. 1, the signal processing method of the embodiment of the present invention includes:

步骤10,获取不同类型的多种输入信号;Step 10: acquiring multiple types of input signals of different types;

步骤20,将所述多种输入信号中的每种输入信号分别转换成满足PCI-E总线格式的事务层包(TLP,Transaction Layer Packet)报文后并缓存;Step 20: Convert each input signal of the multiple input signals into a Transaction Layer Packet (TLP) message that satisfies the PCI-E bus format, and cache the signal;

步骤30,对缓存的每种输入信号的TLP报文进行仲裁控制;Step 30: Perform arbitration control on the TLP message of each input signal that is buffered;

步骤40,根据所述仲裁控制后的结果,将每种输入信号的TLP报文给PCI-E控制器进行输出。Step 40: According to the result of the arbitration control, the TLP message of each input signal is output to the PCI-E controller.

本发明上述方案,通过利用仲裁控制实现对多种接入信号的传输控制,并通过单一接口发送给PCI-E控制器,减少了PCI-E接口的设置,提高了设备互联效率。According to the above solution of the present invention, transmission control of multiple access signals is realized by using arbitration control, and is transmitted to the PCI-E controller through a single interface, thereby reducing the setting of the PCI-E interface and improving the interconnection efficiency of the device.

应当说明的是,每种输入信号可以为CPU信号、OTN(Optical Transport Network,即光传送网)开销信号、SDH(Synchronous Digital Hierarchy,同步数字体系)信号、DVB(Digital Video Broadcasting,即数字视频广播)信号以及经过信号格式转换后能满足PCI-E总线格式的任意信号,所述多种输入信号包含上述信号中的至少两种。It should be noted that each input signal may be a CPU signal, an OTN (Optical Transport Network) overhead signal, an SDH (Synchronous Digital Hierarchy) signal, or a DVB (Digital Video Broadcasting). a signal and any signal capable of satisfying the PCI-E bus format after signal format conversion, the plurality of input signals comprising at least two of the above signals.

具体地,在接收到多种信号后,首先要将每种输入信号分别存入缓存,并且根据每种输入信号的格式来对应分配信号所占用的缓存大小。Specifically, after receiving a plurality of signals, each input signal is first stored in a buffer, and the buffer size occupied by the signal is correspondingly allocated according to the format of each input signal.

信号接收完成后,需要将每种输入信号进行格式转换,转换为能满足PCI-E总线格式的事务包TLP报文,本发明实施例的所述步骤20具体为:After the signal is received, the input signal needs to be formatted and converted into a transaction packet TLP packet that can satisfy the PCI-E bus format. The step 20 in the embodiment of the present invention is specifically:

获取不同种类信号的处理优先级; Obtain processing priorities for different types of signals;

按照所述处理优先级的顺序,对每种输入信号依次进行转换处理,得到满足PCI-E总线格式的每种输入信号的TLP报文并缓存。According to the order of processing priorities, each input signal is sequentially converted to obtain a TLP message satisfying each input signal of the PCI-E bus format and buffered.

首先获取缓存中每种输入信号的类型,然后根据不同种类信号的处理优先级判定首先对哪个信号进行转换,例如信号的处理顺序为CPU信号、OTN开销信号,若缓存中同时存在有上述两种信号,则首先对CPU信号进行格式转换,当CPU信号格式转换完成后再进行OTN开销信号的格式转换,在进行格式转换时,根据每种信号的类型,调用此种信号对应的预设转换规则,完成对此种信号的格式转换。First, the type of each input signal in the buffer is obtained, and then according to the processing priority of different types of signals, which signal is first converted, for example, the processing order of the signal is CPU signal, OTN overhead signal, if both of the above are exist in the buffer The signal firstly converts the format of the CPU signal. When the conversion of the CPU signal format is completed, the format conversion of the OTN overhead signal is performed. When the format conversion is performed, the preset conversion rule corresponding to the signal is called according to the type of each signal. , complete the format conversion of this kind of signal.

应当说明的是,所述信号格式转换过程为本领域技术人员所熟知的,在此不再详细说明。It should be noted that the signal format conversion process is well known to those skilled in the art and will not be described in detail herein.

在对每种输入信号进行格式转换完成后,便是对每种TLP报文的传输,在进行传输之前,需要对每种事务包TLP报文进行发送控制,因此本发明实施例的所述步骤30具体为:After the format conversion of each input signal is completed, the transmission of each TLP message is performed. Before the transmission, the TLP message of each transaction packet needs to be sent and controlled. Therefore, the steps of the embodiment of the present invention are performed. 30 is specifically:

获取预设规则;Get preset rules;

根据所述预设规则,对所述TLP报文进行仲裁控制。And performing arbitration control on the TLP message according to the preset rule.

应当说明的是,所述预设规则主要包括:预设的每种TLP报文的流出顺序、预设的多种TLP报文之间的优先级、TLP报文之间的发送间隔以及错误包的处理方法,依据此预设规则,首先对每种TLP报文进行包校验,只有当校验通过后才能发送此TLP报文;在传输时,会依据TLP报文的优先级顺序依次传输,只有一个TLP报文中的所有数据按照顺序传输完成后,在达到了预设的发送间隔后,才能进行下一个TLP报文的传输。It should be noted that the preset rule mainly includes: a preset outflow order of each TLP message, a priority between preset multiple TLP messages, a sending interval between TLP messages, and an error packet. According to the preset rule, the packet check is performed on each TLP packet, and the TLP packet can be sent only after the check is passed. In the transmission, the TLP packet is sequentially transmitted according to the priority order of the TLP packet. After the data in all the TLP packets is transmitted in the sequence, the next TLP packet can be transmitted after the preset interval is reached.

应当说明的是,所述仲裁控制其实只是对一种信号做处理,即PCI-E的标准包格式,这样便简化了处理流程。It should be noted that the arbitration control is actually processing a signal, that is, the PCI-E standard packet format, which simplifies the processing flow.

在将TLP报文传输给PCI-E控制器后,PCI-E控制器根据TLP报文的种类分别将所述TLP报文发送给对应的设备实现TLP报文的输出。After the TLP packet is transmitted to the PCI-E controller, the PCI-E controller sends the TLP packet to the corresponding device to output the TLP packet according to the type of the TLP packet.

上述方案,通过将接收的多个输入信号分别转换成对应的满足PCI-E总线格式的数据包,然后经过仲裁控制由一个接口分别发送所述数据包给PCI-E,此种方法,使得PCI-E控制器只通过一个接口便可实现对多种不同信号的接收,减少了接口设置,提高了信号的处理效率,同时提高了设备互联效率,同时简化了单板之间的信号对接,节约了成本。 In the above solution, the received multiple input signals are respectively converted into corresponding data packets satisfying the PCI-E bus format, and then the data packets are respectively sent to the PCI-E by an interface through arbitration control. -E controller can receive multiple different signals through one interface, reduce interface settings, improve signal processing efficiency, improve device interconnection efficiency, and simplify signal docking between boards, saving The cost.

如图2所示,本发明实施例的所述信号处理装置,包括:As shown in FIG. 2, the signal processing apparatus of the embodiment of the present invention includes:

获取模块1,设置为获取不同类型的多种输入信号;Obtaining module 1, configured to acquire a plurality of input signals of different types;

转换模块2,设置为将所述多种输入信号中的每种输入信号分别转换成满足PCI-E总线格式的TLP报文后并缓存;The conversion module 2 is configured to respectively convert each of the plurality of input signals into a TLP message that satisfies the PCI-E bus format and cache the same;

控制模块3,设置为对缓存的每种输入信号的TLP报文进行仲裁控制;The control module 3 is configured to perform arbitration control on the TLP message of each input signal buffered;

发送模块4,设置为根据所述仲裁控制后的结果,将每种输入信号的TLP报文给PCI-E控制器进行输出。The sending module 4 is configured to output a TLP message of each input signal to the PCI-E controller according to the result of the arbitration control.

应当说明的是,获取模块1设置为获取不同类型的多种输入信号,并将每种输入信号分别存入缓存单元,并且,所述缓存单元的大小是分别根据每种输入信号的格式来分配的。It should be noted that the obtaining module 1 is configured to acquire different types of input signals of different types, and store each input signal into the buffer unit separately, and the size of the buffer unit is respectively allocated according to the format of each input signal. of.

具体地,所述转换模块2包括:Specifically, the conversion module 2 includes:

第一获取单元,设置为获取不同种类信号的处理优先级;a first obtaining unit, configured to acquire processing priority of different types of signals;

转换单元,设置为按照所述处理优先级的顺序,对每种输入信号依次进行转换处理,得到满足PCI-E总线格式的每种输入信号的TLP报文并缓存。The conversion unit is configured to sequentially perform conversion processing on each input signal in the order of the processing priority to obtain a TLP message satisfying each input signal of the PCI-E bus format and buffering.

具体地,所述控制模块3包括:Specifically, the control module 3 includes:

第二获取单元,设置为获取预设规则;a second obtaining unit, configured to acquire a preset rule;

控制单元,设置为根据所述预设规则,对所述TLP报文进行仲裁控制。The control unit is configured to perform arbitration control on the TLP message according to the preset rule.

应当说明的是,所述第二获取单元获取的预设规则主要包括:预设的每种TLP报文的流出顺序、预设的多种TLP报文之间的优先级、TLP报文之间的发送间隔以及错误包的处理方法。It should be noted that the preset rule acquired by the second acquiring unit mainly includes: a preset outflow order of each TLP packet, a preset priority between multiple TLP packets, and a TLP packet. The sending interval and the processing method of the error packet.

需要说明的是,该信号处理装置实施例是与上述信号处理方法对应的信号处理装置,上述信号处理方法的所有实现方式均适用于该信号处理装置实施例中,也能达到与上述信号处理方法相同的技术效果。It should be noted that the signal processing device embodiment is a signal processing device corresponding to the above signal processing method, and all implementations of the signal processing method are applicable to the signal processing device embodiment, and can also achieve the signal processing method. The same technical effect.

下面对上述信号控制装置的具体工作过程举例说明如下(应当说明的是,因信号的流向是双线的,两个方向的信号处理机制是相同的,以下例子只以信号流向PCI-E来进行说明):以集成有PCI-E core(PCI-E硬核)的FPGA为例,FPGA中集成有PCI-E  core用以实现PCI-E的传输,而传输速率的设置和PCI-E core的设置可以在IDE(Integrated Drive Electronics,即电子集成驱动器)开发环境中根据配置向导进行配置。The following is a detailed description of the specific working process of the above signal control device. (It should be noted that since the flow direction of the signal is two-wire, the signal processing mechanism in the two directions is the same. The following example only uses the signal flow to the PCI-E. To illustrate: Take an FPGA with integrated PCI-E core (PCI-E core) as an example. PCI-E is integrated in the FPGA. The core is used for PCI-E transmission, and the transmission rate setting and PCI-E core setting can be configured according to the configuration wizard in an IDE (Integrated Drive Electronics) development environment.

如图3所示,PCI-E core包括SERDES(SERializer(串行器)/DESerializer(解串器)的简称)和PCI-E,所述PCI-E core与仲裁模块间进行信号传输,所有输入信号(CPU信号、OTN开销信号、SDH信号、DVB信号等)均通过FPGA的专用信号接入管脚接入到仲裁模块,进而存储到缓存(RAM)中,在进行输入信号对应的格式转换后,然后对各种转换后的信号进行异常处理,根据控制信号接入的仲裁配置文件对转换后的信号进行仲裁控制后,分别将上述转换后信号经由缓存发送给PCI-E core。As shown in FIG. 3, the PCI-E core includes SERDES (short for SERializer/DESerializer) and PCI-E, and the signal is transmitted between the PCI-E core and the arbitration module, all inputs. The signals (CPU signal, OTN overhead signal, SDH signal, DVB signal, etc.) are all connected to the arbitration module through the dedicated signal access pin of the FPGA, and then stored in the buffer (RAM), after the format conversion of the input signal is performed. Then, the various converted signals are subjected to abnormal processing, and the converted signal is subjected to arbitration control according to the arbitration profile accessed by the control signal, and then the converted signal is respectively sent to the PCI-E core via the cache.

如图4所示,所述信号的处理流程为:多种不同种类的输入信号(如CPU信号、OTN开销信号、SDH信号)首先存储在缓存RAM中,然后对缓存RAM中的输入信号分别经由相对应的格式转换规则转换成具有统一格式的TLP报文,然后流控模块根据仲裁的配置信息(即上述的预设规则),对这些信号进行异常处理并输出异常处理结果,处理完成后将所述输入信号对应的TLP报文经由PCI-E core接口分别传输出去。As shown in FIG. 4, the processing flow of the signal is: a plurality of different kinds of input signals (such as CPU signal, OTN overhead signal, SDH signal) are first stored in the buffer RAM, and then the input signals in the buffer RAM are respectively passed. The corresponding format conversion rule is converted into a TLP message having a unified format, and then the flow control module performs exception processing on the signals according to the arbitration configuration information (ie, the preset rule described above) and outputs an abnormal processing result, and after the processing is completed, The TLP packets corresponding to the input signals are separately transmitted through the PCI-E core interface.

下面以xilinx公司的FPGA为例对上述方法的使用场景进行详细的描述。The following uses the xilinx FPGA as an example to describe the usage scenarios of the above methods in detail.

如图5所示,FPGA模块包括PCI-E模块和仲裁模块;As shown in FIG. 5, the FPGA module includes a PCI-E module and an arbitration module;

其中,所述PCI-E模块使用Vivado(Vivado设计套件,是FPGA厂商赛灵思公司2012年发布的集成设计环境)进行例化,由PCI-E core和配置模块构成,PCI-E core主要由SERDES和PCI-E组成,所述PCI-E模块主要设置为完成PCI-E串行接口的转换,并处理PCI-E相关协议;其中,PCI-E core由IP core(IP核是指用于产品应用专用集成电路(ASIC)或者FPGA的逻辑块或数据块)生成,由于PCI-E的配置比较复杂,单独在IP core外实现配置模块,此配置模块不仅完成了RC(Root Complex)端的配置,而且完成了对EP(End Point)端的配置(通过配置TLP进行),应当说明的是,所述RC和EP分别为PCI-E的两种模式;The PCI-E module is instantiated using Vivado (Vivado Design Suite, an integrated design environment released by FPGA manufacturer Xilinx in 2012), consisting of a PCI-E core and a configuration module. The PCI-E core is mainly composed of PCI-E core. SERDES and PCI-E, the PCI-E module is mainly configured to complete the conversion of the PCI-E serial interface and process the PCI-E related protocol; wherein the PCI-E core is used by the IP core (IP core is used for Product application specific integrated circuit (ASIC) or FPGA logic block or data block is generated. Due to the complicated configuration of PCI-E, the configuration module is implemented separately outside the IP core. This configuration module not only completes the configuration of the RC (Root Complex) side. And complete the configuration of the EP (End Point) end (by configuring the TLP), it should be noted that the RC and the EP are respectively two modes of PCI-E;

配置模块由Completion Decoder(完成编码器)、Controller(控制器)、Packet Generator(包发生器)和TX Mux(传出复用器)组成,对于仲裁模块正常发送接收的业务TLP报文,配置模块只起到透明传输的作用,PCI-E core和配置模块之间用AXI4-Stream(一种总线协议)接口进行连接,同时PCI-E模块和信号处理装置也使用AXI4-Stream接口进行连接。The configuration module is composed of a Completion Decoder, a Controller, a Packet Generator, and a TX Mux. The configuration module is configured to send and receive service TLP packets. Only for transparent transmission, the PCI-E core and the configuration module are connected by AXI4-Stream (a bus protocol) interface, and the PCI-E module and the signal processing device are also connected using the AXI4-Stream interface.

如图6所示,所述仲裁模块在PCI-E发送方向,此模块完成CPU_TLP包、OTN_TLP包等包的仲裁,以顺序轮询机制(可以通过配置文件cfg_file修改)为例,各种TLP 包的优先级相同,实现顺次发送;在PCI-E接收方向,需要判定接收的包是对何种信号的响应,根据判定结果,将该包发给对应的模块;此外所述仲裁模块还需要实现TLP包接收失败判定功能,发送后开始计时,如果超过N ms(N为参数,可修改)还未收到包,则上报TLP包接收失败,失败指示信号至少保持1个时钟周期有效,失败次数寄存器加一,同时下一个TLP包可以进行发送,AXI总线不再占用;此外,所述仲裁模块还要实现和PCI-E IPcore的AXI接口,如果PCI-E IPcore提供的接收时钟和发送时钟不是一个时钟,则需要在此模块对接收的TLP包用FIFO(First Input First Output,即先进先出)进行跨时钟域处理,将接收的TLP包转成发送时钟域,例如,跨时钟域处理后,接收和发送时钟的频率都是37.25MHz,只是频率有微小偏差。As shown in FIG. 6, the arbitration module is in the PCI-E sending direction, and the module completes the arbitration of the CPU_TLP packet, the OTN_TLP packet, and the like, and uses a sequential polling mechanism (which can be modified by the configuration file cfg_file) as an example, and various TLPs. The packets have the same priority and are sequentially sent. In the PCI-E receiving direction, it is necessary to determine the response of the received packet to which signal, and according to the determination result, the packet is sent to the corresponding module; in addition, the arbitration module further It is necessary to implement the TLP packet reception failure determination function, and start timing after transmission. If the packet is not received after N ms (N is a parameter, which can be modified), the TLP packet reception failure is reported, and the failure indication signal is valid for at least one clock cycle. The number of failure registers is incremented by one, and the next TLP packet can be sent. The AXI bus is no longer occupied. In addition, the arbitration module also implements the AXI interface with the PCI-E IPcore, if the receiving clock and transmission are provided by the PCI-E IPcore. If the clock is not a clock, the module needs to perform cross-clock domain processing on the received TLP packet with FIFO (First Input First Output), and convert the received TLP packet into a transmission clock domain, for example, a cross-clock domain. After processing, the frequency of the receive and transmit clocks is 37.25MHz, but the frequency has a slight deviation.

对于仲裁模块中信号的处理流程的具体实现为:The specific implementation of the processing flow of the signal in the arbitration module is:

如图6所示,将信号转换完成后的TLP报文分别存到对应的缓存中,例如CPU信号转换完成的TLP报文记为CPU_TLP,并将此CPU_TLP存入到缓存中,缓存字段记为CPU_TLP_BUFFER,OTN信号转换完成的OTN报文记为OTN_TLP,并将此OTN_TLP存入到缓存中,缓存字段记为OTN_TLP_BUFFER,然后流控模块(FLOW_CTRL)根据配置文件(Cfg_file)对信号进行仲裁控制,之后,将所述CPU_TLP和OTN_TLP分别通过AXI接口进行传输;在流控模块接收到AXI接口传输的信号后,同样根据配置文件(Cfg_file)对信号进行仲裁控制后在将接收的信号传输出去。As shown in FIG. 6, the TLP message after the signal conversion is completed is stored in the corresponding cache. For example, the TLP message completed by the CPU signal conversion is recorded as CPU_TLP, and the CPU_TLP is stored in the cache, and the cache field is recorded as CPU_TLP_BUFFER, the OTN message completed by the OTN signal is recorded as OTN_TLP, and the OTN_TLP is stored in the buffer, the buffer field is recorded as OTN_TLP_BUFFER, and then the flow control module (FLOW_CTRL) arbitrates the signal according to the configuration file (Cfg_file), and then The CPU_TLP and the OTN_TLP are respectively transmitted through the AXI interface; after the flow control module receives the signal transmitted by the AXI interface, the signal is also subjected to arbitration control according to the configuration file (Cfg_file), and then the received signal is transmitted.

应当说明的是,上述的仲裁模块实现了轮询控制、突发控制、优先级可编程控制以及包间隔可编程控制等多种控制功能。It should be noted that the above arbitration module implements various control functions such as polling control, burst control, priority programmable control, and packet interval programmable control.

如图7所示,因为信号的传输是双向的,在接收PCI-E方向发送的TLP报文时,首先判断接收到的TLP报文是对何种信号的响应,然后再分别将此TLP报文利用对应的格式转换规则进行格式转换成符合设备使用的信号,然后再将格式转换后的信号发送给对应的设备;同样的在接收到设备发送的信号时,会根据对应的格式转换规则,将所述信号格式转换成TLP报文,然后再将TLP报文进行传输。As shown in Figure 7, because the signal transmission is bidirectional, when receiving the TLP message sent in the PCI-E direction, it first determines the response of the received TLP message to which signal, and then separately reports the TLP. The text is converted into a signal conforming to the device by using the corresponding format conversion rule, and then the format converted signal is sent to the corresponding device; when the signal sent by the device is received, the corresponding format conversion rule is used. The signal format is converted into a TLP message, and then the TLP message is transmitted.

应当说明的是,上述方案,通过在一个设备上实现多种信号的接入,同时实现了多种信号的仲裁控制,实现了灵活配置,提高了接入速度,节约了成本。It should be noted that the above solution realizes flexible configuration, improves access speed, and saves cost by implementing multiple signal access on one device and simultaneously implementing arbitration control of multiple signals.

以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本发明的保护范围内。 The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. Within the scope of protection of the invention.

工业实用性Industrial applicability

如上所述,本发明实施例提供的一种基于PCI-E接口的信号处理方法及信号处理装置具有以下有益效果:通过利用仲裁控制实现对多种接入信号的传输控制,通过单一接口发送给PCI-E控制器,减少了PCI-E接口的设置,提高了信号的处理效率,同时提高了设备互联效率。 As described above, the PCI-E interface-based signal processing method and the signal processing apparatus provided by the embodiments of the present invention have the following beneficial effects: transmission control of multiple access signals is implemented by using arbitration control, and is sent to a single interface. The PCI-E controller reduces the setting of the PCI-E interface, improves the processing efficiency of the signal, and improves the interconnection efficiency of the device.

Claims (9)

一种基于PCI-E接口的信号处理方法,包括:A signal processing method based on a PCI-E interface, comprising: 获取不同类型的多种输入信号;Obtain different types of input signals of different types; 将所述多种输入信号中的每种输入信号分别转换成满足PCI-E总线格式的事务层包TLP报文后并缓存;Converting each of the plurality of input signals into a transaction layer packet TLP message that satisfies the PCI-E bus format and buffering; 对缓存的每种输入信号的TLP报文进行仲裁控制;Arbitral control of the TLP message of each input signal buffered; 根据所述仲裁控制后的结果,将每种输入信号的TLP报文给PCI-E控制器进行输出。According to the result of the arbitration control, the TLP message of each input signal is output to the PCI-E controller. 根据权利要求1所述的信号处理方法,其中,所述多种信号包括SDH开销信号、OTN开销信号、DVB信号和CPU信号中的至少两种。The signal processing method according to claim 1, wherein said plurality of signals comprise at least two of an SDH overhead signal, an OTN overhead signal, a DVB signal, and a CPU signal. 根据权利要求1所述的信号处理方法,其中,所述获取不同类型的多种输入信号的步骤具体为:获取不同类型的多种输入信号,并将每种输入信号分别存入缓存单元,其中,所述缓存单元的大小是分别根据每种输入信号的格式来分配的。The signal processing method according to claim 1, wherein the step of acquiring different types of input signals is specifically: acquiring different types of input signals, and storing each input signal in a cache unit, wherein The size of the cache unit is allocated according to the format of each input signal. 根据权利要求1所述的信号处理方法,其中,所述将所述多种输入信号中的每种输入信号分别转换成满足PCI-E总线格式的TLP报文后并缓存的步骤包括:The signal processing method according to claim 1, wherein the step of converting each of the plurality of input signals into a TLP message that satisfies a PCI-E bus format and buffering each comprises: 获取不同种类信号的处理优先级;Obtain processing priorities for different types of signals; 按照所述处理优先级的顺序,对每种输入信号依次进行转换处理,得到满足PCI-E总线格式的每种输入信号的TLP报文并缓存。According to the order of processing priorities, each input signal is sequentially converted to obtain a TLP message satisfying each input signal of the PCI-E bus format and buffered. 根据权利要求1所述的信号处理方法,其中,所述对缓存的每种输入信号的TLP报文进行仲裁控制的步骤包括:The signal processing method according to claim 1, wherein said step of arbitrating control of a TLP message of each of the buffered input signals comprises: 获取预设规则;Get preset rules; 根据所述预设规则,对所述TLP报文进行仲裁控制;Performing arbitration control on the TLP message according to the preset rule; 其中,所述预设规则包括:预设的每种TLP报文的流出顺序、预设的多种TLP报文之间的优先级、TLP报文之间的发送间隔以及错误包的处理方法。 The preset rule includes: a preset outflow order of each TLP packet, a preset priority between multiple TLP messages, a sending interval between TLP messages, and a processing method of an error packet. 一种基于PCI-E接口的信号处理装置,包括:A signal processing device based on a PCI-E interface, comprising: 获取模块,设置为获取不同类型的多种输入信号;Obtaining a module, configured to obtain a plurality of input signals of different types; 转换模块,设置为将所述多种输入信号中的每种输入信号分别转换成满足PCI-E总线格式的TLP报文后并缓存;a conversion module, configured to convert each of the plurality of input signals into a TLP message that satisfies a PCI-E bus format and cache the same; 控制模块,设置为对缓存的每种输入信号的TLP报文进行仲裁控制;a control module configured to arbitrate control of a TLP message of each input signal buffered; 传输模块,设置为根据所述仲裁控制后的结果,将每种输入信号的TLP报文给PCI-E控制器进行输出。The transmission module is configured to output a TLP message of each input signal to the PCI-E controller for output according to the result of the arbitration control. 根据权利要求6所述的信号处理装置,其中,所述获取模块,设置为获取不同类型的多种输入信号,并将每种输入信号分别存入缓存单元,其中,所述缓存单元的大小是分别根据每种输入信号的格式来分配的。The signal processing device according to claim 6, wherein the acquisition module is configured to acquire a plurality of input signals of different types, and store each input signal in a cache unit, wherein the size of the cache unit is They are assigned according to the format of each input signal. 根据权利要求6所述的信号处理装置,其中,所述转换模块包括:The signal processing device of claim 6, wherein the conversion module comprises: 第一获取单元,设置为获取不同种类信号的处理优先级;a first obtaining unit, configured to acquire processing priority of different types of signals; 转换单元,设置为按照所述处理优先级的顺序,对每种输入信号依次进行转换处理,得到满足PCI-E总线格式的每种输入信号的TLP报文并缓存。The conversion unit is configured to sequentially perform conversion processing on each input signal in the order of the processing priority to obtain a TLP message satisfying each input signal of the PCI-E bus format and buffering. 根据权利要求6所述的信号处理装置,其中,所述控制模块包括:The signal processing device of claim 6, wherein the control module comprises: 第二获取单元,设置为获取预设规则;a second obtaining unit, configured to acquire a preset rule; 控制单元,设置为根据所述预设规则,对所述TLP报文进行仲裁控制;a control unit, configured to perform arbitration control on the TLP message according to the preset rule; 其中,所述预设规则包括:预设的每种TLP报文的流出顺序、预设的多种TLP报文之间的优先级、TLP报文之间的发送间隔以及错误包的处理方法。 The preset rule includes: a preset outflow order of each TLP packet, a preset priority between multiple TLP messages, a sending interval between TLP messages, and a processing method of an error packet.
PCT/CN2014/090397 2014-06-30 2014-11-05 Signal processing method and signal processing apparatus based on pci-e interfaces WO2016000376A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410307173.8 2014-06-30
CN201410307173.8A CN105306421A (en) 2014-06-30 2014-06-30 PCI-E interface based signal processing method and PCI-E interface based signal processing device

Publications (1)

Publication Number Publication Date
WO2016000376A1 true WO2016000376A1 (en) 2016-01-07

Family

ID=55018382

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/090397 WO2016000376A1 (en) 2014-06-30 2014-11-05 Signal processing method and signal processing apparatus based on pci-e interfaces

Country Status (2)

Country Link
CN (1) CN105306421A (en)
WO (1) WO2016000376A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543439A (en) * 2019-09-10 2019-12-06 南方科技大学 a signal processing system
CN113961494A (en) * 2021-10-21 2022-01-21 上海安路信息科技股份有限公司 Bridging system of PCIE bus and AXI bus
CN114938680A (en) * 2020-10-12 2022-08-23 株式会社电装天 Sound signal processing device and sound signal processing method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112668263B (en) * 2020-12-29 2022-08-16 中国电子科技集团公司第五十八研究所 PCIe bus-based processing layer design method, structure and application
CN117389935B (en) * 2023-12-11 2024-03-08 井芯微电子技术(天津)有限公司 Protocol conversion system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904868A (en) * 2005-07-11 2007-01-31 商辉达股份有限公司 Combining packets for a packetized bus
CN101539894A (en) * 2009-05-04 2009-09-23 成都市华为赛门铁克科技有限公司 Method and device for accessing external equipment of computer into computer system
CN101997834A (en) * 2009-08-10 2011-03-30 北京多思科技发展有限公司 Device for supporting high-performance safety protocol
CN103259830A (en) * 2012-05-10 2013-08-21 南京英飞诺网络科技有限公司 Low-latency convergence TAP

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8312187B2 (en) * 2009-09-18 2012-11-13 Oracle America, Inc. Input/output device including a mechanism for transaction layer packet processing in multiple processor systems
CN103399724B (en) * 2013-07-08 2015-12-09 江苏省广播电视集团有限公司 A kind of DAB loudness measurement card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904868A (en) * 2005-07-11 2007-01-31 商辉达股份有限公司 Combining packets for a packetized bus
CN101539894A (en) * 2009-05-04 2009-09-23 成都市华为赛门铁克科技有限公司 Method and device for accessing external equipment of computer into computer system
CN101997834A (en) * 2009-08-10 2011-03-30 北京多思科技发展有限公司 Device for supporting high-performance safety protocol
CN103259830A (en) * 2012-05-10 2013-08-21 南京英飞诺网络科技有限公司 Low-latency convergence TAP

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543439A (en) * 2019-09-10 2019-12-06 南方科技大学 a signal processing system
CN110543439B (en) * 2019-09-10 2023-05-12 南方科技大学 Signal processing system
CN114938680A (en) * 2020-10-12 2022-08-23 株式会社电装天 Sound signal processing device and sound signal processing method
CN113961494A (en) * 2021-10-21 2022-01-21 上海安路信息科技股份有限公司 Bridging system of PCIE bus and AXI bus
CN113961494B (en) * 2021-10-21 2023-09-15 上海安路信息科技股份有限公司 Bridging system of PCIE bus and AXI bus

Also Published As

Publication number Publication date
CN105306421A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
EP3412016B1 (en) Scalable, high-efficiency, high-speed serialized interconnect
US9979432B2 (en) Programmable distributed data processing in a serial link
CN106951388B (en) PCIe-based DMA data transmission method and system
US20150220472A1 (en) Increasing throughput on multi-wire and multi-lane interfaces
KR101574953B1 (en) Optical memory extension architecture
US10645553B2 (en) Method and apparatus for processing signal in a mobile device
WO2016000376A1 (en) Signal processing method and signal processing apparatus based on pci-e interfaces
CN104901859A (en) AXI/PCIE bus converting device
CN110334044B (en) A MIPI DPHY transmission circuit and device
CN109165178B (en) Rapid IO-based high-speed communication method between SoC (system on a chip) chips of system on missile
US7684477B1 (en) Multi-protocol low latency automatic speed negotiation architecture for an embedded high speed serial interface in a programmable logic device
CN106933760A (en) A kind of dma controller and data uploading method based on AXI protocol
CN105786736A (en) Method, chip and device for multi-chip cascading
CN112328523A (en) Method, device and system for transmitting double-rate signal
CN108628784A (en) Serial communicator and serial communication system
US7292067B2 (en) Method and apparatus for buffering bi-directional open drain signal lines
EP3106995B1 (en) Techniques for providing data rate changes
US20190005974A1 (en) Alignment of bi-directional multi-stream multi-rate i2s audio transmitted between integrated circuits
JP3989376B2 (en) Communications system
US20060195645A1 (en) Interface for prototyping integrated systems
TW201731272A (en) SPI interface with automatic slave select generation
US10049067B2 (en) Controller-PHY connection using intra-chip SerDes
US20080181242A1 (en) Communications gateway between two entities
CN105389155B (en) A kind of method and system for realizing TDM audio data receipt using SPI interface
CN111026691A (en) OWI communication equipment based on APB bus

Legal Events

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

Ref document number: 14896898

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14896898

Country of ref document: EP

Kind code of ref document: A1

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载