CN109995359B - Metastable state observation system and method for edge trigger - Google Patents

Metastable state observation system and method for edge trigger Download PDF

Info

Publication number
CN109995359B
CN109995359B CN201910282713.4A CN201910282713A CN109995359B CN 109995359 B CN109995359 B CN 109995359B CN 201910282713 A CN201910282713 A CN 201910282713A CN 109995359 B CN109995359 B CN 109995359B
Authority
CN
China
Prior art keywords
trigger
error code
edge
oscilloscope
value
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.)
Active
Application number
CN201910282713.4A
Other languages
Chinese (zh)
Other versions
CN109995359A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201910282713.4A priority Critical patent/CN109995359B/en
Publication of CN109995359A publication Critical patent/CN109995359A/en
Application granted granted Critical
Publication of CN109995359B publication Critical patent/CN109995359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K21/00Details of pulse counters or frequency dividers
    • H03K21/40Monitoring; Error detection; Preventing or correcting improper counter operation

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

The invention provides a metastable state observation system and a metastable state observation method of an edge trigger, which comprise the following steps: edge touchA transmitter metastability observation system, comprising: the device comprises a pulse signal source, a delayer A, a delayer B, a trigger, an NRZ/RZ converter, an error code testing unit and an oscilloscope; the D end and the CP end of the trigger are respectively connected with a delayer A and a delayer B, and an oscilloscope is used for reading the input delay interval tau of the delayer A and the delayer B 01 . The NRZ/RZ converter is arranged between the Q end of the trigger and the error code testing unit; and respectively counting the rising edges of the pulses at the Q end and the CP end of the trigger by using an error code testing unit. The invention has the advantages that: the observation system is simple and easy to implement, has high reliability, and has important reference value for engineering technicians and teaching personnel engaged in the metastable state characteristic research of the edge trigger.

Description

Metastable state observation system and method for edge trigger
Technical Field
The invention relates to the technical field of metastable state observation, in particular to a metastable state observation system of an edge trigger.
Background
The flip-flop is widely used in modern IT hardware circuits and systems as a high-speed memory element. In order to realize reliable storage of input data, the establishing time and the holding time regions of the input data before and after the rising edge of a clock are required to be kept constant, otherwise, a metastable state occurs, and error codes of the stored data in a trigger are caused. In the research on the internal circuit of the trigger and the clock domain crossing application of the trigger, people often need to observe the metastable state generation process. However, the metastable state process is a random process and is difficult to observe in actual work.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a metastable state observation system of an edge trigger, which can effectively solve the problems in the prior art.
In order to realize the purpose, the technical scheme adopted by the invention is as follows:
an edge-flip-flop meta-stability observation system comprising: the device comprises a pulse signal source, a delayer A, a delayer B, a trigger, an NRZ/RZ converter, an error code testing unit and an oscilloscope;
the D end and the CP end of the trigger are respectively connected with a delayer A and a delayer B, and an oscilloscope is used for reading the input delay interval tau of the delayer A and the delayer B 01
The NRZ/RZ converter is arranged between the Q end of the trigger and the error code testing unit;
using error code test unit to count the pulse up-going edge of Q end and CP end of trigger respectively, then according to the number of pulses
Figure BDA0002022202770000021
The input excitation condition is obtained by formulaBit error rate delta 01
The error code testing unit consists of an NI acquisition card and Labview software,
when LABVIEW programming is carried out, only data collected from an NI acquisition card port are needed to be judged by rising edges, a shift register is used for continuous counting, and a zero clearing end is compiled.
In a rising edge judgment program of data collected by the NI collection card port, data of two ports are firstly distinguished by using an index array VI, then rising edge judgment is respectively carried out by using Boolean value conversion (point-by-point) VI, and in the VI, false-true is selected in the direction. The zero clearing end adopts a method of writing data 0 into the shift register when the condition structure is false, so as to achieve the purpose of zero clearing of the data.
Further, the pulse signal source outputs 0-5V square waves, the duty ratio is 50%, and the frequency is 100Hz. Phase shifter R =100 Ω.
An observation method of an edge trigger metastable state observation system comprises the following steps:
step 1, observing through an oscilloscope to enable the distance | tau between the rising edge of the D end of the trigger and the rising edge of the CP end of the trigger 01 |>|τ 01L |。
Step 2, realizing the pair of | tau 01 A decreasing sweep over a build time.
Step 3, when | τ 01 |<|τ 01L When I, the error code waveform can be observed at the Q end of the trigger by using an oscilloscope, and tau can be read by the oscilloscope at the moment 01 Value, delta, read by the error code test unit 01 The value is obtained.
Step 4, follow | τ 01 Reduction of |, δ 01 The value will gradually increase monotonically. When | τ 01 |<|τ 01H When is delta 01 The value will reach 100%. Continue to decrease | τ 01 Delta if | is 0 01 The value will always remain at the 100% value.
Compared with the prior art, the invention has the advantages that: the observation system is simple and easy to implement, has high reliability, and has important reference value for engineering technicians and teaching personnel engaged in the metastable state characteristic research of the edge trigger.
Drawings
FIG. 1 is a graph of error code over time for the present invention;
FIG. 2 shows the present invention with D terminal at [ tau ] 01L ,τ 01H ]Jump schematic diagram on interval;
FIG. 3 is a waveform diagram of random bit errors at the Q terminal of the present invention;
FIG. 4 is a block diagram of a metastability observation system according to the present invention;
FIG. 5 is a circuit diagram of a metastability observation system according to the present invention;
FIG. 6 is a block diagram of an error code tester according to the present invention;
FIG. 7 is a flow chart illustrating the observation of a metastable state experiment according to an embodiment of the present invention;
FIG. 8 is a delta-tau error code plot diagram of 74HC74 establishing time in accordance with an embodiment of the present invention
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings by way of examples.
Principle of operation
Trigger setup time T at edge D su In the region, there is an error curve as shown in fig. 1.
When the D-end data jumps from '0' at the previous moment to '1' at the next moment, the interval between the D-jump edge and the CP rising edge is tau 01 And satisfy | τ 01L |>|τ 01 |>|τ 01H In |, as shown in fig. 2.
A stable metastable error waveform can be observed at the Q-terminal of the flip-flop as shown in fig. 3.
In fig. 3, the random error code waveform at the Q terminal is not certain at a certain time, but has a statistical rule with τ 01 From large to small, the error rate will gradually increase from 0% to 100% monotonically.
For counting CP, Q (RZ) rising edges, the mathematical relationship between the counting values is as follows:
Figure BDA0002022202770000041
for convenient counting, the non-return-to-zero waveform Q (NRZ) output by the Q end needs to be converted into a return-to-zero waveform Q (RZ).
Construction of metastable state observation system
The metastability observation system is constructed as a block diagram as shown in fig. 4. In order to realize the delay of the D end and the CP end, a delayer 1 and a delayer 2 are respectively connected to the D end and the CP end, and an oscilloscope is used for reading an input delay interval tau 01 . Using error code test unit to count up-jumping edge of Q end pulse and up-jumping edge of CP end pulse, then obtaining error code rate delta under the condition of said input excitation according to formula (3) 01
If the same pulse signal source is used at the D end and the CP end, the RC delay circuit is used as the delay device, and the NRZ/RZ circuit is obtained by combining the Q end and the CP end, the time sequence shown in the figure 3 can be realized. The experimental specific circuit is shown in fig. 5.
In the circuit of fig. 5, the operating voltage was 5V, the pulse signal source model RIGOL DS1102E, the oscilloscope model Tektronix MSO58. The pulse signal source outputs 0-5V square wave with duty ratio of 50% and frequency of 100Hz. Phase shifter R =100 Ω, C 2 A trimming capacitor of 5/20pF is used. And the AND gate adopts an integrated four 2-input end AND gate CD4081. For shaping and isolation, the NOT gate selects an integrated six-input NOT gate CD4069.
Error code testing unit
The error code testing unit is composed of an NI acquisition card and Labview software, and is shown in figure 6.
The acquisition card is NI USB-6001 and has 13 digital ports. This experiment uses two digital I/O ports, port P0.0, port P0.1.
When programming LABVIEW, only the rising edge judgment is carried out on the data collected from the ports P0.0 and P0.1, the continuous counting is carried out by using a shift register, and the zero clearing end is programmed.
In the procedure of judging the rising edge of the data collected by the data port, the data of the two ports are firstly distinguished by using an index array VI, then the rising edge is judged by respectively using Boolean value conversion (point-by-point) VI, and in the VI, the direction is selected from false-true. The zero clearing end adopts a method of writing data 0 into the shift register when the condition structure is false, so as to achieve the purpose of zero clearing of the data.
Example 1
The experimental observation of edge D flip-flops using the metastability observation system is shown in FIG. 7.
An observation method of an edge trigger metastable state observation system comprises the following steps:
step 1, let C 1 、C 2 Minimum, increase C 3 The distance between the rising edge of the D end of the trigger and the rising edge of the CP end of the trigger is | tau through observation of an oscilloscope 01 |>|τ 01L |。
Step 2, fixing C 3 Gradually increase C 1 Realize to | τ 01 A decreasing sweep over a build time.
Step 3, when | τ 01 |<|τ 01L When |, the error code waveform can be observed at the Q end of the trigger by using an oscilloscope, and tau can be read by the oscilloscope at the moment 01 Value, delta, read by the error code test unit 01 The value is obtained.
Step 4, fixing C 1 And C 3 Increasing fine tuning capacitance C 2 The value is obtained. With | τ 01 Reduction of |, δ 01 The value will gradually increase monotonically. When | τ 01 |<|τ 01H When is delta 01 The value will reach 100%. Continue to decrease | τ 01 Delta if | is 0 01 The value will always remain at the 100% value.
In FIG. 5, the D flip-flop in the figure is replaced by an integrated flip-flop 74HC74 as an example of meta-stability observation. The measured data are shown in Table 1.
TABLE 1 74HC74 Integrated trigger bit error Rate data record
τ 01 (ns) δ(%)
-20.000 0
-10.00 0
-5.000 0
-3.000 0
-1.300 0
-1.289 3.32
-1.220 13.06
-1.197 32.03
-1.096 54.91
-1.082 62.28
-1.059 74.84
-1.036 82.59
-1.013 95.55
-0.850 100
-0.500 100
0 100
τ in Table 1 01 And the waveform half height is read out from the D end and the CP end by an oscilloscope.
Monitoring the Q terminal by an oscilloscope when the value is tau 01 Into [ tau ] 01L ,τ 01H ]In the interval, a metastable error occurs.
The error curves plotted from the data in Table 1 are shown in FIG. 8, τ 01L =1.675ns,τ 01H =1.013ns, the error code transition zone is in the range of 1.675 ns-1.013 ns.
The embodiment introduces the design idea of the metastable state observation system of the edge trigger, and provides a specific test circuit and a detailed test flow. When the delay value between the D end and the CP end of the trigger is in a certain interval in the set-up time, the error code output waveform of the Q end in the metastable state can be visually seen through the oscilloscope. In the embodiment, the integrated edge trigger 74HC74 is taken as an example, a monotone stable error code waveform of 0-100% is presented in the range of the establishment time of 1.675 ns-1.013 ns, and the test precision reaches 0.001ns.
It will be appreciated by those of ordinary skill in the art that the examples described herein are intended to assist the reader in understanding the manner in which the invention is practiced, and it is to be understood that the scope of the invention is not limited to such specifically recited statements and examples. Those skilled in the art, having the benefit of this disclosure, may effect numerous modifications thereto and changes may be made without departing from the scope of the invention in its aspects.

Claims (2)

1. An observation method of a metastable state observation system of an edge trigger is characterized in that:
the metastable state observation system of the edge trigger comprises: the device comprises a pulse signal source, a delayer A, a delayer B, a trigger, an NRZ/RZ converter, an error code testing unit and an oscilloscope;
respectively connecting a delay A and a delay B at the D end and the CP end of the trigger, and reading the input delay interval tau of the delay A and the delay B by using an oscilloscope 01
The NRZ/RZ converter is arranged between the Q end of the trigger and the error code testing unit;
using error code test unit to count the pulse up-going edge of Q end and CP end of trigger respectively, then according to the number of pulses
Figure FDA0004044827880000011
The error rate delta under the condition of the input excitation is obtained by a formula 01
The error code testing unit consists of an NI acquisition card and Labview software,
when LABVIEW programming is carried out, only data collected from an NI acquisition card port are needed to be judged on the rising edge, a shift register is used for continuous counting, and a zero clearing end is compiled;
in a rising edge judgment program of data collected by an NI collection card port, firstly, data of two ports are distinguished by using an index array VI, then rising edge judgment is carried out by respectively using Boolean value conversion (point-by-point) VI, and in the VI, false-true is selected in the direction; the zero clearing end adopts a method of writing data 0 into the shift register when the condition structure is false, so as to achieve the purpose of zero clearing of the data;
the observation method comprises the following steps:
step 1, observing through an oscilloscope to enable the distance | tau between the rising edge of the D end of the trigger and the rising edge of the CP end of the trigger 01 |>|τ 01L |;
Step 2, realizing the pair of | tau 01 L descending scanning in a building time range;
step 3, when | τ 01 |<|τ 01L When I, the error code waveform can be observed at the Q end of the trigger by using an oscilloscope, and tau can be read by the oscilloscope at the moment 01 Value by mistakeCode test cell readout delta 01 A value;
step 4, follow | τ 01 Reduction of |, δ 01 The value will gradually increase monotonically; when | τ 01 |<|τ 01H When is delta 01 The value will reach 100%; continue to decrease | τ 01 Delta if | is 0 01 The value will always remain at the 100% value.
2. The observation method of the metastable state observation system of the edge flip-flop according to claim 1, wherein: the pulse signal source outputs 0-5V square waves, the duty ratio is 50%, and the frequency is 100Hz; phase shifter R =100 Ω.
CN201910282713.4A 2019-04-10 2019-04-10 Metastable state observation system and method for edge trigger Active CN109995359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910282713.4A CN109995359B (en) 2019-04-10 2019-04-10 Metastable state observation system and method for edge trigger

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910282713.4A CN109995359B (en) 2019-04-10 2019-04-10 Metastable state observation system and method for edge trigger

Publications (2)

Publication Number Publication Date
CN109995359A CN109995359A (en) 2019-07-09
CN109995359B true CN109995359B (en) 2023-03-28

Family

ID=67132700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910282713.4A Active CN109995359B (en) 2019-04-10 2019-04-10 Metastable state observation system and method for edge trigger

Country Status (1)

Country Link
CN (1) CN109995359B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262583B (en) 2019-12-26 2021-01-29 普源精电科技股份有限公司 Metastable state detection device and method and ADC circuit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1380998A (en) * 2000-03-06 2002-11-20 皇家菲利浦电子有限公司 Method and apparatus for generating random numbers using flip-flop meta-stability
CN102346236A (en) * 2011-06-21 2012-02-08 电子科技大学 Time parameter measurement system
CN104182203A (en) * 2014-08-27 2014-12-03 曙光信息产业(北京)有限公司 True random number generating method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1380998A (en) * 2000-03-06 2002-11-20 皇家菲利浦电子有限公司 Method and apparatus for generating random numbers using flip-flop meta-stability
CN102346236A (en) * 2011-06-21 2012-02-08 电子科技大学 Time parameter measurement system
CN104182203A (en) * 2014-08-27 2014-12-03 曙光信息产业(北京)有限公司 True random number generating method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
边沿触发器亚稳态现象的实验观测;侯凤妹等;《光电器件》;20181201;第39卷(第6期);第806-810页 *

Also Published As

Publication number Publication date
CN109995359A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN109709475A (en) Burr detection in input/output bus
CN105890685B (en) A kind of device for measuring ultrasonic wave flow based on accumulated phase difference
CN102611447B (en) Noise adding signal synchronization clock extraction device based on FPGA (field programmable gate array)
CN107911102B (en) Synchronous filter and method for cross-clock domain asynchronous data
CN109633253B (en) Circuit and method for realizing voltage transient signal detection based on FPGA
CN105445653A (en) Integrated circuit with low-power scanning triggers
CN109995359B (en) Metastable state observation system and method for edge trigger
CN102928772A (en) Time sequence testing system and testing method thereof
CN110190505A (en) The burst pulse drive system and its method of pulse laser
CN104991210A (en) Evaluation method for partial discharge detection device, and calibration device
CN110987102A (en) High-interference-resistance high-precision gas ultrasonic flowmeter and measuring method thereof
CN111262561B (en) Metastable state detection circuit of comparator
CN102439465B (en) Method and device for testing signal sequence
CN102979948A (en) Electromagnetic valve closing-time moment detection circuit of diesel engine electric control system
US20220187351A1 (en) Waveform measuring method
CN105388437A (en) Method for testing waveform capture rate of digital storage oscilloscope
CN216561747U (en) High sampling rate equivalent sampling system based on FPGA
CN206193088U (en) Detection circuitry of trackable peak value
CN212321713U (en) High-speed tube voltage drop detection circuit based on parallel capacitor
CN108241129A (en) Switching power supply output filter capacitor monitoring device and method
CN108398590A (en) A kind of voltage peak detection circuit of numeral output
CN102520228A (en) Peak value detection method in digital storage oscilloscope and system thereof
CN108227541B (en) Discontinuous analog differential signal frequency and phase acquisition method
CN104406549B (en) Anchor rod length measuring method and anchor rod length measuring instrument
CN1252482C (en) Method for testing internal capacitance of integrated circuit using CR circuit

Legal Events

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