CN101582011B - Serial-parallel conversion interface data acquisition method and device - Google Patents
Serial-parallel conversion interface data acquisition method and device Download PDFInfo
- Publication number
- CN101582011B CN101582011B CN2009100869779A CN200910086977A CN101582011B CN 101582011 B CN101582011 B CN 101582011B CN 2009100869779 A CN2009100869779 A CN 2009100869779A CN 200910086977 A CN200910086977 A CN 200910086977A CN 101582011 B CN101582011 B CN 101582011B
- Authority
- CN
- China
- Prior art keywords
- data acquisition
- data
- serial
- parallel conversion
- conversion interface
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术,尤其涉及一种串并转换接口数据采集方法和装置。The invention relates to communication technology, in particular to a serial-to-parallel conversion interface data acquisition method and device.
背景技术Background technique
随着科学技术的迅速发展,单板上的芯片数目越来越多,芯片之间进行通信。一般情况下,多块专用集成电路(Application Specific IntegratedCircuits,以下简称:ASIC)通过接口交换芯片或接口现场可编程门矩阵(Field Programmable Gate Array)连接。若多块ASIC之间进行高速通信时,需要在高速接口中加入串并转换器(Serializer/deserializer,以下简称:Serdes),该加入了Serdes的高速接口称为Serdes接口。With the rapid development of science and technology, the number of chips on a single board is increasing, and the chips communicate with each other. In general, multiple ASICs (Application Specific Integrated Circuits, hereinafter referred to as ASIC) are connected through an interface switching chip or an interface Field Programmable Gate Array (Field Programmable Gate Array). If high-speed communication is performed between multiple ASICs, a serializer/deserializer (Serdes for short) needs to be added to the high-speed interface, and the high-speed interface with Serdes added is called a Serdes interface.
在单板启动或复位时,Serdes接口容易出现异常情况。然而,由于Serdes接口位于ASIC内部,当Serdes接口发生异常时,外界无法定位Serdes接口的问题所在。When the board is started or reset, the Serdes interface is prone to abnormal conditions. However, since the Serdes interface is located inside the ASIC, when an exception occurs on the Serdes interface, the outside world cannot locate the problem of the Serdes interface.
发明内容Contents of the invention
本发明实施例提供了一种串并转换接口数据采集方法和装置,用以实现采集Serdes接口数据,从而快速定位Serdes接口的问题所在。Embodiments of the present invention provide a serial-to-parallel conversion interface data collection method and device, which are used to collect Serdes interface data, so as to quickly locate the problem of the Serdes interface.
本发明实施例提供了一种串并转换接口数据采集方法,包括:An embodiment of the present invention provides a serial-to-parallel conversion interface data collection method, including:
根据数据采集启动信号的指示,采集预设数量的串并转换接口数据;According to the indication of the data collection start signal, collect a preset number of serial-to-parallel conversion interface data;
在所述预设数量的串并转换接口数据采集结束后,停止采集串并转换接口数据。After the preset number of serial-to-parallel conversion interface data collection ends, stop collecting serial-to-parallel conversion interface data.
本发明实施例还提供了一种串并转换接口数据采集装置,包括:The embodiment of the present invention also provides a serial-to-parallel conversion interface data acquisition device, including:
第一采集模块,用于根据数据采集启动信号的指示,采集预设数量的串并转换接口数据;The first collection module is used to collect a preset number of serial-to-parallel conversion interface data according to the indication of the data collection start signal;
停止采集模块,用于在所述预设数量的串并转换接口数据采集结束后,停止采集串并转换接口数据。The stop collection module is configured to stop collecting serial-to-parallel conversion interface data after the preset number of serial-to-parallel conversion interface data collections is completed.
本发明实施例提供的串并转换接口数据采集方法和装置,根据数据采集启动信号的指示,采集预设数量的Serdes接口数据,从而可以通过分析采集的Serdes接口数据快速定位Serdes接口的问题所在,保证快速隔离与解决Serdes接口问题。The serial-to-parallel conversion interface data acquisition method and device provided by the embodiments of the present invention collect a preset number of Serdes interface data according to the indication of the data acquisition start signal, so that the problem of the Serdes interface can be quickly located by analyzing the collected Serdes interface data. Ensure fast isolation and resolution of Serdes interface issues.
附图说明Description of drawings
图1为本发明Serdes接口数据采集方法第一实施例的流程图;Fig. 1 is the flowchart of the first embodiment of the Serdes interface data acquisition method of the present invention;
图2为本发明Serdes接口数据采集方法第二实施例的流程图;Fig. 2 is the flowchart of the second embodiment of the Serdes interface data collection method of the present invention;
图3为本发明Serdes接口数据采集方法第二实施例的流程图;Fig. 3 is the flowchart of the second embodiment of the Serdes interface data acquisition method of the present invention;
图4为本发明Serdes接口数据采集装置第一实施例的结构示意图;Fig. 4 is the structural representation of the first embodiment of the Serdes interface data acquisition device of the present invention;
图5为本发明Serdes接口数据采集装置第二实施例的结构示意图;Fig. 5 is the structural representation of the second embodiment of the Serdes interface data acquisition device of the present invention;
图6为本发明Serdes接口数据采集装置第三实施例的结构示意图。Fig. 6 is a schematic structural diagram of the third embodiment of the Serdes interface data acquisition device of the present invention.
具体实施方式Detailed ways
下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.
如图1所示,为本发明Serdes接口数据采集方法第一实施例的流程图,具体可以包括如下步骤:As shown in Figure 1, it is a flow chart of the first embodiment of the Serdes interface data acquisition method of the present invention, which may specifically include the following steps:
步骤11、采集电路根据数据采集启动信号的指示,采集预设数量的Serdes接口数据;Step 11, the acquisition circuit collects a preset number of Serdes interface data according to the indication of the data acquisition start signal;
具体地,采集电路为设置在Serdes接口并且独立于Serdes接口逻辑电路之外的一个硬件逻辑电路,其可以采集Serdes接口数据。数据采集启动信号的指示可以由外部处理器发送,也可以在Serdes接口逻辑电路发现Serdes接口发生异常等情况时,例如,信号丢失(Loss of signal,以下简称:LOS)、编码错误、锁相环(Phase-locked Loop,以下简称:PLL)失锁、10毫秒BFN帧异常、异步先进先出(First In First Out,以下简称:FIFO)等,由Serdes接口逻辑电路发送,具体采用哪种触发方式,由外部处理器选择。此外,预设数量可以根据不同应用场景灵活设定。Specifically, the collection circuit is a hardware logic circuit arranged on the Serdes interface and independent of the Serdes interface logic circuit, which can collect Serdes interface data. The indication of the data acquisition start signal can be sent by an external processor, or when the Serdes interface logic circuit finds that the Serdes interface is abnormal, for example, loss of signal (Loss of signal, hereinafter referred to as: LOS), coding error, phase-locked loop (Phase-locked Loop, hereinafter referred to as: PLL) loss of lock, 10 ms BFN frame exception, asynchronous First In First Out (hereinafter referred to as: FIFO), etc., are sent by the Serdes interface logic circuit, which trigger method is used , selected by the external processor. In addition, the preset number can be flexibly set according to different application scenarios.
步骤12、在预设数量的Serdes接口数据采集结束后,采集电路停止采集Serdes接口数据;
具体地,在Serdes接口电路停止采集Serdes接口数据后,可以输出采集结束标识,直到外部处理器再次启动回到待采集状态。然后技术人员可以分析采集的Serdes接口数据,定位Serdes接口的问题所在。Specifically, after the Serdes interface circuit stops collecting Serdes interface data, it may output a collection end flag until the external processor starts up again and returns to the state to be collected. Then technicians can analyze the collected Serdes interface data to locate the problem of the Serdes interface.
本实施例通过采样电路在数据采集启动信号的指示下,采集预设数量的的Serdes接口数据,从而可以通过分析采集Serdes接口数据快速定位Serdes接口的问题所在,保证快速隔离与解决Serdes接口问题。In this embodiment, the sampling circuit collects a preset amount of Serdes interface data under the instruction of the data acquisition start signal, so that the problem of the Serdes interface can be quickly located by analyzing and collecting the Serdes interface data, and the problem of the Serdes interface can be quickly isolated and solved.
如图2所示,为本发明Serdes接口数据采集方法第二实施例的流程图,在本实施例中,在采集电路中提供一寄存器,例如,数据采集状态寄存器。该数据采集状态寄存器中可以包括触发条件标识位,外部处理器可以配置该触发条件标识位以确定输出采集启动信号由外部处理器发送还是由Serdes接口逻辑电路发送。此外,该数据采集状态寄存器还可以包括数据采集方向位,外部处理器通过配置该数据采集方向位来配置数据采集的方向是接收方向还是发送方向,例如:当数据采集方向位配置为1时,表示数据采集的方向是接收方向,当数据采集方向位配置为0时,表示数据采集的方向是发送方向,采集接收方向的Serdes接口数据时,采用发送端的10毫秒BFN帧,采集发送方向的Serdes接口数据时,采用本地10毫秒BFN帧。需要说明的是,具体实现时,不同的标识位也可以由不同的寄存器实现。As shown in FIG. 2 , it is a flowchart of the second embodiment of the Serdes interface data acquisition method of the present invention. In this embodiment, a register is provided in the acquisition circuit, for example, a data acquisition status register. The data acquisition status register may include a trigger condition identification bit, and the external processor may configure the trigger condition identification bit to determine whether the output acquisition start signal is sent by the external processor or by the Serdes interface logic circuit. In addition, the data acquisition status register can also include a data acquisition direction bit, and the external processor configures the data acquisition direction bit to configure whether the data acquisition direction is the receiving direction or the sending direction, for example: when the data acquisition direction bit is configured as 1, Indicates that the direction of data collection is the receiving direction. When the data collection direction bit is configured as 0, it indicates that the direction of data collection is the sending direction. When collecting the Serdes interface data of the receiving direction, the 10 millisecond BFN frame of the sending end is used to collect the Serdes of the sending direction. For interface data, local 10ms BFN frames are used. It should be noted that, during specific implementation, different identification bits may also be implemented by different registers.
在本实施例中,外部处理器将该触发条件标识位配置为异常触发,数据采集启动信号具体为Serdes接口逻辑电路发送的异常指示信号,以便采集Serdes接口传输的业务数据(例如:语音业务数据)。具体实现时,数据采集状态寄存器中还可以包括异常触发原因位,采集电路可以将异常触发的原因位设置为与异常情况对应的预设值,例如:当异常情况可能为Serdes接口编码错误时,采集电路将该异常触发原因位设置为00,当异常情况可能为Serdes接口发生LOS,采集电路将该异常触发原因位设置为01。在上一实施例的基础上,步骤11具体可以为:In this embodiment, the external processor configures the trigger condition identification bit as an abnormal trigger, and the data acquisition start signal is specifically an abnormal indication signal sent by the logic circuit of the Serdes interface, so as to collect service data (for example: voice service data) transmitted by the Serdes interface. ). During specific implementation, the data acquisition status register may also include an abnormal trigger cause bit, and the acquisition circuit may set the abnormal trigger cause bit to a preset value corresponding to the abnormal situation, for example: when the abnormal situation may be a Serdes interface coding error, The acquisition circuit sets the abnormal trigger cause bit to 00, and when the abnormal situation may be LOS on the Serdes interface, the acquisition circuit sets the abnormal trigger cause bit to 01. On the basis of the previous embodiment, step 11 may specifically be:
步骤21、采集电路从接收到Serdes接口逻辑电路发送的异常指示信号后的下一个10毫秒帧号计数器(NodeB Frame Number Counter,以下简称:BFN)帧的帧头开始,采集预设数量的Serdes接口数据;Step 21, the acquisition circuit starts from the frame header of the next 10 millisecond frame number counter (NodeB Frame Number Counter, hereinafter referred to as: BFN) frame after receiving the abnormal indication signal sent by the Serdes interface logic circuit, and collects a preset number of Serdes interfaces data;
具体地,Serdes接口逻辑电路检测到Serdes接口异常后,向采集电路发送异常指示信号。可选地,Serdes接口逻辑电路还可以在检测到Serdes接口发生异常后,经过若干个BFN帧周期后,若在该若干个BFN帧周期后,Serdes接口仍然存在异常,向采集电路发送异常指示信号,以确保采集电路可以采集到Serdes接口发生异常后的Serdes接口数据,防止由于Serdes接口短暂的异常造成的误采集。此外,该预设数量可以根据实际需要自由设置,例如:该预设数量为N,N为大于或等于1的正整数。Specifically, after the Serdes interface logic circuit detects that the Serdes interface is abnormal, it sends an abnormality indication signal to the acquisition circuit. Optionally, the Serdes interface logic circuit can also detect that the Serdes interface is abnormal, after several BFN frame periods, if after the several BFN frame periods, the Serdes interface still has an abnormality, send an abnormal indication signal to the acquisition circuit , to ensure that the collection circuit can collect the Serdes interface data after the Serdes interface is abnormal, and prevent wrong collection due to the short-term abnormality of the Serdes interface. In addition, the preset number can be freely set according to actual needs, for example: the preset number is N, and N is a positive integer greater than or equal to 1.
在上一实施例的基础上,步骤12之后还可以包括如下步骤:On the basis of the previous embodiment, the following steps may also be included after step 12:
步骤23、采集电路保存预设数量的Serdes接口数据;Step 23, the acquisition circuit saves a preset number of Serdes interface data;
具体地,可以在采集电路内部设置一个随机存取存储器(Random-accessMemory,以下简称:RAM),该RAM不影响正常数据,在该RAM的控制读写开关打开的情况下,将采集的Serdes接口数据以循环覆盖式存储在该RAM中。Specifically, a random-access memory (Random-access Memory, hereinafter referred to as: RAM) can be set inside the acquisition circuit. The RAM does not affect normal data. When the control read-write switch of the RAM is turned on, the collected Serdes interface Data is stored in this RAM in a circular overlay.
在本实施例中,步骤23之后还可以包括如下步骤:In this embodiment, after step 23, the following steps may also be included:
步骤24、采集电路输出数据采集结束信号。Step 24, the acquisition circuit outputs a data acquisition end signal.
在本实施例中,该数据采集信号具体可以为数据采集结束中断信号,步骤24具体可以包括如下步骤:In this embodiment, the data collection signal may specifically be a data collection end interrupt signal, and step 24 may specifically include the following steps:
步骤241、采集电路向内部处理器发送数据采集结束中断信号,以便内部处理器将采集电路保存的所述预设数量的串并转换接口数据发送给外部处理器;Step 241, the acquisition circuit sends a data acquisition end interrupt signal to the internal processor, so that the internal processor sends the preset number of serial-to-parallel conversion interface data saved by the acquisition circuit to the external processor;
内部处理器根据该数据采集结束中断信号获知采集电路已经完成数据采集,将RAM中存储的Serdes接口数据发送给外部处理器,外部处理器就可以获取Serdes接口发生异常后的N帧数据。可选地,采集电路也可以将该数据采集结束中断信号直接发送给外部处理器,外部处理器根据该数据采集结束中断信号获知采集电路已经完成数据采集,直接从RAM中获取采集的Serdes接口数据。技术人员可以将该Serdes接口数据与数据采集状态寄存器中的异常原因位所标识的异常原因对应,如果该数据的特点符合相应的异常原因,则可以确定Serdes接口逻辑电路发生了相应的异常情况,否则继续分析这些数据找到问题所在,从而快速定位Serdes接口的问题所在。The internal processor knows that the acquisition circuit has completed data acquisition according to the data acquisition end interrupt signal, and sends the Serdes interface data stored in the RAM to the external processor, and the external processor can obtain N frames of data after the Serdes interface is abnormal. Optionally, the acquisition circuit can also directly send the data acquisition end interrupt signal to the external processor, and the external processor knows that the acquisition circuit has completed data acquisition according to the data acquisition end interrupt signal, and directly obtains the collected Serdes interface data from the RAM . The technician can correspond the Serdes interface data with the abnormal cause identified by the abnormal cause bit in the data acquisition status register. If the characteristics of the data conform to the corresponding abnormal cause, it can be determined that a corresponding abnormal situation has occurred in the Serdes interface logic circuit. Otherwise, continue to analyze the data to find the problem, so as to quickly locate the problem of the Serdes interface.
本实施例通过采集电路接收到Serdes接口逻辑电路在检测到Serdes接口发生后发送的异常指示信号时,采集Serdes接口发生异常后的预设数量的Serdes接口数据,然后采集电路保存该预设数量的Serdes接口数据,采集结束后,采集电路向内部处理器发送数据采集结束中断信号,内部处理器将采集电路采集的预设数量的Serdes接口数据发送给外部处理器,从而可以根据该采集的Serdes接口数据快速定位Serdes接口的问题所在。In this embodiment, when the acquisition circuit receives the abnormal indication signal sent by the Serdes interface logic circuit after detecting the occurrence of the Serdes interface, it collects a preset number of Serdes interface data after the Serdes interface is abnormal, and then the acquisition circuit saves the preset number of data. Serdes interface data, after the acquisition is completed, the acquisition circuit sends a data acquisition end interrupt signal to the internal processor, and the internal processor sends the preset number of Serdes interface data collected by the acquisition circuit to the external processor, so that the collected Serdes interface data can The data quickly locates the problem of the Serdes interface.
如图3所示,为本发明Serdes接口数据采集方法第二实施例的流程图,与图1所示技术方案的不同之处在于,采集电路提供一寄存器,例如:数据采集状态寄存器。该数据采集状态寄存器中包括触发条件标识,外部处理器可以配置该触发条件标识位以确定数据采集启动信号由外部处理器发送还是由Serdes接口逻辑电路发送。在本实施例中,外部处理器将数据采集状态寄存器中的触发条件标识配置为数据采集启动信号由外部处理器发送,以便外部处理器根据需要采集Serdes接口数据,为Serdes接口提供调试手段。在图1所示技术方案的基础上,数据采集启动信号具体可以为由外部处理器发送的数据采集触发信号,步骤11具体可以为:As shown in FIG. 3 , it is a flow chart of the second embodiment of the Serdes interface data acquisition method of the present invention. The difference from the technical solution shown in FIG. 1 is that the acquisition circuit provides a register, such as a data acquisition status register. The data acquisition status register includes a trigger condition identification, and the external processor can configure the trigger condition identification bit to determine whether the data acquisition start signal is sent by the external processor or by the Serdes interface logic circuit. In this embodiment, the external processor configures the trigger condition identifier in the data acquisition status register as a data acquisition start signal sent by the external processor, so that the external processor can collect Serdes interface data as required and provide debugging means for the Serdes interface. On the basis of the technical solution shown in Figure 1, the data acquisition start signal can specifically be a data acquisition trigger signal sent by an external processor, and step 11 can specifically be:
步骤31、采集电路从接收到外部处理器发送的数据采集触发信号后的下一个10毫秒BFN帧的帧头开始,采集预设数量的Serdes接口数据。Step 31, the acquisition circuit collects a preset amount of Serdes interface data starting from the frame header of the next 10 millisecond BFN frame after receiving the data acquisition trigger signal sent by the external processor.
具体地,外部处理器在需要对Serdes接口进行调试时,向采集电路发送数据采集触发信号,然后采集电路开始采集预设数量的Serdes接口数据,并将采集的Serdes接口数据存储到RAM中。此外,该预设数量可以根据实际情况自由设置,例如:设置为M,M为大于或等于1的正整数,则采集电路接收到外部处理器发送的数据采集触发信号后,从下一个10毫秒BFN帧的帧头开始,采集M帧Serdes接口数据,然后停止采集数据。Specifically, when the external processor needs to debug the Serdes interface, it sends a data acquisition trigger signal to the acquisition circuit, and then the acquisition circuit starts to collect a preset number of Serdes interface data, and stores the collected Serdes interface data into the RAM. In addition, the preset number can be freely set according to the actual situation. For example, if it is set to M, and M is a positive integer greater than or equal to 1, after the acquisition circuit receives the data acquisition trigger signal sent by the external processor, it will start from the next 10 milliseconds Start with the frame header of the BFN frame, collect M frames of Serdes interface data, and then stop collecting data.
在上一实施例的基础上,步骤12之后之后还可以包括如下步骤:On the basis of the previous embodiment, after
步骤33、采集电路保存预设数量的Serdes接口数据;Step 33, the acquisition circuit saves a preset number of Serdes interface data;
具体地,可以在采集电路内部设置一个RAM,该RAM不影响正常数据,在该RAM的控制读写开关打开的情况下,将采集的Serdes接口数据以循环覆盖式存储在该RAM中。Specifically, a RAM can be set inside the acquisition circuit, and the RAM does not affect normal data. When the control read-write switch of the RAM is turned on, the collected Serdes interface data is stored in the RAM in a cyclic overlay mode.
在本实施例中,步骤33之后还可以包括如下步骤:In this embodiment, after step 33, the following steps may also be included:
步骤34、采集电路输出数据采集结束信号。Step 34, the acquisition circuit outputs a data acquisition end signal.
在本实施例中,该采集结束信号具体可以为数据采集状态寄存器中的数据采集结束标识。In this embodiment, the collection end signal may specifically be a data collection end flag in the data collection status register.
具体地,数据采集状态寄存器中可以包括数据采集状态标识,采集电路在采集Serdes接口数据过程中,将该数据采集状态标识设置为数据采集中标识,采集结束后,采集电路将该数据采集状态标识设置为数据采集结束标识。步骤34具体可以包括如下步骤:Specifically, the data acquisition status register may include a data acquisition status identifier. During the process of acquiring Serdes interface data, the acquisition circuit sets the data acquisition status identifier as the data acquisition in progress identifier. After the acquisition is completed, the acquisition circuit identifies the data acquisition status as Set to mark the end of data collection. Step 34 specifically may include the following steps:
步骤341、采集电路将数据采集状态寄存器中的数据采集状态标识设置为数据采集结束标识,以便外部处理器查询到数据采集结束标识后,获取采集电路保存的预设数量的串并转换接口数据;Step 341, the acquisition circuit sets the data acquisition status identifier in the data acquisition status register as the data acquisition end identifier, so that after the external processor inquires the data acquisition end identifier, it can obtain a preset number of serial-to-parallel conversion interface data saved by the acquisition circuit;
然后,外部处理器定时查询数据采集状态寄存器中的数据采集状态标识,当查询到该数据采集状态标识为数据采集结束标识时,外部处理器根据该数据采集结束标识获知采集电路已经停止采集数据,于是外部处理器从RAM中读取采集电路采集的预设数量的数据。技术人员可以将采集的Serdes接口数据与测试数据进行比较,若比较后判断Serdes接口异常,可以根据该采集的Serdes接口数据快速定位Serdes接口的问题所在。Then, the external processor regularly inquires about the data acquisition status identifier in the data acquisition status register, and when the data acquisition status identifier is inquired as the data acquisition end identifier, the external processor knows that the acquisition circuit has stopped collecting data according to the data acquisition end identifier, Then the external processor reads the preset amount of data collected by the acquisition circuit from the RAM. Technicians can compare the collected Serdes interface data with the test data. If the Serdes interface is abnormal after comparison, they can quickly locate the problem of the Serdes interface based on the collected Serdes interface data.
在本实施例中,外部处理器根据需要指示采集电路采集预设数量的Serdes接口数据,若Serdes接口发生异常,可以根据该Serdes接口数据快速定位Serdes接口的问题所在。In this embodiment, the external processor instructs the acquisition circuit to collect a preset amount of Serdes interface data as needed, and if an abnormality occurs on the Serdes interface, the problem of the Serdes interface can be quickly located according to the Serdes interface data.
如图4所示,为本发明Serdes接口数据采集装置第一实施例的结构示意图,具体可以包括第一采集模块41和停止采集模块42。As shown in FIG. 4 , it is a schematic structural diagram of the first embodiment of the Serdes interface data collection device of the present invention, which may specifically include a
其中,第一采集模块41用于根据数据采集启动信号的指示,采集预设数量的Serdes接口数据;Wherein, the
该Serdes接口数据采集装置为设置在Serdes接口并且独立于Serdes接口逻辑电路之外的一个硬件逻辑电路。数据采集启动信号的指示可以由外部处理器发送,也可以在Serdes接口逻辑电路发现Serdes接口发生异常等情况时,例如,LOS、编码错误、PLL失锁、10毫秒BFN帧异常、异步FIFO等,由Serdes接口逻辑电路发送,具体采用哪种触发方式,由外部处理器选择。此外,预设数量可以根据不同应用场景灵活设定。The Serdes interface data acquisition device is a hardware logic circuit arranged on the Serdes interface and independent from the Serdes interface logic circuit. The indication of the data acquisition start signal can be sent by an external processor, or when the logic circuit of the Serdes interface finds that the Serdes interface is abnormal, such as LOS, encoding error, PLL out of lock, 10 ms BFN frame exception, asynchronous FIFO, etc., It is sent by the Serdes interface logic circuit, and the specific trigger mode is selected by the external processor. In addition, the preset number can be flexibly set according to different application scenarios.
停止采集模块42用于在所述预设数量的Serdes接口数据采集结束后,停止采集Serdes接口数据;The
具体地,在Serdes接口电路停止采集Serdes接口数据后,可以输出采集结束标识,直到外部处理器再次启动回到待采集状态。Specifically, after the Serdes interface circuit stops collecting Serdes interface data, it may output a collection end flag until the external processor starts up again and returns to the state to be collected.
本实施例通过第一采集模块41在数据采集启动信号的指示下,采集预设数量的Serdes接口数据,技术人员可以通过分析采集Serdes接口数据可以快速定位Serdes接口的问题所在,保证快速隔离与解决Serdes接口问题。In this embodiment, the
如图5所示,为本发明Serdes接口数据采集装置第二实施例的结构示意图,与图4所示结构示意图的不同之处在于,本实施例还可以包括一寄存器50,寄存器50具体可以为,例如:数据采集状态寄存器。该数据采集状态寄存器中可以包括触发条件标识位,外部处理器可以配置该触发条件标识位以确定输出采集启动信号由外部处理器发送还是由Serdes接口逻辑电路发送。此外,该数据采集状态寄存器还可以包括数据采集方向位,外部处理器通过配置该数据采集方向位来配置数据采集的方向是接收方向还是发送方向,例如:当数据采集方向位配置为1时,表示数据采集的方向是接收方向,当数据采集方向位配置为0时,表示数据采集的方向是发送方向,采集接收方向的Serdes接口数据时,采用发送端的10毫秒BFN帧,采集发送方向的Serdes接口数据时,采用本地10毫秒BFN帧。需要说明的是,具体实现时,不同的标识位也可以由不同的寄存器实现。As shown in Figure 5, it is a schematic structural diagram of the second embodiment of the Serdes interface data acquisition device of the present invention. The difference from the structural schematic diagram shown in Figure 4 is that this embodiment can also include a
在本实施例中,寄存器50将数据采集启动信号配置为Serdes接口逻辑电路发送的异常指示信号,以便采集Serdes接口传输的业务数据(例如:语音业务数据)。在图4所示结构示意图的基础上,第一采集模块41具体可以包括第一接收单元52、第一计数器53和第一采集单元54。In this embodiment, the
其中,第一接收单元52用于接收Serdes接口逻辑电路发送的异常指示信号。Wherein, the
具体地,Serdes接口逻辑电路检测到Serdes接口异常后,向Serdes接口数据采集装置发送异常指示信号。可选地,Serdes接口逻辑电路还可以在检测到Serdes接口发生异常后,经过若干个BFN帧周期后,若在该若干个BFN帧周期后,Serdes接口仍然存在异常,向Serdes接口数据采集装置发送异常指示信号,以确保Serdes接口数据采集装置可以采集到Serdes接口发生异常后的Serdes接口数据,防止由于Serdes接口短暂的异常造成的误采集。Specifically, after the Serdes interface logic circuit detects that the Serdes interface is abnormal, it sends an abnormality indication signal to the Serdes interface data acquisition device. Optionally, the Serdes interface logic circuit can also detect that after the Serdes interface is abnormal, after several BFN frame periods, if after the several BFN frame periods, the Serdes interface still has an abnormality, it sends to the Serdes interface data acquisition device Abnormal indication signal to ensure that the Serdes interface data acquisition device can collect the Serdes interface data after the Serdes interface is abnormal, and prevent wrong collection due to the short-term abnormality of the Serdes interface.
第一计数器53用于设置预设数量。The
该预设数量可以根据实际需要自由设置,例如:该预设数量为N,N为大于或等于1的正整数;The preset number can be freely set according to actual needs, for example: the preset number is N, and N is a positive integer greater than or equal to 1;
第一采集单元54用于在第一接收单元52接收到异常指示信号后,从下一个10毫秒BFN帧的帧头开始,采集预设数量的Serdes接口数据。The
本实施例还可以包括存储模块51,用于存储第一采集单元54采集的预设数量的Serdes接口数据。This embodiment may further include a
具体地,存储模块51为一个RAM,该RAM不影响正常数据,在该RAM的控制读写开关打开的情况下,将第一采集单元54采集的Serdes接口数据以循环覆盖式存储在该RAM中。Specifically, the
在图4所示结构示意图的基础上,本实施例还可以包括输出模块55,用于输出数据采集结束信号。在本实施例中,该数据采集结束信号具体可以为数据采集结束中断信号,输出模块55具体可以包括发送单元56,用于向内部处理器发送数据采集结束中断信号,以便内部处理器将存储模块51保存的预设数量的串并转换接口数据发送给外部处理器。On the basis of the structural diagram shown in FIG. 4 , this embodiment may further include an
具体地,内部处理器根据该数据采集结束中断信号获知Serdes接口数据采集装置已经完成数据采集,将RAM中存储的Serdes接口发生异常后的N帧数据发送给外部处理器,就可以获取Serdes接口发生异常后的N帧数据。Specifically, the internal processor knows that the Serdes interface data acquisition device has completed data acquisition according to the data acquisition end interrupt signal, and sends the N frames of data stored in the RAM after the Serdes interface abnormality occurs to the external processor, so that the Serdes interface occurrence can be obtained. N frames of data after the exception.
可选地,发送单元56也可以将该数据采集结束中断信号直接发送给外部处理器,外部处理器根据该数据采集结束中断信号获知Serdes接口数据采集装置已经完成数据采集,直接从存储模块51中获取采集的Serdes接口数据。Optionally, the sending
将Serdes接口发生异常后的N帧数据与数据采集状态寄存器中的异常原因位所标识的异常原因对应,如果这些数据的特点符合相应的异常原因,则可以确定Serdes接口逻辑电路发生了相应的异常情况,否则继续分析这些数据找到问题所在,从而快速定位Serdes接口的问题所在。Correspond the N frames of data after the Serdes interface is abnormal to the abnormal cause identified by the abnormal cause bit in the data acquisition status register. If the characteristics of these data conform to the corresponding abnormal cause, it can be determined that the corresponding abnormal occurred in the Serdes interface logic circuit Otherwise, continue to analyze the data to find the problem, so as to quickly locate the problem of the Serdes interface.
此外,当本次数据采集结束后,第一采集单元54不再采集Serdes接口数据,直到外部处理器重新启动Serdes接口数据采集装置回到待采集状态,第一采集单元54再继续采集Serdes接口数据。In addition, after this data collection finishes, the
本实施例通过第一接收单元52接收到Serdes接口逻辑电路在检测到Serdes接口发生后发送的异常指示信号时,第一采集单元54采集Serdes接口发生异常后的预设数量的Serdes接口数据,然后存储模块51保存该预设数量的Serdes接口数据,采集结束后,发送单元56向内部处理器发送数据采集结束中断信号,内部处理器将第一采集单元54采集的预设数量的Serdes接口数据发送给外部处理器,从而可以根据该采集的Serdes接口数据快速定位Serdes接口的问题所在。In this embodiment, when the
如图6所示,为本发明Serdes接口数据采集装置第三实施例的结构示意图,与图4所示结构示意图的不同之处在于,本实施例还可以包括一寄存器50,例如:数据采集状态寄存器。该数据采集状态寄存器中包括触发条件标识,外部处理器可以配置该触发条件标识位以确定数据采集启动信号由外部处理器发送还是由Serdes接口逻辑电路发送。在本实施例中,寄存器50将数据采集启动信号配置为由外部处理器发送的数据采集触发信号,以便外部处理器根据需要采集Serdes接口数据,为Serdes接口提供调试手段。As shown in Figure 6, it is a schematic structural diagram of the third embodiment of the Serdes interface data acquisition device of the present invention. The difference from the structural schematic diagram shown in Figure 4 is that this embodiment can also include a
在图4所示结构示意图的基础上,第一采集模块41具体可以包括第二接收单元61、第二计数器62和第二采集单元63。On the basis of the structural diagram shown in FIG. 4 , the
其中,第二接收单元61用于接收外部处理器发送的数据采集触发信号。具体地,外部处理器在需要对Serdes接口进行调试时,向Serdes接口数据采集装置发送数据采集触发信号,Wherein, the
第二计数器62用于设置预设数量。The
第二采集单元63用于从第二接收单元61接收到数据采集触发信号后的下一个10毫秒BFN帧的帧头开始,采集第二计数器62所设置的预设数量的Serdes接口数据。The
该预设数量可以根据实际情况自由设置,例如:设置为M,则第二接收单元61接收到外部处理器发送的数据采集触发信号后,第二采集单元63从下一个10毫秒BFN帧的帧头开始,采集M帧Serdes接口数据,然后停止采集模块42停止采集数据。This preset number can be freely set according to actual conditions, for example: set to M, then after the
与图4所示结构示意图的不同之处在于,本实施例还可以包括存储模块51,用于保存预设数量的Serdes接口数据。The difference from the structural diagram shown in FIG. 4 is that this embodiment may further include a
具体地,存储模块51可以为一个RAM,该RAM不影响正常数据,在该RAM的控制读写开关打开的情况下,将采集的Serdes接口数据以循环覆盖式存储在该RAM中。Specifically, the
在图4所示结构示意图的基础上,本实施例还可以包括输出模块55,用于输出数据采集结束信号。在本实施例中,该采集结束信号具体可以为寄存器50中的数据采集结束标识,输出模块55具体可以包括设置单元64,用于将寄存器50中的数据采集状态标识设置为数据采集结束标识。On the basis of the structural diagram shown in FIG. 4 , this embodiment may further include an
具体地,寄存器50中可以包括数据采集状态标识,在第二采集单元63采集Serdes接口数据过程中,设置单元64将该数据采集状态标识设置为数据采集中标识,采集结束后,设置单元64将该数据采集状态标识设置为数据采集结束标识。Specifically, the
然后,外部处理器定时查询寄存器50中的数据采集状态标识,当查询到该数据采集状态标识为数据采集结束标识时,外部处理器获知Serdes接口数据采集装置已经停止采集数据,于是从RAM中读取Serdes接口数据采集装置采集的预设数量的数据。然后,将采集的Serdes接口数据与测试数据进行比较,若比较后判断Serdes接口异常,可以根据该采集的Serdes接口数据快速定位Serdes接口的问题所在。Then, the external processor regularly inquires about the data collection status mark in the
本实施例通过第二接收单元61接收外部处理器根据需要发送的数据采集触发信号,第二采集单元63采集预设数量的Serdes接口数据,从而若Serdes接口发生异常,可以根据该Serdes接口数据快速定位Serdes接口的问题所在。In this embodiment, the
最后应说明的是:以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention without limitation, although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be Modifications or equivalent replacements can be made without departing from the spirit and scope of the technical solutions of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100869779A CN101582011B (en) | 2009-06-12 | 2009-06-12 | Serial-parallel conversion interface data acquisition method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100869779A CN101582011B (en) | 2009-06-12 | 2009-06-12 | Serial-parallel conversion interface data acquisition method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101582011A CN101582011A (en) | 2009-11-18 |
CN101582011B true CN101582011B (en) | 2011-07-06 |
Family
ID=41364170
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100869779A Expired - Fee Related CN101582011B (en) | 2009-06-12 | 2009-06-12 | Serial-parallel conversion interface data acquisition method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101582011B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109257223A (en) * | 2018-09-29 | 2019-01-22 | 南京泰通科技股份有限公司 | High reliability real-time synchronization data processing equipment |
CN114500218B (en) | 2020-11-11 | 2023-07-18 | 华为技术有限公司 | Method and device for controlling network equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201037908Y (en) * | 2007-04-28 | 2008-03-19 | 广西工学院 | Universal small-sized programmable controller |
CN201177869Y (en) * | 2008-03-27 | 2009-01-07 | 北京万维盈创科技发展有限公司 | Environmental data logger |
-
2009
- 2009-06-12 CN CN2009100869779A patent/CN101582011B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201037908Y (en) * | 2007-04-28 | 2008-03-19 | 广西工学院 | Universal small-sized programmable controller |
CN201177869Y (en) * | 2008-03-27 | 2009-01-07 | 北京万维盈创科技发展有限公司 | Environmental data logger |
Non-Patent Citations (1)
Title |
---|
杨兴等.组合电路内建自测试技术的研究.《电子质量》.2008,(第12期),第3-5,7页. * |
Also Published As
Publication number | Publication date |
---|---|
CN101582011A (en) | 2009-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102569335B1 (en) | Automatic test equipment for testing one or more devices under test for command error handling, method and computer program for automatic testing of one or more devices under test | |
US9088433B2 (en) | Device and method for recording protocol events in an advanced communication system | |
JP4856429B2 (en) | On-chip circuit for bus inspection | |
JP4145146B2 (en) | Data processing system and method having on-chip background debug system | |
US7650555B2 (en) | Method and apparatus for characterizing components of a device under test using on-chip trace logic analyzer | |
CN111221694B (en) | Built-in self-test method and system for receiving and transmitting path of Ethernet controller | |
EP2434404B1 (en) | Method and arrangement for streaming data profiling | |
CN114221657B (en) | A pin-optimized multi-channel ADC data transmission device | |
KR20150036353A (en) | System and method for facilitating comparison of radio frequency (rf) data signals transmitted by a device under test (dut) and received by a test system | |
US20250067804A1 (en) | Automated test equipment and method using a trigger generation | |
CN101582011B (en) | Serial-parallel conversion interface data acquisition method and device | |
CN101853192A (en) | Exception handling method, system, off-chip logic device and chip | |
CN112559267A (en) | Inter-integrated circuit bus I2C slave and I2C controller test method | |
CN109065093A (en) | On-chip memory tests circuit and method | |
CN113868134B (en) | A debugging circuit for expanding I2C pins | |
CN114545201A (en) | Bus loop test structure and method | |
CN113709010A (en) | Modbus communication protocol system without frame length limitation | |
WO2015109787A1 (en) | Fifo exception processing method and device | |
CN119621657A (en) | A chip data acquisition method | |
CN107247423B (en) | A kind of equivalent detection device of equipment | |
CN109525350B (en) | Module synchronization control method based on asynchronous serial port synchronization source | |
CN120238592A (en) | A device and method for parsing STPv2 debugging data | |
CN117880158A (en) | Method and device for testing serial communication protocol of communication equipment of Internet of things | |
CN112579334A (en) | Ethernet-based signal recording method and device facing processor | |
CN119166456A (en) | A SerDes monitoring device and method, and system on chip |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110706 |
|
CF01 | Termination of patent right due to non-payment of annual fee |