Link delay estimation method and system based on optoelectronic hybrid computing system
By setting the detection voltage range of the detection signal according to the working voltage range of the photon computing chip in the optoelectronic hybrid computing system, the accuracy problem of link delay estimation is solved, the link delay of the optoelectronic hybrid computing system is accurately calculated, and the efficiency is improved Calculation accuracy.
Patent Information
- Application Number
- CN202410840599.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-27
AI Technical Summary
In the photoelectric hybrid computing system, due to the independence of the photonic computing chip and the electrical chip, there is a link delay during the signal transmission process, which affects the accuracy of signal processing. It is difficult to effectively calculate and calibrate with the existing technology.
By setting the detection voltage range of the detection signal according to the working voltage range of the photon computing chip, using the upper limit and lower limit control coefficients to calculate the detection voltage range of the detection signal, and sending the detection signal from the sending end, the receiving end receives and compares to determine the delay, repeat Average multiple times to improve accuracy.
It achieves accurate calculation of the link delay of the optoelectronic hybrid computing system, improves the calculation accuracy, and is especially suitable for large-scale optoelectronic hybrid computing array systems with high requirements.
Smart Images

Figure CN118396064B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of photon computing technology, and in particular relates to a link delay estimation method and system based on an optoelectronic hybrid computing system. Background Art
[0002] In optoelectronic hybrid computing systems used for AI computing (i.e. artificial intelligence algorithms, including various neural network algorithms), since the photonic computing chip and the electrical chip are independent chips, they are connected through a certain medium, including but not limited to the substrate of 2.5D packaging, the copper pillar of 3D packaging (especially photonic chips or optoelectronic hybrids with large-scale photon arrays), and some signals are also transmitted through PCB boards, so there will inevitably be a certain delay between data paths. In order to ensure the accuracy of subsequent signal processing, the delay needs to be calculated. Summary of the invention
[0003] The object of the present invention is to provide a link delay estimation method and system based on an optoelectronic hybrid computing system, which partially solves or alleviates the above-mentioned deficiencies in the prior art and can estimate the link delay of the optoelectronic hybrid computing system.
[0004] In order to solve the above-mentioned technical problems, the present invention specifically adopts the following technical solutions: a link delay estimation method based on an optoelectronic hybrid computing system, comprising:
[0005] S101 sets the detection voltage interval of the detection signal according to the working voltage interval of the photon computing chip in the link to be detected; including:
[0006] S1011 obtains the operating voltage range of the photon computing chip in the link to be detected;
[0007] S1012: setting an upper limit control coefficient and a lower limit control coefficient respectively according to the difference between the upper limit and the lower limit of the working voltage range, wherein the upper limit control coefficient and the lower limit control coefficient are within the interval [0,1);
[0008] S1013 calculates the detection voltage interval of the detection signal using the upper limit control coefficient and the lower limit control coefficient as well as the upper limit and lower limit of the working voltage interval of the photon computing chip; the upper limit of the detection voltage interval is calculated using the formula U max =U dmax *(1-K cmax ) is used to calculate, where U max is the upper limit of the detection voltage range, U dmax is the upper limit of the working voltage range of the photon computing chip, K cmax is the upper limit control coefficient; the lower limit of the detection voltage range is calculated using the formula U min =Udmin *(1+K cmin ) is used to calculate, where U min is the lower limit of the detection voltage range, U dmin is the lower limit of the working voltage range of the photon computing chip, K cmin is the lower limit control coefficient;
[0009] S102: sending a detection signal from the transmitting end of the link to be detected, wherein the detection signal is within the constraint of the detection voltage range;
[0010] S103 receives a detection signal from the receiving end of the link to be detected and compares it with the sent detection signal. If the received detection signal is the same as the sent detection signal, the difference between the time when the detection signal is received and the time when the detection signal is sent is used as the delay of the link to be detected.
[0011] As an improvement, the upper limit control coefficient and the lower limit control coefficient are proportional to the difference between the upper limit and the lower limit in the working voltage range of the photonic computing chip.
[0012] As an improvement, the upper limit control coefficient or the lower limit control coefficient is calculated using the formula K=R*D, where K is the upper limit control coefficient or the lower limit control coefficient, D is the difference between the upper limit and the lower limit in the working voltage range of the photon computing chip, and R is the adjustment coefficient.
[0013] As an improvement, when the difference between the upper limit and the lower limit in the operating voltage interval is in the first threshold interval, the upper limit control coefficient and the lower limit control coefficient are in the first coefficient interval;
[0014] When the difference between the upper limit and the lower limit in the operating voltage interval is within the second threshold interval, the upper limit control coefficient and the lower limit control coefficient are within the second coefficient interval;
[0015] When the difference between the upper limit and the lower limit in the operating voltage interval is within the third threshold interval, the upper limit control coefficient and the lower limit control coefficient are within the third coefficient interval.
[0016] As an improvement, the upper limit control coefficient and the lower limit control coefficient are in the interval [0, 0.25].
[0017] As an improvement, the detection signal includes a low level and a high level that are arranged at intervals; the high level is within the constraints of the detection voltage interval.
[0018] As an improvement, the link to be detected includes a controller, a DAC, a photonic computing chip, a TIA, and an ADC that form a loop. The detection signal is sent from the controller and passes through the DAC, the photonic computing chip, the TIA, and the ADC in sequence and returns to the controller.
[0019] As an improvement, repeat steps S102 to S104 several times to obtain some link delay data;
[0020] The link delay data is averaged to obtain the link delay.
[0021] The present invention also provides a link delay estimation system based on an optoelectronic hybrid computing system, comprising:
[0022] The detection voltage interval acquisition module is used to set the detection voltage interval of the detection signal according to the working voltage interval of the photon computing chip in the link to be detected; including: obtaining the working voltage interval of the photon computing chip in the link to be detected; setting an upper limit control coefficient and a lower limit control coefficient according to the upper limit and lower limit of the working voltage interval, respectively, and the upper limit control coefficient and the lower limit control coefficient are within the interval [0,1); using the upper limit control coefficient and the lower limit control coefficient and the upper limit and lower limit of the working voltage interval of the photon computing chip to calculate the detection voltage interval of the detection signal; the upper limit of the detection voltage interval is calculated using the formula U max =U dmax *(1-K cmax ) is used to calculate, where U max is the upper limit of the detection voltage range, U dmax is the upper limit of the working voltage range of the photon computing chip, K cmax is the upper limit control coefficient; the lower limit of the detection voltage range is calculated using the formula U min =U dmin *(1+K cmin ) is used to calculate, where U min is the lower limit of the detection voltage range, U dmin is the lower limit of the working voltage range of the photon computing chip, K cmin is the lower limit control coefficient;
[0023] A signal sending module, used for sending a detection signal from a sending end of the link to be detected, wherein the detection signal is within the constraint of the detection voltage range;
[0024] A signal receiving module is used to receive a detection signal from the receiving end of the link to be detected and compare it with the sent detection signal. If the received detection signal is the same as the sent detection signal, the difference between the time when the detection signal is received and the time when the detection signal is sent is used as the delay of the link to be detected.
[0025] As an improvement, it further includes a data processing module, and the data processing module includes:
[0026] A data acquisition unit, used for acquiring a number of link delay data;
[0027] The calculation unit is used to calculate an average value of a plurality of link delay data as the link delay.
[0028] The present invention is beneficial in that:
[0029] The present invention first sets the detection voltage interval of the detection signal according to the working voltage interval of the photon computing chip in the link to be detected. Specifically, the working voltage interval of the photon computing chip in the link to be detected is obtained; the upper limit control coefficient and the lower limit control coefficient are respectively set according to the difference between the upper limit and the lower limit of the working voltage interval, and the upper limit control coefficient and the lower limit control coefficient are within the interval [0,1); the detection voltage interval of the detection signal is calculated using the upper limit control coefficient and the lower limit control coefficient and the upper limit and lower limit of the working voltage interval of the photon computing chip.
[0030] The detection signal needs to be set according to the working voltage range of the photon computing chip in order to make the calculated result closer to the actual operation result. The upper limit control coefficient and the lower limit control coefficient are proportional to the difference between the upper limit and the lower limit of the working voltage range of the photon computing chip. When the difference between the upper limit and the lower limit of the working voltage range of the photon computing chip is larger, the high level amplitude of the set detection signal is more concentrated. When the difference between the upper limit and the lower limit of the working voltage range of the photon computing chip is smaller, it is avoided that the detection voltage range is too small to make the high level difficult to distinguish.
[0031] Secondly, a detection signal is sent from the transmitting end of the link to be detected, and the detection signal is within the constraints of the detection voltage range. The detection signal is modulated according to different photonic computing chips. Each photonic computing chip with a different working voltage range has a different detection signal, thereby meeting the detection requirements of multiple photonic computing chips, making the final result of link delay calculation more accurate, and making the subsequent calibration based on the calculated link delay more accurate, thereby ensuring the calculation accuracy of the optoelectronic hybrid computing system applied to the AI algorithm; especially the optoelectronic hybrid computing system with a large-scale optoelectronic hybrid computing array, which has higher requirements for calculation accuracy. Therefore, accurate link delay calculation results help improve the calculation accuracy of the system.
[0032] Thirdly, the difference between the time when the detection signal is received and the time when the detection signal is sent is used as the delay of the link to be detected. The method is simple and direct, easy to operate, and does not require the use of other auxiliary equipment, and can be performed through the link to be detected itself.
[0033] Finally, data processing is performed on several detection results to obtain a more accurate link delay, providing a guarantee for subsequent link delay calibration work. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, each element or part is not necessarily drawn according to the actual scale. Obviously, the drawings described below are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without paying creative labor.
[0035] Figure 1 is a schematic diagram of an exemplary link to be detected;
[0036] Figure 2 A flowchart of a link delay estimation method based on an optoelectronic hybrid computing system according to an embodiment of the present invention;
[0037] Figure 3 is a schematic diagram of detecting signals in the present invention;
[0038] Figure 4 The structure diagram of a link delay estimation system based on an optoelectronic hybrid computing system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] Herein, suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings by themselves. Therefore, "module", "component" or "unit" can be used mixedly.
[0041] In this document, the terms "upper", "lower", "inner", "outer", "front", "back", "one end", "the other end" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0042] In this document, unless otherwise clearly specified and limited, the terms "installed", "provided with", "connected", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0043] Herein "and / or" includes any and all combinations of one or more of the associated listed items.
[0044] Herein, "plurality" means two or more than two, ie, it includes two, three, four, five, etc.
[0045] Definition of noun:
[0046] Optical AI chip: a chip specially designed for processing optical data and performing artificial intelligence (AI) inference, also known as a photonic computing chip, or photonic chip, or optical computing chip. It is based on the principles of optics, takes optical signals as input, and performs computing operations through a series of optical components and devices. These optical components can be components such as lasers, optical fibers, optical modulators, etc., which are used to process and transmit optical signals. For example, see Figure 1 The photonic computing chip converts the light signal into a weak photocurrent signal through a light-emitting diode, and then converts the photocurrent signal into a voltage signal U through a transimpedance amplifier TIA. The analog-to-digital converter ADC then converts the voltage signal (i.e., analog signal) into a digital signal and outputs it to the FPGA for processing. At the same time, the FPGA outputs the processed digital signal to the digital-to-analog converter DAC to convert the digital signal output by the FPGA into an analog signal and input it into the photonic computing chip.
[0047] Computing array: Based on the above computing units, an N*N computing array is constructed, and there is a computing unit at each intersection of the input row waveguide and the output column waveguide in the computing array. If the computing unit adopts a photon computing unit, the computing array can also be called a photon computing array; if the computing unit adopts an optoelectronic hybrid computing unit, the computing array can also be called an optoelectronic hybrid computing array.
[0048] Field Programmable Gate Array (FPGA): is a large-scale programmable logic device consisting of programmable logic resources, programmable interconnect resources and programmable input and output resources.
[0049] Analog to Digital Converter (ADC): is a device that converts analog signals into digital signals. ADC sampling means that the ADC samples the continuously changing analog signal within a certain time interval, so as to restore the signal waveform information without distortion under the condition of limited sampling rate. The sampling frequency determines the number of samples collected per second, usually in Hz.
[0050] Digital to Analog Converter (DAC): A converter that converts a discrete signal in the form of binary digital quantity into an analog quantity based on a standard quantity (or reference quantity). This conversion is the inverse process of analog-to-digital conversion (A / D conversion), that is, converting a digital coded signal into a corresponding analog signal.
[0051] Trans-Impedance Amplifier (TIA): An electronic amplifier that amplifies a current input signal and generates a voltage output signal. Its gain is proportional to the input current, that is, the output voltage is proportional to the input current; the unit of gain is resistance.
[0052] Photodiode (PD): A semiconductor device consisting of a PN junction with unidirectional conductivity. Under the action of reverse voltage and light, it generates a weak current signal, also called photocurrent.
[0053] Embodiment 1: Prior art Chinese patent application CN202180062283.0 discloses a method for measuring the delay time of a signal propagating in a circuit in a circuit structure, the method comprising: irradiating the circuit by pulses of a charged particle beam, wherein the pulse repetition frequency of the pulses of the charged particle beam is variable. The method also comprises: for each pulse repetition frequency in the pulse repetition frequency, in response to irradiating the circuit with a corresponding pulse repetition frequency by pulses of a charged particle beam, measuring secondary charged particle emission; and in response to the change in the pulse repetition frequency, deriving the delay time of the circuit based on the secondary charged particle emission.
[0054] In the above prior art, the circuit line is irradiated with pulses of charged particle beams, and the repetition frequency of these pulses is variable. Then, for each different repetition frequency, the emission of secondary charged particles is measured. By observing the changes in these emission conditions, the delay time of the circuit is derived. This method is relatively cumbersome in actual use and the operation is also relatively troublesome.
[0055] In order to obtain the link delay of the optoelectronic hybrid computing system simply and quickly, Figure 2As shown, the present invention provides a link delay estimation method based on an optoelectronic hybrid computing system, comprising:
[0056] S101 sets a detection voltage interval of a detection signal according to an operating voltage interval of a photon computing chip in a link to be detected.
[0057] The link of the optoelectronic hybrid computing system in the present invention is as follows Figure 1 As shown, it includes a controller, a DAC, a photon computing chip, a TIA, and an ADC which are connected in sequence to form a loop, and the ADC is connected to the controller. In some embodiments, the controller can also be an FPGA. When working, the FPGA sends a control signal, which is a digital signal. The digital signal is converted into an analog signal by the DAC and then input into the photon computing chip. The photon computing chip outputs a photocurrent signal after analog calculation, and after being amplified by the TIA, it is converted into a digital signal by the ADC and then transmitted back to the controller to form a loop.
[0058] In order to make the calculated result closer to the actual operation result, the detection signal in this embodiment needs to be set according to the working voltage range of the photon computing chip. The specific steps of the setting method include:
[0059] S1011 obtains the operating voltage range of the photon computing chip in the link to be detected.
[0060] The operating voltage ranges of different photon computing chips are different. For example, the operating voltage range of some photon computing chips is 0.8~1.4V, and the operating voltage range of some photon computing chips may be 0.6~1.8V. In this implementation, since the detection voltage range of the detection signal needs to be set according to the operating voltage range of the photon computing chip in the link to be tested, it is first necessary to obtain the operating voltage range of the photon computing chip for setting.
[0061] S1012 sets an upper limit control coefficient and a lower limit control coefficient according to the difference between the upper limit and the lower limit of the working voltage range, respectively, and the upper limit control coefficient and the lower limit control coefficient are within the interval [0,1).
[0062] The upper limit control coefficient and the lower limit control coefficient are numbers between 0 and 1. The detection voltage range obtained by the upper limit control coefficient and the lower limit control coefficient should be a subset of the working voltage of the photon computing chip.
[0063] More specifically, the upper limit control coefficient and the lower limit control coefficient are proportional to the difference between the upper limit and the lower limit of the working voltage interval of the photon computing chip. In other words, the greater the difference between the upper limit and the lower limit of the working voltage interval of the photon computing chip, the greater the upper limit control coefficient and the lower limit control coefficient, so that the detection voltage interval occupies a smaller part of the working voltage interval, so that the set high level amplitude of the detection signal is more concentrated. The smaller the difference between the upper limit and the lower limit of the working voltage interval of the photon computing chip, the smaller the upper limit control coefficient and the lower limit control coefficient, so that the detection voltage interval occupies a larger part of the working voltage interval, avoiding the detection voltage interval being too small to make the high level difficult to distinguish. For example, when the detection voltage interval is too small between 1.2 and 1.25V, then as high levels 1.2 and 1.25 are easily misdetected due to errors, resulting in the failure of the final detection.
[0064] In this implementation, the upper limit control coefficient or the lower limit control coefficient can be calculated using the formula K=R*D, where K is the upper limit control coefficient or the lower limit control coefficient, D is the difference between the upper limit and the lower limit of the working voltage range of the photon computing chip, and R is the adjustment coefficient. For example, the upper limit and the lower limit of the working voltage range of the photon computing chip are 1.8V and 0.6V respectively, then the difference between the upper limit and the lower limit is 1.2V, assuming that the adjustment coefficient is 0.2, then the upper limit control coefficient or the lower limit control coefficient is 0.24. Of course, the upper limit control coefficient or the lower limit control coefficient can be the same or different, and it can be set by modifying the adjustment coefficient.
[0065] In addition, under the premise that the upper limit control coefficient and the lower limit control coefficient are proportional to the difference between the upper limit and the lower limit of the working voltage range of the photon computing chip, this embodiment also provides a method for obtaining the upper limit control coefficient or the lower limit control coefficient:
[0066] When the difference between the upper limit and the lower limit of the working voltage interval is in the first threshold interval, the upper limit control coefficient and the lower limit control coefficient are in the first coefficient interval; for example, when the difference D between the upper limit and the lower limit is in the interval [0, 0.4], then the first coefficient interval where the upper limit control coefficient and the lower limit control coefficient are located is [0, 0.05].
[0067] When the difference between the upper limit and the lower limit of the working voltage interval is in the second threshold interval, the upper limit control coefficient and the lower limit control coefficient are in the second coefficient interval; for example, if the difference D between the upper limit and the lower limit is in the interval (0.4, 1], then the second coefficient interval where the upper limit control coefficient and the lower limit control coefficient are located is (0.05, 0.15].
[0068] When the difference between the upper limit and the lower limit of the working voltage interval is in the third threshold interval, the upper limit control coefficient and the lower limit control coefficient are in the third coefficient interval. For example, if the difference D between the upper limit and the lower limit is in the interval (1, 1.5], then the second coefficient interval where the upper limit control coefficient and the lower limit control coefficient are located is (0.15, 0.25].
[0069] In general, the upper limit control coefficient and the lower limit control coefficient in this implementation are within the interval [0, 0.25].
[0070] S1013 calculates the detection voltage interval of the detection signal using the upper limit control coefficient and the lower limit control coefficient as well as the upper limit and lower limit of the working voltage interval of the photon computing chip; the upper limit of the detection voltage interval is calculated using the formula U max =U dmax *(1-K cmax ) is used to calculate, where U max is the upper limit of the detection voltage range, U dmax is the upper limit of the working voltage range of the photon computing chip, K cmax is the upper limit control coefficient; the lower limit of the detection voltage range is determined by the formula U min =U dmin *(1+K cmin ) is used to calculate, where U min is the lower limit of the detection voltage range, U dmin is the lower limit of the working voltage range of the photon computing chip, K cmin is the lower limit control coefficient.
[0071] Assuming that the upper limit control coefficient is 0.2, the lower limit control coefficient is 0.18, and the upper and lower limits of the working voltage range of the photonic computing chip are 1.8V and 0.6V respectively, then the detection voltage range that can be obtained according to the above calculation method is 0.708V~1.44V.
[0072] S102: Send a detection signal from the transmitting end of the link to be detected, where the detection signal is within the constraints of the detection voltage range.
[0073] In this implementation, the transmitting end of the link to be detected is actually the controller FPGA. The detection signal sent by the FPGA is modulated by the DAC. The detection signal output by the DAC includes a low level and a high level set at intervals; wherein the low level is 0V, and the high level is within the constraints of the detection voltage interval, such as Figure 3 shown.
[0074] S103 receives a detection signal from the receiving end of the link to be detected and compares it with the sent detection signal. If the received detection signal is the same as the sent detection signal, the difference between the time when the detection signal is received and the time when the detection signal is sent is used as the delay of the link to be detected.
[0075] In this implementation, the receiving end of the sprocket to be detected is actually still the controller FPGA. After receiving the signal, the FPGA compares it with the detection signal sent by itself. If the signals are the same, the received signal is considered to be the detection signal. At this time, the time when the detection signal is received minus the time when the detection signal is sent can be obtained to obtain the delay of the detection signal running in the entire link.
[0076] The so-called link delay refers to the time difference between the time when the sender finishes sending the signal and the time when the receiver finishes receiving the signal. In fact, sending and receiving the signal itself also takes time. Therefore, a more reliable method is to start timing from the moment the signal is sent to the moment the signal is received. The time when the signal is received minus the time when the signal is sent is the link delay.
[0077] S104 data processing.
[0078] In order to make the calculated result more accurate, in this implementation, several link delay data can be obtained by repeatedly executing steps S102 to S104 several times; the detection signal sent each time is different (preferably, the upper limit and / or lower limit are different. Specifically, the upper limit difference or lower limit difference between the detection signals is within the empirical threshold range) to facilitate distinction when receiving.
[0079] The link delay data is averaged to obtain the link delay, thereby eliminating the possible error in a single measurement.
[0080] Example 2: Figure 4 As shown, the present invention also provides a link delay estimation system based on an optoelectronic hybrid computing system, comprising:
[0081] The detection voltage interval acquisition module is used to set the detection voltage interval of the detection signal according to the working voltage interval of the photon computing chip in the link to be detected; including: obtaining the working voltage interval of the photon computing chip in the link to be detected; setting an upper limit control coefficient and a lower limit control coefficient according to the upper limit and lower limit of the working voltage interval, respectively, and the upper limit control coefficient and the lower limit control coefficient are within the interval [0,1); using the upper limit control coefficient and the lower limit control coefficient and the upper limit and lower limit of the working voltage interval of the photon computing chip to calculate the detection voltage interval of the detection signal; the upper limit of the detection voltage interval is calculated using the formula U max =U dmax *(1-K cmax ) is used to calculate, where U max is the upper limit of the detection voltage range, U dmax is the upper limit of the working voltage range of the photon computing chip, K cmax is the upper limit control coefficient; the lower limit of the detection voltage range is determined by the formula U min =Udmin *(1+K cmin ) is used to calculate, where U min is the lower limit of the detection voltage range, U dmin is the lower limit of the working voltage range of the photon computing chip, K cmin is the lower limit control coefficient;
[0082] A signal sending module, used to send a detection signal from a sending end of the link to be detected, wherein the detection signal is within the constraints of a detection voltage range;
[0083] A signal receiving module is used to receive a detection signal from a receiving end of the link to be detected and compare it with the sent detection signal. If the received detection signal is the same as the sent detection signal, the difference between the time when the detection signal is received and the time when the detection signal is sent is used as the actual running time of the link to be detected;
[0084] A comparison module compares the actual running time of the link to be detected with the theoretical running time to obtain the link delay;
[0085] A data processing module, the data processing module comprising:
[0086] A data acquisition unit, used for acquiring a number of link delay data;
[0087] The calculation unit is used to calculate an average value of a plurality of link delay data as the link delay.
[0088] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0089] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a computer terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0090] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A link delay estimation method based on an optoelectronic hybrid computing system. Features include: S101 sets the detection voltage interval of the detection signal according to the working voltage interval of the photon computing chip in the link to be detected; including: S1011 obtains the operating voltage range of the photon computing chip in the link to be detected; S1012 sets an upper limit control coefficient and a lower limit control coefficient according to the difference between the upper limit and the lower limit of the working voltage range, respectively, wherein the upper limit control coefficient and the lower limit control coefficient are within the interval [0,1); S1013 calculates the detection voltage interval of the detection signal using the upper limit control coefficient and the lower limit control coefficient as well as the upper limit and lower limit of the working voltage interval of the photon computing chip; the upper limit of the detection voltage interval is calculated using the formula U max =U dmax *(1-K cmax ) is used to calculate, where U max is the upper limit of the detection voltage range, U dmax is the upper limit of the working voltage range of the photon computing chip, K cmax is the upper limit control coefficient; the lower limit of the detection voltage range is calculated using the formula U min =U dmin *(1+K cmin ) to calculate, where U min is the lower limit of the detection voltage range, U dmin is the lower limit of the working voltage range of the photon computing chip, K cmin is the lower limit control coefficient; S102: sending a detection signal from the transmitting end of the link to be detected, wherein the detection signal is within the constraint of the detection voltage range; S103 receives a detection signal from the receiving end of the link to be detected and compares it with the sent detection signal. If the received detection signal is the same as the sent detection signal, the difference between the time when the detection signal is received and the time when the detection signal is sent is used as the delay of the link to be detected.
2. According to claim 1, a link delay estimation method based on an optoelectronic hybrid computing system, Features: The upper limit control coefficient and the lower limit control coefficient are proportional to the difference between the upper limit and the lower limit of the working voltage range of the photonic computing chip.
3. The link delay estimation method based on the optoelectronic hybrid computing system according to claim 2, Features: The upper limit control coefficient or the lower limit control coefficient is calculated using the formula K=R*D, where K is the upper limit control coefficient or the lower limit control coefficient, D is the difference between the upper limit and the lower limit of the working voltage range of the photon computing chip, and R is the adjustment coefficient.
4. The link delay estimation method based on the optoelectronic hybrid computing system according to claim 2, Features: When the difference between the upper limit and the lower limit of the operating voltage interval is within the first threshold interval, the upper limit control coefficient and the lower limit control coefficient are within the first coefficient interval; When the difference between the upper limit and the lower limit of the operating voltage interval is within the second threshold interval, the upper limit control coefficient and the lower limit control coefficient are within the second coefficient interval; When the difference between the upper limit and the lower limit of the operating voltage interval is within the third threshold interval, the upper limit control coefficient and the lower limit control coefficient are within the third coefficient interval.
5. The link delay estimation method based on the optoelectronic hybrid computing system according to claim 1, Features: The upper limit control coefficient and the lower limit control coefficient are within the interval [0, 0.25].
6. The link delay estimation method based on the optoelectronic hybrid computing system according to claim 1, Features: The detection signal includes a low level and a high level that are arranged at intervals; the high level is within the constraints of the detection voltage interval.
7. The link delay estimation method based on the optoelectronic hybrid computing system according to claim 1, Features: The link to be detected includes a controller, a DAC, a photon computing chip, a TIA, and an ADC that form a loop. A detection signal is sent from the controller and sequentially passes through the DAC, the photon computing chip, the TIA, and the ADC and returns to the controller.
8. The link delay estimation method based on the optoelectronic hybrid computing system according to claim 1, Features: Repeat steps S102 to S104 several times to obtain some link delay data; The actual link delay is obtained by averaging several link delay data.
9. A link delay estimation system based on an optoelectronic hybrid computing system. Features include: A detection voltage interval acquisition module is used to set the detection voltage interval of the detection signal according to the working voltage interval of the photon computing chip in the link to be detected; The method comprises obtaining an operating voltage interval of a photon computing chip in a link to be detected; setting an upper limit control coefficient and a lower limit control coefficient respectively according to the difference between an upper limit and a lower limit of the operating voltage interval, wherein the upper limit control coefficient and the lower limit control coefficient are within the interval [0,1); calculating a detection voltage interval of a detection signal using the upper limit control coefficient and the lower limit control coefficient and the upper limit and the lower limit of the operating voltage interval of the photon computing chip; the upper limit of the detection voltage interval is calculated using the formula U max =U dmax *(1-K cmax ) to calculate, where U max is the upper limit of the detection voltage range, U dmax is the upper limit of the working voltage range of the photon computing chip, K cmax is the upper limit control coefficient; the lower limit of the detection voltage range is calculated using the formula U min =U dmin *(1+K cmin ) to calculate, where U min is the lower limit of the detection voltage range, U dmin is the lower limit of the working voltage range of the photon computing chip, K cmin is the lower limit control coefficient; A signal sending module, used for sending a detection signal from a sending end of the link to be detected, wherein the detection signal is within the constraint of the detection voltage range; A signal receiving module is used to receive a detection signal from the receiving end of the link to be detected and compare it with the sent detection signal. If the received detection signal is the same as the sent detection signal, the difference between the time when the detection signal is received and the time when the detection signal is sent is used as the delay of the link to be detected.
10. The link delay estimation system based on the optoelectronic hybrid computing system according to claim 9, Features: It also includes a data processing module, which includes: A data acquisition unit, used for acquiring a number of link delay data; The calculation unit is used to calculate an average value of a plurality of link delay data as the actual link delay.
