FULL-PATH CIRCUIT DELAY MEASUREMENT DEVICE FOR FIELD-PROGRAMMABLE GATE ARRAY (FPGA) AND MEASUREMENT METHOD
20230194602 · 2023-06-22
Assignee
Inventors
Cpc classification
Y02D10/00
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
Abstract
A full-path circuit delay measurement device for a field-programmable gate array (FPGA) and a measurement method are provided. The measurement device includes two shadow registers and a phase-shifted clock, where the two shadow registers take an output of a measured combinational logic circuit as a clock and sample the phase-shifted clock SCLK as data; the two shadow registers are respectively triggered on rising and falling edges of the output of the measured combinational logic circuit to sample the phase-shifted clock; outputs of the two shadow registers are delivered by an OR gate as an input into a synchronization register; a clock of the synchronization register serves as a clock MCLK of the measured combinational logic circuit; an output of the synchronization register serves as that of the circuit delay measurement device; the phase-shifted clock SCLK and the clock MCLK of the measured combinational logic circuit have the same frequency.
Claims
1. A full-path circuit delay measurement device for a field-programmable gate array (FPGA), comprising two shadow registers and a phase-shifted clock, wherein the two shadow registers take an output of a measured combinational logic circuit as a clock and sample the phase-shifted clock as data; the two shadow registers are respectively triggered on a rising edge and a falling edge of the output of the measured combinational logic circuit to sample the phase-shifted clock; outputs of the two shadow registers are delivered by an OR gate as an input into a synchronization register; a clock of the synchronization register serves as a clock of the measured combinational logic circuit; an output of the synchronization register serves as an output of the circuit delay measurement device; the phase-shifted clock and the clock of the measured combinational logic circuit have the same frequency and an adjustable phase difference.
2. A measurement method for the full-path circuit delay measurement device for the FPGA according to claim 1, wherein the measurement method comprises: gradually adjusting the phase difference between the phase-shifted clock and the clock of the measured combinational logic circuit from 0° to 360° at regular intervals; allowing, when the phase difference between the phase-shifted clock and the clock of the measured combinational logic circuit is small, a falling edge of the phase-shifted clock to arrive earlier than an edge of the measured combinational logic circuit, wherein the circuit delay measurement device gains a first sampling result of 0; allowing, when the phase difference between the phase-shifted clock and the clock of the measured combinational logic circuit gradually increases, the falling edge of the phase-shifted clock to arrive later than the edge of the measured combinational logic circuit, wherein the circuit delay measurement device gains a second sampling result of 1, and a transition point from 0 to 1 occurs, indicating that the falling edge of the phase-shifted clock coincides with an output edge of the measured combinational logic circuit; allowing, when the phase difference further increases, a rising edge of the phase-shifted clock to arrive after the edge of the measured combinational logic circuit, wherein the circuit delay measurement device gains a third sampling result of 0, and a transition point from 1 to 0 indicates that the rising edge of the phase-shifted clock coincides with the output edge of the measured combinational logic circuit; since a phase of the phase-shifted clock is known, a phase where a sampled value of the circuit delay measurement device is transitioned reflects a positional relationship between the edge of the measured combinational logic circuit and an edge of the phase-shifted clock, thereby indirectly measuring a delay of the measured combinational logic circuit.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0009]
[0010]
[0011]
DETAILED DESCRIPTION OF THE EMBODIMENTS
[0012] The present invention will be described in detail in conjunction with the drawings and specific embodiments. The embodiments are implemented based on the technical solutions of the present invention. The following presents detailed implementations and specific operation processes. The protection scope of the present invention, however, is not limited to the following embodiments.
[0013] The present invention proposes an on-line full-path circuit delay measurement device for an FPGA. The measurement device includes mainly two shadow registers and a phase-shifted clock. The two shadow registers take an output of a measured combinational logic circuit as a clock and sample the phase-shifted clock SCLK as data. The two shadow registers are respectively triggered on rising and falling edges of the output of the measured combinational logic circuit to sample the phase-shifted clock. Outputs of the two shadow registers are delivered by an OR gate as an input into a synchronization register. A clock of the synchronization register serves as a clock MCLK of the measured combinational logic circuit. An output of the synchronization register serves as that of the circuit delay measurement device. The on-line circuit delay measurement device is used to measure a delay of the combinational logic circuit. The delay of the combinational logic circuit refers to a time lag between the edge of the combinational logic circuit and the rising edge of the clock MCLK of the combinational logic circuit.
[0014] During measurement, the phase difference between the phase-shifted clock SCLK and the clock MCLK of the combinational logic circuit is gradually adjusted from 0 to 360 at regular intervals. When the phase difference between the phase-shifted clock SCLK and the clock MCLK of the combinational logic circuit is small, a falling edge of the phase-shifted clock SCLK is allowed to arrive earlier than an edge of the combinational logic circuit, where the delay measurement device gains a sampling result of 0. When the phase difference between the phase-shifted clock SCLK and the clock MCLK of the combinational logic circuit gradually increases, the falling edge of the phase-shifted clock SCLK is allowed to arrive later than the edge of the combinational logic circuit, where the delay measurement device gains a sampling result of 1. When the phase difference further increases, the rising edge of the phase-shifted clock SCLK is allowed to arrive later than the edge of the combinational logic circuit, where the delay measurement device gains a sampling result of 0. Therefore, a phase at which a sampled value of the measurement device is transitioned reflects a positional relationship between the edge of the combinational logic circuit and the edge of the phase-shifted clock, thereby indirectly measuring a delay of the measured combinational logic circuit.
[0015] The shadow registers take an output of the combinational logic circuit as a clock and the phase-shifted clock as data. Through the outputs of the shadow registers, the sequence relationship between the rising edge of the phase-shifted clock and the rising edge of the combinational logic circuit is determined, and then the time of the rising edge of the combinational logic circuit is indirectly measured. S1 samples the rising edge, and S2 samples the falling edge. Their outputs are delivered to the synchronization register SYNC by the OR gate, which facilitates result acquisition. The phase-shifted clock SCLK and the clock MCLK of the measured combinational logic circuit have the same frequency and an adjustable phase difference θ.
[0016]
[0017]
[0018] The above described are merely several embodiments of the present invention. Although these embodiments are described specifically and in detail, they should not be construed as a limitation to the patent scope of the present invention. It should be noted that those ordinary skilled in the art may further make several variations and improvements without departing from the conception of the present invention, but such variations and improvements should all fall within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the appended claims.