CN106018910A - Ethernet protocol analysis and trigger circuit and method in oscilloscope - Google Patents

Ethernet protocol analysis and trigger circuit and method in oscilloscope Download PDF

Info

Publication number
CN106018910A
CN106018910A CN201610323398.1A CN201610323398A CN106018910A CN 106018910 A CN106018910 A CN 106018910A CN 201610323398 A CN201610323398 A CN 201610323398A CN 106018910 A CN106018910 A CN 106018910A
Authority
CN
China
Prior art keywords
circuit
signal
unwinding
ethernet protocol
protocol analysis
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.)
Granted
Application number
CN201610323398.1A
Other languages
Chinese (zh)
Other versions
CN106018910B (en
Inventor
邵成华
向前
杨江涛
吴恒奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CETC 41 Institute
Original Assignee
CETC 41 Institute
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 CETC 41 Institute filed Critical CETC 41 Institute
Priority to CN201610323398.1A priority Critical patent/CN106018910B/en
Publication of CN106018910A publication Critical patent/CN106018910A/en
Application granted granted Critical
Publication of CN106018910B publication Critical patent/CN106018910B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R13/00Arrangements for displaying electric variables or waveforms
    • G01R13/02Arrangements for displaying electric variables or waveforms for displaying measured electric variables in digital form
    • G01R13/0209Arrangements for displaying electric variables or waveforms for displaying measured electric variables in digital form in numerical form
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R13/00Arrangements for displaying electric variables or waveforms
    • G01R13/02Arrangements for displaying electric variables or waveforms for displaying measured electric variables in digital form
    • G01R13/0218Circuits therefor
    • G01R13/0254Circuits therefor for triggering, synchronisation

Abstract

The invention discloses an Ethernet protocol analysis and trigger circuit and method in an oscilloscope, specifically relates to the technical field of test, and solves the defects of high cost, slow decoding speed and short decoding length since the Ethernet protocol analysis and trigger function of the oscilloscope in the prior art is mainly realized by an Ethernet reception chip or software. The Ethernet protocol analysis and trigger circuit in the oscilloscope comprises a channel, a comparator, an analog-digital converter and an FPGA. The FPGA is provided with a peak detection circuit, a sample data processing circuit, a receiving speed-down circuit, a sampling clock generation circuit, a storage control circuit and a receiving processing unit. The receiving processing unit comprises a decoding clock generating circuit, an acquisition circuit, an unwinding start detection circuit, a unwinding circuit, a lead code detection circuit, a 5B/4B encoding-decoding circuit and a frame content detection analysis trigger circuit, wherein the acquisition circuit, the unwinding start detection circuit, the unwinding circuit, the lead code detection circuit, the 5B/4B encoding-decoding circuit and the frame content detection analysis trigger circuit are connected in sequence.

Description

Ethernet protocol analysis and triggering circuit and method in a kind of oscillograph
Technical field
The invention belongs to technical field of measurement and test, be specifically related to Ethernet protocol analysis and triggering circuit and method in a kind of oscillograph.
Background technology
Along with oscillograph needs the signal of test to become increasingly complex, function gets more and more, and how to add cost not increasing or reduce In the case of realize these functions and become particularly important.
Ethernet protocol analysis in oscillograph at present mainly receives chip by Ethernet with Trigger Function or software realizes.Make With Ethernet receive chip scheme as it is shown in figure 1, receive chip mainly realize unwinding, 5B be encoded to 4B coding conversion, The functions such as synchronised clock extraction, send into FPGA be handle well by trigger start frame delimiter, MAC Address, MAC Q-Tag The binary code of the information compositions such as control information, MAC length/type, IP packet header.FPGA only need to do subsequent treatment.
The theory diagram of software implement scheme is as in figure 2 it is shown, FPGA stores the data collected in RAM, and software passes through again FPGA read gather data, then carry out unwinding, 5B be encoded to 4B coding conversion etc..
The shortcoming using the scheme of Ethernet reception chip is relatively costly;The shortcoming of software implement scheme is that decoding speed is very slow, And decoded length is shorter.
Summary of the invention
It is an object of the invention to mainly be received by Ethernet with Trigger Function for the Ethernet protocol analysis in existing oscillograph Chip or software realize, and have that cost is high, decoding speed slow and deficiency that decoded length is shorter, it is proposed that a kind of by setting Put reception processing unit, match and realize Ethernet protocol by receiving processing unit hardware existing with oscillograph and circuit and divide Analysis and Ethernet protocol analysis in a kind of oscillograph triggered and triggering circuit and method.
The present invention specifically adopts the following technical scheme that
Ethernet protocol analysis and triggering circuit in a kind of oscillograph, including passage, comparator, analog-digital converter and FPGA, institute The data signal stating comparator and analog-digital converter all flows to FPGA, devises peak detection circuit, hits in described FPGA According to processing circuit, receiving reduction of speed circuit, sampling clock generation circuit and storage control circuit, the signal of described reception reduction of speed circuit Flowing to peak detection circuit and sampled-data processing circuit respectively, the signal of peak detection circuit flows to passage, described sampled data The signal processing circuit flows to storage control circuit, and described FPGA have also been devised reception processing unit, described reception processing unit bag Include decoding clock generating circuit and the Acquisition Circuit being sequentially connected with, unwinding initiate testing circuit, unwinding circuit, preamble detection electricity Road, 5B/4B codec circuit and content frame detection are analyzed and are triggered circuit, and described decoding clock generating circuit is electric with collection respectively Road, unwinding initiate testing circuit, unwinding circuit, preamble detection circuit, 5B/4B codec circuit and content frame detection point Analysis triggers circuit and is connected.
Preferably, described FPGA have also been devised time base control circuit.
Preferably, described FPGA connects CPU, and described CPU is connected with the first SRAM.
Preferably, described storage control circuit is connected with the second SRAM.
Ethernet protocol analysis and triggering method in a kind of oscillograph, use in oscillograph as above Ethernet protocol analysis with Trigger circuit, it is characterised in that specifically comprise the steps of
Step one: arrange channel gain, then detects the amplitude of signal by peak detection circuit;
Step 2: if the amplitude of signal is the least or too greatly, then resets passage, until the amplitude of signal is sized to make signal Display suitable on oscillograph screen;
Step 3: the amplitude of signal arranges the comparative level of comparator, the Acquisition Circuit output signal to comparator after having adjusted It is acquired, is conveyed into unwinding around code signal and initiates testing circuit by collect and detect, when 11 companies " 1 " being detected Time, starting unwinding circuit and carry out unwinding, the signal of unwinding circuit output is 5B coding;
Step 4: after lead code testing circuit detects lead code, starts to become 4B to encode, then by 4B 5B code conversion Coding sends into content frame detection analysis triggering circuit, and content frame detection simultaneously is analyzed and triggered circuit generation triggering signal, and by data Store in the second SRAM.
The invention have the advantages that: Ethernet protocol analysis and triggering circuit and method in this oscillograph, decoding speed is fast, Decoded length can be arranged, and low cost.
Name said by accompanying drawing
Fig. 1 realizes Ethernet protocol analysis and trigger theory block diagram for using Ethernet to receive chip;
Fig. 2 is that software realizes Ethernet protocol analysis and trigger theory block diagram;
Fig. 3 is the Ethernet protocol analysis that proposes of the present invention and trigger circuit block diagram;
Fig. 4 is data receiver circuit schematic diagram;
Fig. 5 is that unwinding initiates testing circuit schematic diagram;
Fig. 6 is unwinding circuit diagram;
Fig. 7 is 5B/4B synopsis;
Fig. 8 is the Ethernet protocol analysis that proposes of the present invention and trigger flow.
Detailed description of the invention
With specific embodiment, the detailed description of the invention of the present invention is described further below in conjunction with the accompanying drawings:
As it is shown on figure 3, in a kind of oscillograph Ethernet protocol analysis with trigger circuit, including passage, comparator, analog digital conversion Device and FPGA, comparator all flows to FPGA with the data signal of analog-digital converter, devises peak detection circuit, adopts in FPGA Sample data processing circuit, reception reduction of speed circuit, sampling clock generation circuit and storage control circuit, receive the signal of reduction of speed circuit Flowing to peak detection circuit and sampled-data processing circuit respectively, the signal of peak detection circuit flows to passage, sampled-data processing The signal of circuit flows to storage control circuit, have also been devised reception processing unit in FPGA, receives processing unit and includes decoding clock Circuit and Acquisition Circuit, the unwinding being sequentially connected with is occurred to initiate testing circuit, unwinding circuit, preamble detection circuit, 5B/4B Codec circuit and content frame detection are analyzed and are triggered circuit, and decoding clock generating circuit initiates inspection with Acquisition Circuit, unwinding respectively Slowdown monitoring circuit, unwinding circuit, preamble detection circuit, 5B/4B codec circuit are analyzed triggering circuit with content frame detection and are connected. Wherein, FPGA is field programmable gate array.
Have also been devised time base control circuit in FPGA, FPGA connects CPU, and CPU is connected with the first SRAM, storage The second SRAM it is connected with in control circuit.
Decoding clock generating circuit produces Ethernet protocol analysis and triggers 125M and the 250M clock needed.
The signal of comparator output is sent into Acquisition Circuit and is sampled, and is then fed into data receiver circuit as shown in Figure 4, newly adopts The data of sample are assigned to D0, D0 and are assigned to D1, the like, output signal is Reg (0)-Reg (10).
As it is shown in figure 5, the Cleaning Principle that unwinding initiates testing circuit is: the original state of D0-D10 is " 00000000000 ", After startup, the value of D0 is assigned to the value of D1, D1 and is assigned to D2, the like, and D0 to be input signal D_in defeated with Acquisition Circuit The signal Reg (8) gone out and the XOR of Reg (10).Testing circuit needs to detect the state of D0-D10, when its state is Unwinding circuit is just started time " 11111111111 ".
As shown in Figure 6, the operation principle of unwinding circuit is: during unwinding circuit start, and it is defeated that the state of D0-D10 is set to Acquisition Circuit Signal Reg (0)-Reg (10) XOR " 11111111111 " gone out, in Fig. 6, the circuit in dashed box is the polynomial hardware of unwinding Circuit, the data that remaining circuit exports unwinding circuit are converted to 5B coding, input signal Reg (the 9)-Reg (5) of this circuit and Reg (4)-Reg (0) is exactly two 5B coded data.
As it is shown in fig. 7, the operation principle of preamble detection circuit is: compare the output signal of unwinding circuit, when signal is " JK " It is " 55 " afterwards, may be finally time " D5 ", to mean that initiateing of frame valid data containing multiple continuous " 55 ", Start 5B/4B decoding circuit.
5B/4B decoding circuit is exactly the circuit doing a similar look-up table in FPGA, and the input signal of circuit is 5B coding, root Export 4B according to its value according to the 5B/4B synopsis shown in Fig. 7 to encode.
Content frame detection is analyzed and is triggered the operation principle of circuit and be: according to the format detection beginning frame delimiter of frame, MAC Address, MAC Q-Tag controls the deliverings such as information, MAC length/type, IP packet header, TCP packet header and triggers signal, data is stored simultaneously To SRAM.
As shown in Figure 8, Ethernet protocol analysis and triggering method in a kind of oscillograph, use ether in oscillograph as above Network protocol analysis and triggering circuit, it is characterised in that specifically comprise the steps of
Step one: arrange channel gain, then detects the amplitude of signal by peak detection circuit;
Step 2: if the amplitude of signal is the least or too big, (i.e. the amplitude of signal can reach grid on oscilloscope display screen 5~ About 8 lattice, what this amplitude can be suitable demonstrates signal) then reset passage, until the amplitude of signal is sized to make letter Number display suitable on oscillograph screen;
Step 3: the amplitude of signal arranges the comparative level of comparator, the Acquisition Circuit output signal to comparator after having adjusted It is acquired, the scrambler signal collected is conveyed into unwinding and initiates testing circuit and detect, when 11 companies " 1 " being detected Time, starting unwinding circuit and carry out unwinding, the signal of unwinding circuit output is 5B coding;
Step 4: after lead code testing circuit detects lead code, starts to become 4B to encode, then by 4B 5B code conversion Coding sends into content frame detection analysis triggering circuit, and content frame detection simultaneously is analyzed and triggered circuit generation triggering signal, and by data Store in the second SRAM.
Certainly, described above is not limitation of the present invention, and the present invention is also not limited to the example above, the art Change that technical staff is made in the essential scope of the present invention, retrofit, add or replace, also should belong to the protection of the present invention Scope.

Claims (5)

1. Ethernet protocol analysis and a triggering circuit in oscillograph, including passage, comparator, analog-digital converter and FPGA, Described comparator all flows to FPGA with the data signal of analog-digital converter, devises at peak detection circuit, sampled data in FPGA Reason circuit, reception reduction of speed circuit, sampling clock generation circuit and storage control circuit, the signal of described reception reduction of speed circuit is respectively Flowing to peak detection circuit and sampled-data processing circuit, the control signal that peak detection circuit produces flows to passage, described sampling The signal of data processing circuit flows to storage control circuit, it is characterised in that have also been devised reception processing unit in described FPGA, Described reception processing unit includes decoding clock generating circuit and Acquisition Circuit, the unwinding being sequentially connected with initiates testing circuit, unwinding Circuit, preamble detection circuit, 5B/4B codec circuit and content frame detection are analyzed and are triggered circuit, and decoding clock occurs electricity Road initiates testing circuit, unwinding circuit, preamble detection circuit, 5B/4B codec circuit respectively with Acquisition Circuit, unwinding Analyze triggering circuit with content frame detection to be connected.
2. Ethernet protocol analysis and triggering circuit in a kind of oscillograph as claimed in claim 1, it is characterised in that described FPGA have also been devised time base control circuit.
3. Ethernet protocol analysis and triggering circuit in a kind of oscillograph as claimed in claim 1, it is characterised in that described FPGA connects CPU, and described CPU is connected with the first SRAM.
4. in oscillograph as claimed in claim 1 a kind of Ethernet protocol analysis with trigger circuit, it is characterised in that described in deposit It is connected with the second SRAM in storage control circuit.
5. Ethernet protocol analysis and a triggering method in oscillograph, uses the oscillograph described in claim 1-4 any one Middle Ethernet protocol analysis and triggering circuit, it is characterised in that specifically comprise the steps of
Step one: arrange channel gain, then detects the amplitude of signal by peak detection circuit;
Step 2: if the amplitude of signal is the least or too greatly, then resets passage, until the amplitude of signal is sized to make signal Display suitable on oscillograph screen;
Step 3: the amplitude of signal arranges the comparative level of comparator, the Acquisition Circuit output signal to comparator after having adjusted It is acquired, is conveyed into unwinding around code signal and initiates testing circuit by collect and detect, when 11 companies " 1 " being detected Time, starting unwinding circuit and carry out unwinding, the signal of unwinding circuit output is 5B coding;
Step 4: after lead code testing circuit detects lead code, starts to become 4B to encode, then by 4B 5B code conversion Coding sends into content frame detection analysis triggering circuit, and content frame detection simultaneously is analyzed and triggered circuit generation triggering signal, and by data Store in the second SRAM.
CN201610323398.1A 2016-05-16 2016-05-16 Ethernet protocol analysis and trigger circuit and method in a kind of oscillograph Active CN106018910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610323398.1A CN106018910B (en) 2016-05-16 2016-05-16 Ethernet protocol analysis and trigger circuit and method in a kind of oscillograph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610323398.1A CN106018910B (en) 2016-05-16 2016-05-16 Ethernet protocol analysis and trigger circuit and method in a kind of oscillograph

Publications (2)

Publication Number Publication Date
CN106018910A true CN106018910A (en) 2016-10-12
CN106018910B CN106018910B (en) 2018-11-20

Family

ID=57097309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610323398.1A Active CN106018910B (en) 2016-05-16 2016-05-16 Ethernet protocol analysis and trigger circuit and method in a kind of oscillograph

Country Status (1)

Country Link
CN (1) CN106018910B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108646072A (en) * 2018-05-16 2018-10-12 电子科技大学 A kind of triggering generation device based on Hamming distance
CN109521239A (en) * 2018-11-09 2019-03-26 中电科仪器仪表有限公司 The analysis of ARINC429 bus protocol and triggering system and method in a kind of oscillograph
CN109521942A (en) * 2018-11-12 2019-03-26 中电科仪器仪表有限公司 A kind of CAN bus protocol analysis system and method based on high-resolution oscillscope tube
US10965441B1 (en) 2019-10-10 2021-03-30 Rohde & Schwarz Gmbh & Co. Kg Frame trigger recreation method and frame trigger recreator
CN113156180A (en) * 2021-04-07 2021-07-23 合肥联宝信息技术有限公司 Waveform parameter adjusting method and device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540537A (en) * 2003-04-23 2004-10-27 欧阳捷 Method and device of reusing MPEG transmission stream for high-speed Ethernet port
JP2006295860A (en) * 2005-04-05 2006-10-26 Ist Kk Protocol analysis method and analysis device of mobile communication
CN101482856A (en) * 2009-01-05 2009-07-15 东南大学 Serial-parallel protocol conversion apparatus based on field programmable gate array
CN103701776A (en) * 2013-12-09 2014-04-02 无锡市同威科技有限公司 Network data card and data transmission method based on FPGA (Field Programmable Gate Array)
CN104572574A (en) * 2015-01-12 2015-04-29 东南大学 GigE (gigabit Ethernet) vision protocol-based Ethernet controller IP (Internet protocol) core and method
CN104820637A (en) * 2015-04-17 2015-08-05 中国电子科技集团公司第四十一研究所 Handheld type USB3.0 protocol analyzer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540537A (en) * 2003-04-23 2004-10-27 欧阳捷 Method and device of reusing MPEG transmission stream for high-speed Ethernet port
JP2006295860A (en) * 2005-04-05 2006-10-26 Ist Kk Protocol analysis method and analysis device of mobile communication
CN101482856A (en) * 2009-01-05 2009-07-15 东南大学 Serial-parallel protocol conversion apparatus based on field programmable gate array
CN103701776A (en) * 2013-12-09 2014-04-02 无锡市同威科技有限公司 Network data card and data transmission method based on FPGA (Field Programmable Gate Array)
CN104572574A (en) * 2015-01-12 2015-04-29 东南大学 GigE (gigabit Ethernet) vision protocol-based Ethernet controller IP (Internet protocol) core and method
CN104820637A (en) * 2015-04-17 2015-08-05 中国电子科技集团公司第四十一研究所 Handheld type USB3.0 protocol analyzer

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王安意: "基于FPGA的千兆以太网协议分析技术", 《电子质量》 *
邵成华 等: "示波器中Flexray协议分析与触发电路设计", 《山东工业技术》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108646072A (en) * 2018-05-16 2018-10-12 电子科技大学 A kind of triggering generation device based on Hamming distance
CN108646072B (en) * 2018-05-16 2019-12-27 电子科技大学 Trigger generating device based on Hamming distance
CN109521239A (en) * 2018-11-09 2019-03-26 中电科仪器仪表有限公司 The analysis of ARINC429 bus protocol and triggering system and method in a kind of oscillograph
CN109521942A (en) * 2018-11-12 2019-03-26 中电科仪器仪表有限公司 A kind of CAN bus protocol analysis system and method based on high-resolution oscillscope tube
CN109521942B (en) * 2018-11-12 2021-11-02 中电科思仪科技股份有限公司 CAN bus protocol analysis system and method based on high-resolution oscilloscope
US10965441B1 (en) 2019-10-10 2021-03-30 Rohde & Schwarz Gmbh & Co. Kg Frame trigger recreation method and frame trigger recreator
CN113156180A (en) * 2021-04-07 2021-07-23 合肥联宝信息技术有限公司 Waveform parameter adjusting method and device and readable storage medium
CN113156180B (en) * 2021-04-07 2022-06-10 合肥联宝信息技术有限公司 Waveform parameter adjusting method and device and readable storage medium

Also Published As

Publication number Publication date
CN106018910B (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN106018910A (en) Ethernet protocol analysis and trigger circuit and method in oscilloscope
CN202126472U (en) Leakage current online monitoring device for zinc oxide arrester based on wireless synchronous techniques
US9703309B2 (en) Method and apparatus for distributed overriding automatic reclosing of fault interrupting devices
CN101303377B (en) Parameter acquisition method of discharging radiation pulse
CN102355382A (en) Method for analyzing and triggering controller area network (CAN) bus
CN106301654B (en) A kind of time signal method of sampling of time trigger Ethernet
CN102594622A (en) Method for detecting GOOSE (generic object oriented substation event) messages of digital substation
CN108896879B (en) Diagnostic map phase windowing parameter adjusting method based on partial discharge signal characteristics
CN102381340A (en) Power curve-based speed-raising turnout fault information processing method and device
JP2015203701A (en) Test and measurement instrument and triggering method
CN103001636B (en) Single event effect detection method of folding interpolating-type analog-digital conversion device
CN104155678A (en) Single channel pulse height analyzer realized by applying peak position detecting method
Salimi et al. Statistical analysis of lightning electric field measured under Malaysian condition
CN107317761A (en) 100G ether shunt method and system based on FPGA
CN101788332A (en) Rotating-speed tracking vibration measuring system
CN208421127U (en) A kind of full-automatic transformer winding deformation analyzer
CN1646928A (en) Lightning detection and data acquisition system
CN108493909A (en) The detection method of Distribution Network Failure based on Voltage Drop
CN109521942A (en) A kind of CAN bus protocol analysis system and method based on high-resolution oscillscope tube
CN205320085U (en) Eye pattern test system of 100M ethernet interface
CN101141326A (en) Flux detecting method and system for self-adaptive sampling
CN111080362A (en) Advertisement monitoring system and method
JP6401898B2 (en) Test measurement device and method in test measurement device
CN109521239A (en) The analysis of ARINC429 bus protocol and triggering system and method in a kind of oscillograph
Xiaorong et al. Research on remote data acquisition system based on GPRS

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant