Method and system for adjusting link resolution in optoelectronic hybrid computing system, and storage medium
By adjusting the reference voltage of the analog-to-digital converter during the pre-factory testing phase of the optoelectronic hybrid computing system, it ensures that the output voltage of the TIA reaches the full scale of the ADC, solving the problem of difficulty in adjusting the link resolution and improving the calculation accuracy and accuracy of the system. resolution.
Patent Information
- Application Number
- CN202411030343.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-30
AI Technical Summary
It is difficult to adjust the link resolution in the existing optoelectronic hybrid computing system, causing the full-scale voltage value of the ADC to be too large, causing the output voltage of the TIA to be smaller than the full-scale range of the ADC, reducing the signal resolution, and the existing automatic adjustment method is not applicable For optical and electrical hybrid computing systems, it affects computing speed and power consumption.
By determining the maximum input optical signal based on the optical power input range of the photon computing chip during the pre-factory testing phase, calculating the target voltage, and adjusting the reference voltage of the analog-to-digital converter to ensure that the output voltage of the TIA reaches the full scale of the ADC, thereby improving Link resolution.
It is possible to improve the link resolution of the optical-electrical hybrid computing system without affecting the system speed and increasing power consumption, ensuring that the maximum output voltage of TIA can correspond to the full-scale range of the ADC, covering input signals of different sizes, and improving calculation accuracy. .
Smart Images

Figure CN118550355B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optoelectronic hybrid computing technology, and in particular to a method and system for adjusting link resolution in an optoelectronic hybrid computing system, and a storage medium. Background Art
[0002] With the rapid development of artificial intelligence (AI) algorithms, many new hardware and systems have emerged in the academic field and industry. Represented by the rapidly iterative development of GPUs, multi-core chips, many-core chips, deep learning accelerators, neuromorphic chips, general-purpose brain-like computing chips, etc. The motivation is to provide stronger computing power through hardware specialization to cope with the rapid growth of AI technology's demand for computing power. Among them, photonic computing technology is expected to provide extremely efficient AI computing power by leveraging the advantages of light in bandwidth, latency, and energy consumption.
[0003] However, photonic computing chips mainly realize linear calculations through matrix multiplication operations and are widely used in artificial intelligence (AI) algorithms. However, in addition to matrix calculations, nonlinear calculations are also introduced in complex neural networks. Although this will make the input and output of the neural network no longer a simple linear relationship, it improves the fit of the neural network and is more conducive to solving complex problems. Therefore, in order to give full play to the obvious advantages of the optical system and ensure the practicality and versatility of the computing system, the optoelectronic hybrid computing system is proposed and developed. It aims to use the logical computing and storage capabilities of the electrical system to make up for the defects of the optical system and build a more flexible and efficient computing architecture. The optoelectronic hybrid computing system is composed of integrated silicon photonic chips and CMOS microelectronic chips stacked in various packaging forms. For example, the Chinese invention patent applications with publication numbers CN117112961A and CN117933330A both disclose an optoelectronic hybrid computing system. For another example, the Chinese invention patent application with publication number CN117130099A discloses an ultra-large-scale optoelectronic hybrid computing array based on a multi-mode interferometer. For another example, the Chinese invention patent application with publication number CN116932459A discloses an optoelectronic hybrid computing method and array for on-chip large-scale matrix multiplication operations.
[0004] Usually, in order to ensure the normal operation of the entire link in the optoelectronic hybrid computing system and simplify the design work, it is necessary to select the resolution of the ADC according to the operating voltage of the TIA, and set the reference voltage of the ADC according to the operating voltage of the TIA. In order to ensure sufficient signal input range, the full-scale voltage value of the ADC is selected to be very large. Therefore, the output voltage of the TIA is always less than the full-scale voltage value of the ADC, and even the maximum operating voltage of the TIA cannot reach the analog signal full scale (FSR) of the ADC, that is, the maximum range. This will lead to a certain degree of power waste in the analog and digital domains, and also reduce the resolution of the entire link to the input signal.
[0005] However, the optoelectronic hybrid computing system has high requirements for resolution. When the number of ADC bits (i.e., ADC resolution) in the link is fixed, in order to improve the resolution of the input signal in the entire link, the usual practice is to change the pre-amplification factor, that is, to improve the resolution of the input signal by adjusting the gain of the ADC pre-stage TIA during the link design phase. However, once the gain of the TIA is adjusted, the bandwidth of the TIA will change. In the optoelectronic hybrid computing system, the bandwidth of the TIA is usually given priority. Once the bandwidth is determined, the gain of the TIA is correspondingly limited to a certain range, that is, under the premise of a certain bandwidth, no matter how the gain of the TIA is adjusted, the output voltage of the TIA is less than the full scale of the ADC. That is, the method of improving the resolution of the input signal by adjusting the gain of the ADC pre-stage TIA is not applicable to the optoelectronic hybrid computing system.
[0006] And, as mentioned above, the gain of the TIA before the ADC is usually adjusted during the design phase of the entire link. However, once all components in the entire link are determined, that is, when the transimpedance of the TIA cannot be adjusted, this approach is no longer feasible.
[0007] In addition, the prior art also provides a method for automatically adjusting the reference voltage to improve the ADC conversion resolution. For example, the Chinese invention patent with publication number CN101369815A automatically changes the full-scale voltage value according to the input signal. However, this method is not suitable for optoelectronic hybrid computing systems.
[0008] On the one hand, each time the full-scale voltage value of the ADC is changed, it is necessary to wait for the ADC reference voltage to stabilize before the corresponding analog-to-digital conversion can be performed, which greatly reduces the calculation speed of the entire computing system. As mentioned earlier, the reason for using the optoelectronic hybrid computing system to perform AI algorithms lies in its computing power and speed. Therefore, this method of automatically adjusting the ADC reference voltage in real time according to the input signal size is not suitable for the optoelectronic hybrid computing system.
[0009] On the other hand, each time the full-scale voltage value of the ADC is changed, multiple conversions need to be performed on the subsequent digital side. For example, the FPGA connected in series on the output side of the ADC performs data processing, otherwise the FPGA cannot recognize the signal output by the ADC or confusion may easily occur. For example, the last time the FPGA received 1111, it thought that the corresponding full-scale was 5V; after automatic adjustment, the full-scale of the ADC corresponds to 3V, but when the FPGA receives 1111, if the data is processed accordingly, the FPGA still thinks it is 5V, which leads to an error.
[0010] In view of this, there is an urgent need to explore a simpler method that can appropriately adjust the link resolution of the optoelectronic hybrid computing system. Summary of the invention
[0011] The object of the present invention is to provide a method and system for adjusting link resolution in an optoelectronic hybrid computing system, and a storage medium, which partially solves or alleviates the above-mentioned deficiencies in the prior art and can more simply adjust the resolution of the link.
[0012] In order to solve the above-mentioned technical problems, the present invention specifically adopts the following technical solutions:
[0013] A first aspect of the present invention is to provide a method for adjusting link resolution in an optoelectronic hybrid computing system, comprising the steps of:
[0014] S101 determines the maximum input optical signal input to the photon computing chip in the link to be tested based on the maximum value in the optical power input range of the photon computing chip in the link to be tested;
[0015] S102 provides the maximum input optical signal to the photonic computing chip, so that a photocurrent I that meets a preset condition is generated at the input side of the transimpedance amplifier in the link to be tested; the preset condition includes: the product of the photocurrent I and the feedback resistor Rf of the transimpedance amplifier is less than an initial reference voltage Vref of an analog-to-digital converter connected in series at the output side of the transimpedance amplifier;
[0016] S103 obtains the photocurrent I and generates a voltage according to the photocurrent I and the feedback resistor R of the transimpedance amplifier. f The target voltage U is calculated;
[0017] S104 sets the initial reference voltage V ref Adjust to the target voltage U.
[0018] In some embodiments, the method for adjusting link resolution in the optoelectronic hybrid computing system further includes the steps of:
[0019] S105 again provides the corresponding maximum input optical signal to the photonic computing chip;
[0020] S106 obtains the output signal of the analog-to-digital converter in the link to be tested, and determines whether the output signal is the maximum range value of the analog-to-digital converter. If so, it is determined that the verification has passed; otherwise, it is determined that the verification has not passed, and steps S104-S106 are executed again until it is determined that the verification has passed.
[0021] In some embodiments, before executing step S101, the method for adjusting link resolution in an optoelectronic hybrid computing system further includes the steps of:
[0022] S201 obtains the optical power input range of the photon computing chip in each link to be tested in multiple links to be tested;
[0023] S202, based on a preset grouping rule and the optical power input range, the plurality of links to be tested are grouped to obtain a plurality of groups of links to be tested; the preset grouping rule includes: a preset reference maximum value, and the links to be tested whose difference between the maximum input optical signal and the preset reference maximum value is an integer multiple of a preset difference threshold are grouped into one group;
[0024] S203 sorts the multiple links to be tested in each group of links to be tested in order from largest to smallest or from smallest to largest according to the maximum value;
[0025] S204 prepares a corresponding maximum input optical signal for each link to be tested according to the order of each link to be tested in each link to be tested group and the corresponding preset difference threshold.
[0026] In some embodiments, the plurality of links to be tested are from different production batches or different models and have different optical power input ranges.
[0027] A second aspect of the present invention is to provide a link resolution adjustment system in an optoelectronic hybrid computing system, comprising:
[0028] An optical signal determination module, used to determine the maximum input optical signal input to the photon computing chip in the link to be tested based on the maximum value in the optical power input range of the photon computing chip in the link to be tested;
[0029] A light source module, used for providing a maximum input optical signal to the photonic computing chip according to the maximum input optical signal determined by the optical signal determination module, so that a photocurrent I that meets a preset condition is generated at the input side of the transimpedance amplifier in the link to be tested; the preset condition includes: the product of the photocurrent I and the feedback resistor Rf of the transimpedance amplifier is less than an initial reference voltage Vref of an analog-to-digital converter connected in series at the output side of the transimpedance amplifier;
[0030] A main control device is used to obtain the photocurrent I and generate a signal according to the photocurrent I and the feedback resistor R of the transimpedance amplifier. f Calculate the target voltage U; then prompt to set the initial reference voltage V ref Adjust to the target voltage U.
[0031] In some embodiments, the master control device includes:
[0032] A first data acquisition module, used to acquire the photocurrent I output by the photon computing chip;
[0033] A calibration module is used to calculate a target voltage U based on the photocurrent I acquired by the first data acquisition module and the feedback resistor Rf of the transimpedance amplifier, and when the target voltage U is calculated, output the target voltage U and prompt the reference voltage Vref of the analog-to-digital converter to be adjusted to the target voltage U.
[0034] In some embodiments, the light source module is further used to provide the maximum input light signal to the photonic computing chip again for verification.
[0035] In some embodiments, the main control device also includes: a second data acquisition module, which is used to obtain the output signal of the analog-to-digital converter in the link to be tested when the light source module provides the maximum input light signal to the photonic computing chip again; a verification module, which is used to determine whether the output signal is the maximum range value of the analog-to-digital converter, and if so, it is determined that the verification has passed; otherwise, it is determined that the verification has not passed, and a prompt is given to readjust the reference voltage of the analog-to-digital converter until it is determined that the verification has passed.
[0036] In some embodiments, the adjustment system further comprises:
[0037] A grouping module, used to obtain the optical power input range of the photon computing chip in each of the multiple links to be tested, and group the multiple links to be tested based on a preset grouping rule and the optical power input range to obtain multiple groups of links to be tested; the preset grouping rule includes: a preset reference maximum value, and dividing the links to be tested whose difference between the maximum input optical signal and the preset reference maximum value is an integer multiple of a preset difference threshold into a group;
[0038] The sorting module is used to sort the multiple links to be tested in each group of links to be tested in the order from large to small, or from small to large according to the maximum value; and trigger the light source module to prepare the corresponding maximum input optical signal for each link to be tested in advance according to the sorting of each link to be tested in each group of links to be tested and the corresponding preset difference threshold.
[0039] The third aspect of the present invention is to provide a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the above-mentioned method for adjusting the link resolution in an optoelectronic hybrid computing system.
[0040] Beneficial effect: As mentioned above, the existing method dynamically adjusts the reference voltage of the ADC according to the input signal in real time, which emphasizes flexibility because the main purpose is to ensure the resolution of small input signals. However, this method will not only greatly reduce the computing speed of the optoelectronic hybrid computing system, but also requires real-time data processing at the digital end, thereby increasing the power consumption of the system. That is, the prior art guarantees the resolution of small input signals by sacrificing the speed and power consumption of the system. However, the reason why optoelectronic hybrid computing systems are applied to various AI algorithms is that the optoelectronic hybrid computing systems have large computing power and fast speed. Therefore, based on the existing technology, those skilled in the art will not directly apply it to optoelectronic hybrid computing systems to improve the resolution of the entire link.
[0041] The present application adopts a completely different technical path from the prior art. In the test phase before the product leaves the factory, that is, under the premise that the bandwidth and gain of the TIA in the link are fixed, the reference voltage of the ADC in the link to be tested is adjusted from a hardware perspective, thereby realizing the adjustment of the resolution of the link to be tested. Specifically, by providing a test signal to the photon computing chip, for example, the maximum input optical signal of the photon computing chip in the link to be tested is determined based on the maximum value of the optical power input range of the photon computing chip in the link to be tested, and then the target voltage is calculated based on the photocurrent output by the photon computing chip and the feedback resistance of the transimpedance amplifier, and the reference voltage of the ADC is modulated to the target voltage, thereby avoiding the problem of low link resolution caused by the ADC reference voltage always being greater than the maximum operating voltage of the TIA (that is, the maximum output voltage of the TIA is less than the ADC reference voltage) under the premise that the bandwidth and gain in the link TIA are fixed. For example, even when the maximum input optical signal is provided, the TIA output voltage is still less than the ADC reference voltage, resulting in a low link resolution.
[0042] As mentioned above, since the adjustment is performed during the factory test phase, once the adjustment is completed, the link structure will no longer be improved, and there is no need for complex or multiple conversions on the digital side. However, considering that in actual application, according to different application scenarios, optical modulation will be performed by changing the electrical signal input to the photon computing chip, so that the photon computing chip outputs different photocurrents, and in order to cover all outputs, it is worth considering what kind of optical signal to provide during the test phase. The present application sets the reference voltage (i.e., full scale) of the ADC by the maximum value of the optical power input range of the photon computing chip, so that in actual application, even if electrical signals of different sizes are input to the photon computing chip for optical modulation, the output signal can be covered, and the maximum output voltage of the TIA can correspond to the full scale of the ADC, thereby avoiding the problem of low resolution when the output voltage of the TIA is less than the reference voltage of the ADC, and then on the basis of not affecting the system speed and not increasing the system power consumption, the resolution of the entire link is more simply improved, that is, the calculation accuracy of the optoelectronic hybrid computing system when performing the AI algorithm is guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] 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.
[0044] Figure 1 is a schematic diagram of an exemplary link to be tested;
[0045] Figure 2 A flowchart of a method for adjusting link resolution in an optoelectronic hybrid computing system according to an embodiment of the present invention;
[0046] Figure 3 The present invention is a functional module diagram of a link resolution adjustment system in an optoelectronic hybrid computing system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0047] 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.
[0048] 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.
[0049] 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.
[0050] 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.
[0051] Herein, "and / or" includes any and all combinations of one or more of the listed related items. Herein, "plurality" means two or more, that is, it includes two, three, four, five, etc.
[0052] Definition of noun:
[0053] 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 1The photonic computing chip converts the input light signal into a weak photocurrent signal through the light emitting diode PD, and then converts the photocurrent signal into a voltage signal through the 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 digital end, such as FPGA, for processing.
[0054] Computing unit: A single computing unit used to implement computing. For example, a single computing unit that implements photon computing using a Mach-Zehnder interferometer (MZI) or a micro-ring structure (MMR) structure. Another example is a photon computing unit implemented using the carrier light absorption effect. Specifically, computing units can be divided into photon computing units and hybrid computing units. Photon computing units based on light absorption effect structures, and hybrid computing units (for example, hybrid structures based on light absorption effect and phase change materials).
[0055] Computing array: An N*N computing array is constructed based on the above computing units. 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 a hybrid computing unit, the computing array can also be called a hybrid computing array. When the computing array (for example, a photon computing array) in a photon computing chip reaches a certain scale (that is, it has a large-scale computing array), the photon computing chip is also called a high-dimensional matrix photon computing chip.
[0056] Embodiment 1: As mentioned above, in an optoelectronic hybrid computing system, under the premise of a certain bandwidth, the initial reference voltage of the ADC is usually set relatively large. Therefore, the output voltage of the TIA is always smaller than the initial reference voltage of the ADC. For example, even when the maximum input optical signal is provided to the photonic computing chip, the voltage output by the TIA is smaller than the initial reference voltage, thereby causing power waste in the analog and digital domains and reducing the resolution of the entire link to the input signal.
[0057] In the prior art, by redesigning the circuit structure, the ADC can dynamically adjust the reference voltage of the ADC according to different input signals. However, when such an ADC is applied to an optoelectronic hybrid computing system, it still needs to use the digital end to process the signal. In other words, it essentially sacrifices system speed and power consumption to obtain flexible adjustment. However, in an optoelectronic hybrid computing system, the speed of calculation is very high.
[0058] In view of this, in order not to greatly reduce the speed of the optoelectronic hybrid computing system, nor to increase the power consumption of the optoelectronic hybrid computing system, it is also possible to more simply and appropriately improve the resolution of the link to the input signal, so that it is more suitable for industrial applications, see Figure 2, is a flow chart of a method for adjusting link resolution in an optoelectronic hybrid computing system according to an embodiment of the present invention. Specifically, the method comprises the steps of:
[0059] S101 determines a maximum input optical signal input to the photonic computing chip in the link to be tested based on a maximum value in an optical power input range of the photonic computing chip in the link to be tested.
[0060] In some embodiments, different photonic computing chips have different optical power input ranges. Therefore, it is necessary to determine the maximum input optical signal of the input photonic computing chip in advance based on the maximum value in the optical power input range of the photonic computing chip in the link to be tested, so as to facilitate the subsequent determination of the target voltage.
[0061] S102 provides a maximum input optical signal to the photonic computing chip, so that a photocurrent I that meets a preset condition is generated at the input side of the transimpedance amplifier TIA in the link to be tested.
[0062] In some embodiments, the above-mentioned preset conditions include: the photocurrent I and the feedback resistor R of the transimpedance amplifier TIA f The product is less than the initial reference voltage V of the analog-to-digital converter connected in series at the output side of the transimpedance amplifier TIA. ref , that is (I*R f )<V ref .
[0063] In order to ensure a sufficient input range, the initial reference voltage of the ADC will be set relatively large, so that the photocurrent output by the photon computing chip is multiplied by the feedback resistance of the TIA, that is, the output voltage of the TIA is always smaller than the reference voltage of the ADC.
[0064] S103 obtains the photocurrent I and calculates the photocurrent I according to the photocurrent I and the feedback resistor R of the transimpedance amplifier TIA. f The target voltage U is calculated.
[0065] In some embodiments, the target voltage U=I*R f .
[0066] S104 sets the initial reference voltage V of the analog-to-digital converter ADC ref Adjust to the target voltage U.
[0067] In order to ensure the resolution of the link, it is only necessary to ensure that when the maximum input optical signal is provided to the photonic computing chip, the target voltage on the TIA output side can reach the reference voltage of the ADC, that is, the target voltage on the TIA output side can reach the full scale of the ADC. This can avoid to a certain extent the problem of low resolution caused by the ADC reference voltage being too large, resulting in the TIA output side voltage being always smaller than the ADC reference voltage.
[0068] For example, when a 12-bit resolution ADC is used, the input voltage is 0V, the resulting number is 0, and the input voltage is 5V, the resulting number is 4095, that is, the initial reference voltage of the ADC is 5V; therefore, for every increase of 1 in the number, the voltage actually increases by 5 / 4096=0.0012V.
[0069] Once the target voltage U is calculated to be 3.8V, the reference voltage of the ADC is adjusted to 3.8V. Then, for every increase of 1 in the number, the voltage actually increases by 3.8 / 4096=0.0009V (<0.0012V), that is, the resolution of the input signal is improved. Accordingly, even if the TIA output voltage is 2V by inputting electrical signals of different sizes to the photonic computing chip for optical modulation, the resolution of the ADC input signal is improved compared to the case where the initial reference voltage is 5V.
[0070] In some embodiments, in order not to affect other components in the link, the power supply of the link is first disconnected, and then the reference voltage of the ADC is adjusted to the target voltage U. Specifically, the method of adjusting the reference voltage of the ADC can refer to the prior art. For example, the reference voltage is adjusted by adjusting the ADC gain. Of course, other existing methods can also be used to adjust the reference voltage of the ADC.
[0071] In this embodiment, since the debugging is performed before leaving the factory, in order to verify whether the debugging is successful and thus ensure the reliability of the link, it is also necessary to verify the debugged link. Specifically, in other embodiments, the adjustment method further includes the steps of:
[0072] S105 again provides the corresponding maximum input optical signal to the photonic computing chip.
[0073] In some embodiments, as described above, since the power supply of the link is disconnected when adjusting the ADC reference voltage, before it needs to be verified, the power supply is turned on first so that the link is restarted and initialized, and then the corresponding maximum input optical signal is provided to the photonic computing chip for subsequent verification.
[0074] S106 obtains the output signal of the analog-to-digital converter in the link to be tested, and determines whether the output signal is the maximum range value of the analog-to-digital converter. If so, it is determined that the verification has passed; otherwise, it is determined that the verification has not passed, and steps S104-S106 are executed again until it is determined that the verification has passed.
[0075] In this embodiment, as mentioned above, since the reference voltage of the ADC is adjusted to the above-mentioned target voltage U, when the same maximum input optical signal is provided to the photonic computing chip again, the ADC output should be full scale. If not, it means that the debugging is unsuccessful and needs to be re-debugging. If it passes the verification, that is, the debugging is successful, then this target voltage U can be used as a reference to debug the same link of the same batch or model.
[0076] For example, if the reference voltage of the ADC is adjusted from 5V to 3.8V, then when the same maximum input light signal is provided to the photonic computing chip again, the ADC will output 4095. If the actual output of the ADC is not 4095, it means that it has not passed the verification, that is, the debugging has failed. If the actual output is 4095, it means that it has passed the verification, that is, the debugging has been successful.
[0077] Embodiment 2: The present invention also provides another method for adjusting link resolution in an optoelectronic hybrid computing system. Specifically, the method includes the steps of the above embodiment 1. The difference is that, before executing step S101, the adjustment method in this embodiment further includes the following steps:
[0078] S201 obtains the optical power input range of the photon computing chip in each link to be tested in multiple links to be tested.
[0079] In some embodiments, as described above, since it is a debugging before leaving the factory, and the entire link will not be changed after leaving the factory, therefore, for multiple identical links to be tested of the same batch or the same model (they have the same photonic computing chip and the same link), it is only necessary to extract at least one sample for debugging to find its target voltage, and then the multiple identical links to be tested of the batch can be debugged according to the target voltage.
[0080] However, in actual applications, different links to be tested are designed based on different application scenarios, that is, the photonic computing chips are different (that is, they have different optical power value ranges). Correspondingly, the feedback resistor of the TIA, the initial reference voltage of the ADC, etc. are all different. Therefore, when debugging different links to be tested, especially when debugging different links to be tested in large quantities, it is necessary to consider how to efficiently find the target voltage corresponding to each link to be tested and use it as the reference voltage of the corresponding ADC.
[0081] S202: Based on a preset grouping rule and an optical power value range, a plurality of links to be tested are grouped to obtain a plurality of groups of links to be tested.
[0082] In some embodiments, since the target voltage is ultimately determined based on the maximum value of the optical power input range of the photon computing chip and then the reference voltage of the ADC is adjusted, it is only necessary to group the multiple links to be tested based on the maximum value. Specifically, the preset grouping rule includes: presetting a reference maximum value, and grouping the links to be tested whose difference between the maximum input optical signal and the preset reference maximum value is an integer multiple of a preset difference threshold.
[0083] For example, taking the smallest maximum value A among the maximum values in the optical power input range of the photon computing chip in all the links to be tested as a reference (that is, the maximum value A is the preset reference maximum value of the first group), the differences between the other maximum values and the maximum value A are calculated respectively, and the values whose differences are integer multiples of the preset difference threshold (preferably, the preset difference threshold is the smallest difference δ1) are divided into a group; then, taking the smallest maximum value B among the maximum values in the optical power input range of the remaining links to be tested as a reference (that is, the maximum value B is the preset reference maximum value of the second group), the differences between the remaining other maximum values and the maximum value B are calculated respectively, and the values whose differences are integer multiples of the preset difference threshold (preferably, the preset difference threshold is the smallest difference δ2) are divided into a group; and so on until no further grouping is possible (for example, there is only one link to be tested left, or no links to be tested are left).
[0084] S203 sorts the multiple links to be tested in each group in the order of the maximum value in the optical power value range from large to small, or from small to large.
[0085] S204 prepares a corresponding maximum input optical signal for each link to be tested according to the order of each link to be tested in each group and the corresponding preset difference threshold.
[0086] When multiple different links to be tested need to be debugged, if they are not distinguished, the maximum input optical signal that needs to be provided to the previous link to be tested may be A, the maximum input optical signal that needs to be provided to the next link to be tested may be B (the difference between B and A is greater than the above difference threshold), and the maximum input optical signal that needs to be provided to a link to be tested may be C (the difference between C and A is less than the above difference threshold, and the difference between C and B is greater than the above difference threshold), that is, the optical signal provided by the light source needs to be increased from A to B, and then appropriately reduced, that is, adjusted back to C. If there are only a small number of links to be tested, and they correspond to one light source one by one, there will be no major problems with this adjustment. However, if there are many links to be tested, especially a large number of links to be tested, and the light source is limited, one light source needs to provide optical signals of different sizes for different links to be tested. If group debugging is not performed, it is necessary to manually record the links to be tested corresponding to each light source and the size of the optical signals they need to provide. For example, it is necessary to number the links to be tested in advance, and then record the size of the optical signal corresponding to each link to be tested. When making adjustments, the staff first needs to find the number corresponding to the link to be tested, and then find the corresponding optical signal size in the record according to the number. When batch debugging is performed, this undoubtedly greatly increases the workload of the staff; in addition, if the same light source is used to provide optical signals for different links to be tested, and frequently switches between large optical signals and small optical signals, the service life of the light source will inevitably be shortened.
[0087] In view of this, in this embodiment, a preset benchmark maximum value is set for each group, and then the links to be tested whose difference with the preset benchmark maximum value is an integer multiple of the preset difference threshold are divided into a group, and sorted in a predetermined order, so that only the maximum value ranked first needs to be determined, and the light source can be adjusted subsequently according to the preset difference threshold.
[0088] For example, if the preset reference maximum value is the smallest of all maximum values, sorting in order from large to small is actually sorting in a way that the difference with the preset reference maximum value gradually decreases; if sorting in order from small to large, it is actually sorting in a way that the difference with the preset reference maximum value gradually increases. When sorting from small to large, let the maximum value ranked first be A, and the next maximum value be A+δ1, and the next one be A+δ1+δ1... and so on, until all the links to be tested in this group are adjusted. Compared with the method of not distinguishing, it is only necessary to record the maximum value ranked first in each group and the preset difference threshold corresponding to each group. There is no need to conduct on-site inquiries for each link to be tested, which greatly reduces the workload of the staff; and the light source of each group provides optical signals in an increasing or decreasing manner (for example, one light source corresponds to one group). Compared with the method of frequently switching between large optical signals and small optical signals, the loss of the light source is reduced to a certain extent, ensuring the service life of the light source.
[0089] Of course, in other embodiments, the above-mentioned preset reference maximum value may also be the largest one among all maximum values, and the principles of its grouping rules and sorting rules are the same as the above-mentioned principles, which will not be repeated here.
[0090] Of course, in some embodiments, the difference between the maximum values corresponding to the links to be tested in each group may not be in an increasing relationship, but there may be a difference of N δ1 between the maximum values corresponding to two adjacent links to be tested. For example, the maximum value corresponding to the previous link to be tested is A+Kδ1, and the maximum value corresponding to the next link to be tested is A+(K+N)δ1. In this case, it is only necessary to pre-mark the N and its corresponding link to be tested.
[0091] Of course, further, if the number of light sources is insufficient, that is, when it is necessary to consider that multiple groups share one light source, the number of links to be tested in each group and the preset difference threshold between each group are counted, and multiple groups with a small number and a small difference in the preset difference threshold (for example, the number of links to be tested is less than the preset number, and the difference between the preset difference thresholds is less than the preset threshold) share one light source. Of course, in other embodiments, if the number of links to be tested in a group is large, multiple light sources can be matched accordingly.
[0092] Example 3: See Figure 3 , is a functional module of a link resolution adjustment system in an optoelectronic hybrid computing system according to an exemplary embodiment of the present invention. Specifically, the adjustment system includes:
[0093] An optical signal determination module is used to obtain the optical power input range of the photon computing chip in the link to be tested, and determine the maximum input optical signal according to the maximum value of the optical power input range;
[0094] A light source module is used to provide a maximum input optical signal to the photon computing chip according to the maximum input optical signal determined by the optical signal determination module, so that the input side of the transimpedance amplifier TIA in the link to be tested generates a photocurrent I that meets a preset condition; wherein the preset condition includes: the photocurrent I and the feedback resistor R of the transimpedance amplifier TIA f The product is less than the initial reference voltage V of the analog-to-digital converter connected in series at the output side of the transimpedance amplifier TIA. ref , that is (I*R f )<V ref;
[0095] A main control device is used to obtain the photocurrent I and generate a signal according to the photocurrent I and the feedback resistor R of the transimpedance amplifier. f Calculate the target voltage U; then prompt to set the initial reference voltage V ref Adjust to the target voltage U; specifically, it includes:
[0096] A first data acquisition module is used to acquire the photocurrent I output by the photon computing chip;
[0097] The calibration module is used to calculate the target voltage U (U=I*R f ); and when the target voltage U is calculated, the target voltage U is output, and the initial reference voltage V of the ADC is prompted to be ref Adjust to the target voltage U.
[0098] In some embodiments, the specific method of adjusting the reference voltage of the ADC may adopt various adjustment methods in the prior art.
[0099] In some other embodiments, the above-mentioned main control device further includes:
[0100] A second data acquisition module, configured to acquire an output signal of an analog-to-digital converter in the link to be tested when the light source module provides the maximum input optical signal to the photonic computing chip again;
[0101] The verification module is used to determine whether the output signal is the maximum range value of the analog-to-digital converter. If so, it is determined that the verification has been passed; otherwise, it is determined that the verification has not been passed, and a prompt is given to readjust the reference voltage of the analog-to-digital converter until it is determined that the verification has been passed.
[0102] In some other embodiments, the regulation system further comprises:
[0103] A grouping module, used to obtain the optical power input range of the photon computing chip in each of the multiple links to be tested, and group the multiple links to be tested based on a preset grouping rule and the optical power input range to obtain multiple groups of links to be tested; the preset grouping rule includes: a preset reference maximum value, and dividing the links to be tested whose difference between the maximum input optical signal and the preset reference maximum value is an integer multiple of a preset difference threshold into a group;
[0104] The sorting module is used to sort the multiple links to be tested in each group of links to be tested in the order from large to small, or from small to large according to the maximum value; and trigger the light source module to prepare the corresponding maximum input optical signal for each link to be tested in advance according to the sorting of each link to be tested in each group of links to be tested and the corresponding preset difference threshold.
[0105] The present invention also provides a storage medium, which includes a stored computer program. When the computer program is run, it controls the device where the storage medium is located to execute the method for adjusting the link resolution in the optoelectronic hybrid computing system of the first or second embodiment above.
[0106] 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.
[0107] 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.
[0108] 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 method for adjusting link resolution in an optoelectronic hybrid computing system, characterized in that: Includes steps: S101 determines the maximum input optical signal input to the photon computing chip in the link to be tested based on the maximum value in the optical power input range of the photon computing chip in the link to be tested; the optical power of the maximum input optical signal is the maximum value in the optical power input range; S102 provides the maximum input optical signal to the photonic computing chip, so that a photocurrent I that meets a preset condition is generated at the input side of the transimpedance amplifier in the link to be tested; the preset condition includes: the photocurrent I and the feedback resistor R of the transimpedance amplifier f The product is less than the initial reference voltage V of the analog-to-digital converter connected in series at the output side of the transimpedance amplifier. ref ; S103 obtains the photocurrent I and generates a voltage according to the photocurrent I and the feedback resistor R of the transimpedance amplifier. f Calculate and obtain the target voltage U; S104 sets the initial reference voltage V ref Adjust to the target voltage U.
2. The method for adjusting link resolution in an optoelectronic hybrid computing system according to claim 1, characterized in that: Also includes the steps: S105 again provides the corresponding maximum input optical signal to the photonic computing chip; S106 obtains the output signal of the analog-to-digital converter in the link to be tested, and determines whether the output signal is the maximum range value of the analog-to-digital converter. If so, it is determined that the verification has passed; otherwise, it is determined that the verification has not passed, and steps S104-S106 are executed again until it is determined that the verification has passed.
3. The method for adjusting link resolution in an optoelectronic hybrid computing system according to claim 2, characterized in that: Before executing step S101, the method further includes the following steps: S201 obtains the optical power input range of the photon computing chip in each link to be tested in multiple links to be tested; S202, based on a preset grouping rule and the optical power input range, grouping the plurality of links to be tested to obtain a plurality of link groups to be tested; The preset grouping rule includes: presetting a reference maximum value, and grouping the links to be tested whose difference between the maximum input optical signal and the preset reference maximum value is an integer multiple of a preset difference threshold into one group; S203 sorts the multiple links to be tested in each group of links to be tested in order from largest to smallest or from smallest to largest according to the maximum value; S204 prepares a corresponding maximum input optical signal for each link to be tested according to the order of each link to be tested in each link to be tested group and the corresponding preset difference threshold.
4. The method for adjusting link resolution in an optoelectronic hybrid computing system according to claim 3, characterized in that: The multiple links to be tested are from different production batches or different models and have different optical power input ranges.
5. A link resolution adjustment system in an optoelectronic hybrid computing system, characterized in that: include: An optical signal determination module, used to determine the maximum input optical signal input to the photon computing chip in the link to be tested based on the maximum value in the optical power input range of the photon computing chip in the link to be tested; the optical power of the maximum input optical signal is the maximum value in the optical power input range; A light source module, used to provide a maximum input light signal to the photon computing chip according to the maximum input light signal determined by the light signal determination module, so that a photocurrent I that meets a preset condition is generated at the input side of the transimpedance amplifier in the link to be tested; the preset condition includes: the photocurrent I and the feedback resistance R of the transimpedance amplifier f The product is less than the initial reference voltage V of the analog-to-digital converter connected in series at the output side of the transimpedance amplifier. ref ; A main control device is used to obtain the photocurrent I and generate a signal according to the photocurrent I and the feedback resistor R of the transimpedance amplifier. f Calculate the target voltage U; then prompt to set the initial reference voltage V ref Adjust to the target voltage U.
6. The link resolution adjustment system in the optoelectronic hybrid computing system according to claim 5, characterized in that: The main control device comprises: A first data acquisition module, used to acquire the photocurrent I output by the photon computing chip; A calibration module is used to calibrate the photocurrent I obtained by the first data acquisition module and the feedback resistor R of the transimpedance amplifier. f Calculate the target voltage U, and when the target voltage U is calculated, output the target voltage U, and prompt the reference voltage V ref Adjust to the target voltage U.
7. The link resolution adjustment system in the optoelectronic hybrid computing system according to claim 6, characterized in that: The light source module is also used to provide the maximum input light signal to the photonic computing chip again for verification.
8. The link resolution adjustment system in the optoelectronic hybrid computing system according to claim 7, characterized in that: The main control device also includes: A second data acquisition module is used to acquire the output signal of the analog-to-digital converter in the link to be tested when the light source module provides the maximum input light signal to the photonic computing chip again; The verification module is used to determine whether the output signal is the maximum range value of the analog-to-digital converter. If so, it is determined that the verification has been passed; otherwise, it is determined that the verification has not been passed, and a prompt is given to readjust the reference voltage of the analog-to-digital converter until it is determined that the verification has been passed.
9. The link resolution adjustment system in an optoelectronic hybrid computing system according to claim 6, characterized in that: Also includes: A grouping module, used to obtain the optical power input range of the photon computing chip in each of the multiple links to be tested, and group the multiple links to be tested based on a preset grouping rule and the optical power input range to obtain multiple groups of links to be tested; The preset grouping rule includes: presetting a reference maximum value, and grouping the links to be tested whose difference between the maximum input optical signal and the preset reference maximum value is an integer multiple of a preset difference threshold into one group; The sorting module is used to sort the multiple links to be tested in each group of links to be tested in the order from large to small, or from small to large according to the maximum value; and trigger the light source module to prepare the corresponding maximum input optical signal for each link to be tested in advance according to the sorting of each link to be tested in each group of links to be tested and the corresponding preset difference threshold.
10. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the method for adjusting link resolution in an optoelectronic hybrid computing system as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Method for automatically regulating reference voltage and improving analog-to-digital conversion definition
CN101369815A
Photoelectric hybrid calculation method and array for on-chip large-scale matrix multiplication
CN116932459A
Photoelectric hybrid computing system and application method thereof
CN117112961A
Super-large-scale photoelectric hybrid computing array based on multimode interference device
CN117130099A
Optoelectronic hybrid computing system and method for end-to-end design
CN117933330A
