Digital coding method and signal coding device in photoelectric hybrid computing system
By introducing blocking elements and inserting coding signals into the photoelectric hybrid computing system, the DC bias problem introduced by photocurrent is solved, the calculation accuracy is improved, and the accuracy of AI operations is ensured.
Patent Information
- Application Number
- CN202411049624.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-08-01
AI Technical Summary
In existing photoelectric hybrid computing systems, when the photocurrent output by the photonic chip is converted into a voltage signal, DC bias is easily introduced, causing the output of the transimpedance amplifier TIA to be saturated, affecting calculation accuracy.
A blocking element is introduced between the photonic computing chip and the transimpedance amplifier TIA, and a preset encoding signal is inserted according to the state of the input signal combination to avoid DC bias. The blocking element allows the signal to pass through, thereby reducing the saturation risk of the TIA.
It effectively avoids the DC bias caused by photocurrent, improves the calculation accuracy of the photoelectric hybrid computing system, and ensures the accuracy of AI operations.
Smart Images

Figure CN118590155A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optoelectronic hybrid computing technology, and in particular to a digital coding method and a signal coding device in an optoelectronic hybrid computing system. 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] However, in existing optoelectronic hybrid computing systems, in order to convert the photocurrent output by the photonic chip into a voltage signal, the connection between the PD (photodiode) of the photonic chip and the transimpedance amplifier TIA is mostly directly connected, see Figure 1 This method can basically realize the conversion of photocurrent to voltage signal, but it cannot avoid the DC bias caused by the photocurrent to a certain extent, which can easily lead to the saturation of the transimpedance amplifier TIA output, causing the TIA circuit output signal to be distorted and produce bit errors, thereby affecting the calculation accuracy of the optoelectronic hybrid computing system. Summary of the invention
[0005] The object of the present invention is to provide a digital coding method and a signal coding device in an optoelectronic hybrid computing system, which partially solves or alleviates the above-mentioned deficiencies in the prior art and can avoid the output saturation of the transimpedance amplifier (TIA) due to the DC bias in the photocurrent, thereby affecting the calculation accuracy of the optoelectronic hybrid computing system.
[0006] In order to solve the above-mentioned technical problems, the present invention specifically adopts the following technical solutions:
[0007] A first aspect of the present invention is to provide a digital coding method in an optoelectronic hybrid computing system, wherein a blocking element for isolating DC and AC is connected in series between a photon computing chip and a transimpedance amplifier TIA in the optoelectronic hybrid computing system; the digital coding method specifically comprises the steps of:
[0008] S101 provides a set of input signal combinations; the input signal combination includes at least one input signal;
[0009] S102 predicts the real-time signal state of the output signal of the photon computing chip after the input signal combination is input into the photon computing chip;
[0010] S103 determines an interpolation position for inserting a coded signal according to the predicted signal state;
[0011] S104 inserts a preset coding signal into the input signal combination according to the interpolation position in step S103, so that after the input signal combination is input into the photon computing chip, the output signal of the photon computing chip can pass through the blocking element and be input into the transimpedance amplifier TIA;
[0012] The step of determining the interpolation position for inserting the coded signal according to the signal state in step S103 specifically includes the following steps: Determine whether the number of consecutive occurrences N of the output signal of the same signal state meets the preset condition: aK<N≤(a+1)K; wherein, if f0 / f c ≤1, K=1; if f0 / f c >1; K=f0 / f c , and take an integer; f c is the cutoff frequency of the blocking element; f0 is the operating frequency of the encoding device; the initial value of a is 1, and each time the interpolation a is completed, 1 is accumulated;
[0013] If the number of consecutive occurrences N of the output signal in the same signal state meets the preset condition, it is determined that interpolation processing is currently required, and the end position of the input signal combination corresponding to the aKth output signal is used as the interpolation position, and the preset coded signal is inserted.
[0014] In some embodiments of the present invention, the step of inserting a preset coded signal specifically includes:
[0015] identifying types of signal states of the output signal that will occur consecutively, the types of signal states comprising a low state and a high state;
[0016] If it is in the low state, insert the first preset coded signal in the high state;
[0017] If it is in the high state, a second preset coding signal in the low state is inserted.
[0018] In some embodiments of the present invention, the input signal combination includes four different input signals; after the input signal combination is input into the photonic computing chip, the signal state of the output signal includes: a first state of state 0; a second state of state 1, a third state of state 2, a fourth state of state 3 and a fifth state of state 4; wherein the first, second and third states are low states, and the fourth and fifth states are high states;
[0019] When it is identified that the output signal of the same state appears consecutively for a number N that meets the preset condition and is in a low state, inserting a first preset coding signal with a state of 4;
[0020] Alternatively, when it is identified that the number of consecutive occurrences N of the output signal in the first state, the second state or the third state satisfies the preset condition, a first preset coding signal with a state of 4 is inserted;
[0021] Alternatively, when it is identified that the output signal in the same state appears consecutively for a number N that meets the preset condition and is in a high state, a second preset coding signal whose state is 0 or 1 is inserted;
[0022] Alternatively, when it is identified that the output signal in the fourth state or the fifth state continuously appears a number N times that meets the preset condition, a second preset coding signal whose state is 0 or 1 is inserted.
[0023] In some embodiments of the present invention, the input signal combination includes an input signal; the signal state of the output signal after the input signal is input into the photonic computing chip includes: a first state of state 0 and a second state of state 1;
[0024] When it is predicted that the output signal in the first state continuously appears a number N that satisfies the preset condition, inserting a third preset coded signal in state 1;
[0025] Alternatively, when it is predicted that the number of consecutive occurrences N of the output signal in the second state meets the preset condition, a fourth preset coded signal with a state of 0 is inserted.
[0026] In some embodiments of the present invention, the digital encoding method in the optoelectronic hybrid computing system further includes the step of: S105 receiving the output signal and decoding it according to the attribute information of the encoded signal; the attribute information includes an interpolation position.
[0027] A second aspect of the present invention is to provide a signal encoding device for use in an optoelectronic hybrid computing system, comprising:
[0028] A signal generating module, configured to provide a set of input signal combinations; the input signal combination comprises at least one input signal;
[0029] A main control module, used for predicting the real-time signal state of the output signal of the photon computing chip after the input signal combination is input into the photon computing chip;
[0030] A coding module, configured to determine an interpolation position for inserting a coding signal according to a signal state predicted by the main control module, and insert a preset coding signal into the input signal combination according to the interpolation position, so that after the at least one input signal is input into the photon computing chip, an output signal of the photon computing chip can pass through the blocking element and be input into the transimpedance amplifier TIA;
[0031] The encoding module specifically includes:
[0032] The first judgment unit is used to judge whether the number of consecutive occurrences N of the output signal of the same signal state satisfies a preset condition aK<N≤(a+1)K; wherein, if f0 / f c ≤1, K=1; if f0 / f c >1, K=f0 / f c , and take an integer; f c is the cutoff frequency of the blocking element; f0 is the operating frequency of the encoding device; the initial value of a is 1, and each time the interpolation a is completed, 1 is accumulated;
[0033] An interpolation unit is used to determine that interpolation processing is currently required when the first judgment unit determines that the number of consecutive occurrences N of the output signal with the same signal state satisfies a preset condition aK<N≤(a+1)K, and uses the end position of the input signal combination corresponding to the aKth output signal as the interpolation position, and inserts a preset coded signal.
[0034] In some embodiments of the present invention, the interpolation unit is specifically used to identify the type of signal state of the output signal that will appear continuously, and if it is a low state, insert a first preset coded signal in a high state; or, if it is a high state, insert a second preset coded signal in a low state.
[0035] In some embodiments of the present invention, the input signal combination includes four different input signals; the signal states of the output signals after the four input signals are input into the photonic computing chip include: a first state of state 0; a second state of state 1, a third state of state 2, a fourth state of state 3 and a fifth state of state 4; wherein the first, second and third states are low states; and the fourth and fifth states are high states;
[0036] The interpolation unit is specifically used to insert a first preset coding signal with a state of 4 when it is identified that the number of consecutive occurrences N of the output signal in the same state meets the preset condition and is in a low state; or, when it is identified that the number of consecutive occurrences N of the output signal in the first state, the second state or the third state meets the preset condition, insert the first preset coding signal with a state of 4; or, when it is identified that the number of consecutive occurrences N of the output signal in the same state meets the preset condition and is in a low state, insert the second preset coding signal with a state of 0 or 1; or, when it is identified that the number of consecutive occurrences N of the output signal in the fourth state or the fifth state meets the preset condition, insert the second preset coding signal with a state of 0 or 1.
[0037] In some embodiments of the present invention, the input signal combination includes an input signal; the signal state of the output signal after the input signal is input into the photonic computing chip includes: a first state with a state of 0 and a second state with a state of 1; the interpolation unit is specifically used to insert a third preset coding signal with a state of 1 when it is identified that the output signal in the first state has appeared consecutively N times in accordance with the preset condition; or, when it is identified that the output signal in the second state has appeared consecutively N times in accordance with the preset condition, insert a fourth preset coding signal with a state of 0.
[0038] In some embodiments of the present invention, the signal encoding device further includes a decoding module, which is used to receive the output signal and decode it according to attribute information of the encoded signal; the attribute information includes an interpolation position.
[0039] Beneficial effect: As mentioned above, in the optoelectronic hybrid computing system, the connection between the transimpedance amplifier TIA and the PD (photodiode) in the photonic computing chip is directly connected, but this method cannot avoid the DC bias caused by the photocurrent, which leads to the saturation of the output of the transimpedance amplifier TIA, affecting the accuracy of the entire link (for example, when the photocurrent I input to the transimpedance amplifier TIA is actually relatively large, but due to the saturation of TIA, its output voltage is less than the product of the photocurrent I and the transimpedance resistance R), thereby reducing the accuracy of the AI operation using the optoelectronic hybrid computing system. In view of this, the present invention proposes to connect a blocking element (such as a capacitor) that blocks direct current and allows alternating current in series in the front stage of the transimpedance amplifier TIA, and then digitally encode it according to the input signal combination actually input, so that the encoded input signal combination can pass through the blocking element and finally be decoded by the digital end, avoiding the influence of the DC bias caused by the photocurrent on the transimpedance amplifier, thereby ensuring the accuracy of the entire link, and then ensuring the accuracy of the AI operation using the optoelectronic hybrid computing system. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] 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.
[0041] Figure 1 A schematic diagram of the link between the photonic computing chip and some electrical chips in a traditional optoelectronic hybrid computing system;
[0042] Figure 2 A schematic diagram of a link between a photonic computing chip and some electrical chips in the optoelectronic hybrid computing system of the present invention;
[0043] Figure 3A A schematic diagram of an output signal after a group of encoded input signals are combined and input into a photon computing chip;
[0044] Figure 3B A schematic diagram of another exemplary output signal after a group of encoded input signals are combined and input into a photonic computing chip;
[0045] Figure 3C A schematic diagram of an output signal after a group of encoded input signals are combined and input into a photon computing chip is shown in FIG.
[0046] Figure 3DThis is yet another exemplary schematic diagram of output signals after a group of encoded input signals are combined and input into a photonic computing chip;
[0047] Figure 4A A flowchart of a digital encoding method in an optoelectronic hybrid computing system according to an embodiment of the present invention;
[0048] Figure 4B is a flow chart of a digital encoding method in an optoelectronic hybrid computing system according to another embodiment of the present invention;
[0049] Figure 5 1 is a functional module diagram of a signal encoding device in an optoelectronic hybrid computing system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0050] 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 making creative work are within the scope of protection of the present invention.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] Herein "and / or" includes any and all combinations of one or more of the associated listed items.
[0055] Herein, "plurality" means two or more than two, ie, it includes two, three, four, five, etc.
[0056] Definition of noun:
[0057] 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 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.
[0058] 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).
[0059] 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.
[0060] Example 1: See Figure 4A , is a flow chart of a digital encoding method in an optoelectronic hybrid computing system according to an embodiment of the present invention. Specifically, a blocking element for isolating direct current from alternating current is connected in series between the photon computing chip and the transimpedance amplifier TIA in the optoelectronic hybrid computing system (preferably, see Figure 2, the blocking element adopts a capacitor 100), accordingly, the digital encoding method comprises the steps of:
[0061] S101 provides a set of input signal combinations.
[0062] Usually, according to the actual application scenario, in addition to providing an optical signal to the photonic computing chip, at least one input signal is provided (for example, a digital signal is provided, and then input into the photonic computing chip after DAC conversion). The digital signal is converted into an analog signal by the digital-to-analog converter DAC and then input into the photonic computing chip. The photodiode PD in the photonic computing chip outputs a photocurrent, which is converted into an analog signal by the transimpedance amplifier TIA, and then converted into a digital signal by the analog-to-digital converter ADC and finally input into the digital end (such as FPGA). However, in actual applications, the modulation of the optical signal by the electrical signal is limited. If the photocurrent is large, a DC bias will be generated, which will cause the output of the transimpedance amplifier TIA to be saturated and affect the accuracy of the entire optoelectronic hybrid computing system.
[0063] In some embodiments, if one input signal is provided, then the input signal combination includes one input signal accordingly; if multiple input signals are provided, then the input signal combination includes multiple input signals accordingly.
[0064] S102 predicts the real-time signal status of the photon computing chip output signal after the input signal combination provided in step S101 is input into the photon computing chip.
[0065] Usually, multiple input signals are provided to the photonic computing chip, and the multiple input signals will be superimposed in the photonic computing chip. Different combinations of input signals may make the state of the PD output signal the same or different. However, in an optoelectronic hybrid computing system, it is usually necessary to make the signal state of the PD output signal of the photonic computing chip the same, that is, to output a DC photocurrent signal. However, if the output signal of the same signal state appears multiple times in a row and reaches a certain number of times, the output signal of the photonic computing chip will not be able to pass through the blocking element.
[0066] For example, if the signal states of the four input signals provided are: 0001, 0010, 0100, 1000, respectively, then after the photon computing chip is superimposed, the signal state of the output signal can be expressed as: 1111. If the four input signals change, for example, to: 1001, 0010, 0100, 0000; but the final signal state of the photon computing chip output signal is still: 1111, and it appears multiple times in succession, then it is necessary to consider encoding the input signal.
[0067] Therefore, the state of the output signal of the photonic computing chip can be predicted in advance based on the signal state of the multi-channel input signals provided by the encoder, so that the interpolation position of the inserted encoded signal can be determined later based on the signal state of the predicted output signal.
[0068] S103 determines the interpolation position for inserting the coded signal according to the signal state predicted in step S102.
[0069] As mentioned above, since a blocking element is set, and the blocking element has a corresponding cutoff frequency f c Therefore, if the output signal of the same state appears multiple times in succession (i.e., has a DC trend), and the number of times N of the same state appears in succession exceeds a certain number, it cannot pass through the blocking element. Therefore, in order to ensure that the output signal can pass through the blocking element, it is necessary to comprehensively consider the above-mentioned operating frequency and cutoff frequency to encode the input signal combination, so that the output signal can pass through the blocking element.
[0070] Specifically, see Figure 4B , the step of determining the interpolation position for inserting the coded signal comprises:
[0071] S1031 determines whether the number of consecutive occurrences N of the output signal of the same signal state satisfies the preset condition: aK<N≤(a+1)K. If so, execute step S1032; otherwise, determine that interpolation processing is not required at present.
[0072] In some embodiments, if f0 / f c ≤1, K=1; if f0 / f c >1, K=f0 / f c , and take an integer, f c is the cutoff frequency of the blocking element, f0 is the operating frequency of the encoding device; the initial value of a is 1, and each time the interpolation is completed, a is accumulated by 1. Of course, when it is determined that interpolation processing is not required, step S1031 is continued to be executed, that is, it is determined again whether interpolation processing is required when the next output signal of the same signal state appears.
[0073] For example, see Figure 3A , let f0=100Hz, f c =50Hz, correspondingly, K=2, and when the output signal P1 of state 3 appears twice in succession, a=1, N=aK=2, that is, the preset condition is not met, therefore, it is determined that no interpolation is required at present, that is, no encoding of the input signal combination is required;
[0074] When the output signal P1 of state 3 appears three times in succession (i.e., the three output signals P1 appearing starting from the first output signal of state 3), at this time, a=1, aK=2<N=3<(a+1)K=4, that is, the preset condition is met, therefore, it is determined that interpolation is required (if interpolation is not performed, the third consecutive output signal will not pass, resulting in data loss, thereby reducing the calculation accuracy of the entire optoelectronic hybrid computing system), at this time, the end position of the input signal combination corresponding to the aK=2 output signal is used as the interpolation position to insert the preset code, so that the corresponding code P2 (for example, the code signal of state 4 or 5) appears at the end position of the aK=2 output signal, and after interpolation, a=1+1=2;
[0075] When the output signal P1 of state 3 appears four times in a row for the first time, at this time, a=2, N=aK=4, which does not meet the preset conditions, therefore, it is determined that no interpolation is required, that is, no encoding of the input signal combination is required;
[0076] When the output signal P1 with the state of 3 appears five times in succession for the first time, at this time, a=2, aK=4<N=5<(a+1)K=6, that is, the preset condition is met (if the interpolation process is not performed again, the fifth output signal of the five consecutive output signals cannot pass). Therefore, it is determined that interpolation is required. At this time, the end position of the input signal combination corresponding to the aK=4th output signal is inserted into the preset code as the interpolation position, so that the corresponding code P2 (for example, the coded signal with the state of 4 or 5) appears at the end position of the 4th output signal, and after interpolation, a=1+1+1=3.
[0077] As another example, see Figure 3B , let f0=100Hz, f c =55Hz, correspondingly, K=1. Therefore, when the output signal P1' of state 3 appears for the first time, a=1, N=aK=1, and the preset condition is not met, and it is determined that no interpolation processing is required at present;
[0078] When the output signal P1' of state 3 appears twice in succession, a=1, N=(a+1)K=2, that is, the preset condition is met. Therefore, it is determined that interpolation processing is required, and the preset code is inserted at the end position of the first output signal P1' corresponding to the input signal combination, so that the corresponding code P2' (for example, the coded signal of state 4 or 5) appears at the end position of the first output signal. Accordingly, a=1+1=2;
[0079] When the output signal P1' with state 3 appears three times in succession, that is, it is predicted that the output signal with state 3 will appear three times in succession, at this time a=2, N=(a+1)K=3, that is, the preset condition is met. Therefore, it is determined that interpolation processing is required, and the preset code needs to be inserted at the end position of the second output signal P1' corresponding to the input signal combination, so that the corresponding code P2' appears at the end position of the second output signal.
[0080] As another example, see Figure 3C , let f0=100Hz, f c =25Hz, correspondingly, K=4, therefore, when the output signal of state 3 appears four times in succession for the first time, a=1, N=aK=4, which does not meet the preset condition, so it is determined that no interpolation processing is required (of course, when 2 or 3 times appear in succession, N<K, which also does not meet the preset condition, so naturally no interpolation processing is required);
[0081] When five output signals in state 3 appear consecutively, a=1, aK=4<N=5<(a+1)K=8, that is, the preset condition is met, and it is determined that interpolation processing is required, and the preset code (for example, the coded signal in state 4 or 5) is inserted from the end position of the input signal combination corresponding to the fourth output signal P1'', so that the corresponding code P2'' appears at the end position of the fourth output signal. Accordingly, a=1+1=2;
[0082] When the output signal of state 3 appears six times in succession, a=2, N=6<aK=8, that is, the preset condition is not met, and it is determined that no interpolation processing is required; similarly, when the output signal of state 3 appears seven or eight times in succession, a=2, N=7<aK=8; or N=ak=8, that is, the preset condition is not met, and it is determined that no interpolation processing is required;
[0083] When the output signal of state 3 appears nine times in succession, a=2, aK=8<N=9<(a+1)K=12, that is, the preset condition is met, and it is determined that interpolation processing is required, and accordingly, a=1+1+1=3;
[0084] When the output signal of state 3 appears ten times in succession, a=3, N=10<aK=12, that is, the preset condition is not met, and it is determined that no interpolation processing is required; similarly, when the output signal of state 3 appears eleven or twelve times in succession, a=3, N=11<aK=12, or N=aK=12, that is, the preset condition is not met, and it is determined that no interpolation processing is required, and so on.
[0085] See also Figure 3D , let f0=50Hz, f c=100Hz, correspondingly, K is the default initial value 1, when the output signal P1''' with the state 3 appears twice in succession, at this time a=1, N>aK=1, that is, the preset condition is met, therefore, it is determined that interpolation is required at present (if interpolation processing is not performed, the second output signal that appears in succession will not pass, resulting in data loss, thereby reducing the calculation accuracy of the entire optoelectronic hybrid computing system), that is, the input signal combination needs to be encoded; at this time, the end position of the input signal combination corresponding to the aK=1 output signal is inserted into the preset code as the interpolation position, so that the corresponding code P2''' (for example, the coded signal with the state 4 or 5) appears at the end position of the aK=1 output signal, and after interpolation a=1+1=2;
[0086] When the output signal P1''' with the state of 3 appears three times in succession (i.e., the three output signals P1''' that appear starting from the first output signal with the state of 3), at this time, a=2, aK=2<N=(a+1)K=3, that is, the preset condition is met, therefore, it is determined that interpolation is required (if interpolation is not performed, the third consecutive output signal will not pass, resulting in data loss, thereby reducing the calculation accuracy of the entire optoelectronic hybrid computing system), at this time, the end position of the input signal combination corresponding to the aK=2th output signal is inserted into the preset code as the interpolation position, so that the corresponding code P2''' (for example, the coded signal with the state of 4 or 5) appears at the end position of the aK=2th output signal, and after interpolation a=1+1+1=3, and so on.
[0087] Another example, let f0=50Hz, f c =50Hz, correspondingly, K is the default initial value 1. When the output signal with the state of 3 appears twice in succession, at this time a=1, N>aK=1, that is, the preset condition is met. Therefore, it is determined that interpolation is required at present (if interpolation processing is not performed, the second output signal that appears in succession will not pass, resulting in data loss, thereby reducing the calculation accuracy of the entire optoelectronic hybrid computing system), that is, the input signal combination needs to be encoded; at this time, the end position of the input signal combination corresponding to the aK=1 output signal is inserted into the preset code as the interpolation position, so that the corresponding code (for example, the coded signal with the state of 4 or 5) appears at the end position of the aK=1 output signal, and after interpolation a=1+1=2;
[0088] When the output signal P1 with the state of 3 appears three times in succession (i.e., the three output signals appearing starting from the first output signal with the state of 3), at this time, a=2, aK=2<N=(a+1)K=3, that is, the preset condition is met, therefore, it is determined that interpolation is required (if interpolation is not performed, the third consecutive output signal will not pass, resulting in data loss, thereby reducing the calculation accuracy of the entire optoelectronic hybrid computing system), at this time, the end position of the input signal combination corresponding to the aK=2th output signal is inserted into the preset code as the interpolation position, so that the corresponding code (for example, the coded signal with the state of 4 or 5) appears at the end position of the aK=2th output signal, and after interpolation a=1+1+1=3, and so on.
[0089] S1032 determines that interpolation processing is currently required, and uses the end position of the input signal combination corresponding to the aK-th output signal as the interpolation position, and inserts the preset coded signal.
[0090] In some embodiments, the input signal combination preferably includes four different input signals; and when the input signal combination composed of the four input signals is input into the photonic computing chip, the signal state of the output signal includes: a first state of 0; a second state of 1, a third state of 2, a fourth state of 3 and a fifth state of 4; wherein the first, second and third states are low states, and the fourth and fifth states are high states.
[0091] When it is identified that the number of consecutive occurrences N of the output signal of the same state meets the above preset condition and is in a low state, the first preset coding signal with a state of 4 is inserted (that is, the coding signal of the high state is inserted). For example, when it is identified that the number of consecutive occurrences N of the output signal of the first state meets the preset condition, or when it is identified that the number of consecutive occurrences N of the output signal of the second state meets the preset condition, or when it is identified that the number of consecutive occurrences N of the output signal of the third state meets the preset condition, the first preset coding signal with a state of 4 is inserted.
[0092] When it is identified that the output signal of the same state has a continuous occurrence number N that meets the preset condition and is in a high state, a second preset coded signal with a state of 0 or 1 is inserted (i.e., a coded signal of a low state is inserted). For example, when it is identified that the output signal of the fourth state has a continuous occurrence number N that meets the preset condition, or when it is identified that the output signal of the fifth state has a continuous occurrence number N that meets the preset condition, a second preset coded signal with a state of 0 or 1 is inserted.
[0093] Of course, in other embodiments, if the input signal combination includes an input signal; and the signal state of the output signal after the input signal is input into the photon computing chip includes: a first state of state 0 and a second state of state 1;
[0094] When it is predicted that the output signal of the first state occurs consecutively for a number of times N that meets the above preset conditions, a third preset coding signal with a state of 1 is inserted; or, when it is predicted that the output signal of the second state occurs consecutively for a number of times N that meets the above preset conditions, a fourth preset coding signal with a state of 0 is inserted.
[0095] S104 inserts a preset coding signal into the input signal combination according to the interpolation position in step S103, so that after the input signal combination is input into the photonic computing chip, the output signal of the photonic computing chip can pass through the blocking element and be input into the transimpedance amplifier TIA.
[0096] In this embodiment, the interpolation position is predicted according to the operating frequency of the encoding device and the cutoff frequency of the blocking element, and the preset encoding signal is inserted according to the predicted interpolation position, so that the PD output signal is no longer a DC photocurrent signal, avoiding the DC bias of the DC photocurrent causing TIA output saturation and distortion, thereby reducing the calculation accuracy of the optoelectronic hybrid computing system.
[0097] S105 receives the output signal and decodes it according to the attribute information of the input signal combination; wherein the attribute information includes the interpolation position.
[0098] In this embodiment, since the provided input signal combination has been encoded, and as mentioned above, the interpolation position, that is, the position where the encoded signal is inserted, is recorded, after the encoding device (for example, FPGA) receives the digital signal converted by the ADC, it can also decode according to the interpolation position, thereby avoiding the presence of DC in the signal and affecting the TIA, thereby achieving a better application of the TIA circuit in the optoelectronic hybrid computing system and ensuring the calculation accuracy of the optoelectronic hybrid computing system.
[0099] Of course, further, the decoded output signal is compared with the original output signal (the output signal without the blocking element can be predicted in advance based on the provided input signal combination) to obtain the similarity between the two sets of output signals (for example, the similarity between the waveforms). If the similarity is less than the preset similarity threshold, it means that there may be errors in the current encoding method, for example, the actual interpolation position may be wrong, so the user is prompted to perform manual verification to determine whether re-encoding is required. Of course, if the similarity is greater than or equal to the preset similarity threshold, it means that the current encoding method has no adverse effect on the input signal combination or the output signal. Therefore, this encoding method can be used as a reference standard to encode other optoelectronic hybrid computing systems with the same link structure and providing the same input signal combination.
[0100] Example 2: See Figure 5, is a functional module diagram of a signal encoding device applied to an optoelectronic hybrid computing system according to an embodiment of the present invention. Specifically, the signal encoding device includes:
[0101] A signal generating module, configured to provide a set of input signal combinations; the input signal combination comprises at least one input signal;
[0102] A main control module, used for predicting the real-time signal state of the output signal of the photon computing chip after the input signal combination is input into the photon computing chip;
[0103] The coding module is used to determine the interpolation position of the inserted coding signal according to the signal state predicted by the main control module, and insert the preset coding signal into the input signal combination according to the interpolation position, so that after the at least one input signal is input into the photonic computing chip, the output signal of the photonic computing chip can pass through the blocking element and be input into the transimpedance amplifier TIA.
[0104] In some embodiments, the encoding module specifically includes:
[0105] The first judgment unit is used to judge whether the number of consecutive occurrences N of the output signal of the same signal state satisfies the preset condition aK<N≤(a+1)K; wherein, if f0 / f c ≤1, K=1; if f0 / f c >1, K=f0 / f c , and take an integer; f c is the cutoff frequency of the blocking element, f0 is the operating frequency of the encoding device; the initial value of a is 1, and each time the interpolation is completed, a is accumulated by 1;
[0106] The interpolation unit is used to determine that interpolation processing is currently required when the first judgment unit determines that the number of consecutive occurrences of the output signal of the same signal state meets the preset condition, and use the end position of the input signal combination corresponding to the aKth output signal as the interpolation position, and insert the preset coded signal. Specifically, the interpolation unit is specifically used to identify the type of the signal state of the output signal that appears continuously, and if it is a low state, insert the first preset coded signal in the high state; or, if it is a high state, insert the second preset coded signal in the low state.
[0107] In some embodiments, the input signal combination includes four different input signals; the signal states of the output signals after the four input signals are input into the photonic computing chip include: a first state of 0; a second state of 1, a third state of 2, a fourth state of 3 and a fifth state of 4; wherein the first, second and third states are low states; the fourth and fifth states are high states; the interpolation unit is specifically used to insert a first preset coding signal with a state of 4 when it is identified that the number of consecutive occurrences N of the output signal in the same low state meets a preset condition; or, when it is identified that the number of consecutive occurrences of the output signal in the first state, the second state or the third state meets the preset condition, insert the first preset coding signal with a state of 4; or, when it is identified that the number of consecutive occurrences N of the output signal in the same high state meets the preset condition, insert a second preset coding signal with a state of 0 or 1; or, when it is identified that the number of consecutive occurrences of the output signal in the fourth state or the fifth state meets the preset condition, insert a second preset coding signal with a state of 0 or 1.
[0108] In other embodiments, the input signal combination includes an input signal; the signal state of the output signal after the input signal is input into the photonic computing chip includes: a first state with a state of 0 and a second state with a state of 1; the interpolation unit is specifically used to insert a third preset coding signal with a state of 1 when it is identified that the number of consecutive occurrences of the output signal in the first state meets a preset condition; or, when it is identified that the number of consecutive occurrences of the output signal in the second state meets the preset condition, insert a fourth preset coding signal with a state of 0.
[0109] Furthermore, the signal encoding device also includes a decoding module, which is used to receive the output signal and decode it according to the attribute information of the encoded signal; the attribute information includes the interpolation position.
[0110] 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.
[0111] 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.
[0112] 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 methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which all fall within the protection of the present invention.
Claims
1. A digital encoding method in an optoelectronic hybrid computing system, characterized in that: A blocking element for isolating direct current and alternating current is connected in series between the photon computing chip and the transimpedance amplifier TIA in the optoelectronic hybrid computing system; the digital encoding method specifically comprises the steps of: S101 provides a set of input signal combinations; the input signal combination includes at least one input signal; S102 predicts the real-time signal state of the output signal of the photon computing chip after the input signal combination is input into the photon computing chip; S103 determines an interpolation position for inserting a coded signal according to the predicted signal state; S104 inserting a preset coding signal into the input signal combination according to the interpolation position in step S103, so that after the input signal combination is input into the photon computing chip, the output signal of the photon computing chip can pass through the blocking element and be input into the transimpedance amplifier TIA; The step of determining the interpolation position for inserting the coded signal according to the signal state in step S103 specifically includes the following steps: Determine whether the number of consecutive occurrences N of the output signal of the same signal state meets the preset condition: aK<N≤(a+1)K; wherein, if f0 / f c ≤1, K=1; if f0 / f c >1, K=f0 / f c , and take an integer; f c is the cutoff frequency of the blocking element; f0 is the operating frequency of the encoding device; the initial value of a is 1, and each time the interpolation is completed, a is accumulated by 1; If the preset condition is met, it is determined that interpolation processing is currently required, and the end position of the input signal combination corresponding to the aKth output signal is used as the interpolation position, and the preset coded signal is inserted.
2. The digital encoding method in the optoelectronic hybrid computing system according to claim 1, characterized in that: The step of inserting a preset coded signal specifically includes: identifying types of signal states of the output signal that will occur consecutively, the types of signal states comprising a low state and a high state; If it is in the low state, insert the first preset coded signal in the high state; If it is in the high state, a second preset coding signal in the low state is inserted.
3. The digital encoding method in the optoelectronic hybrid computing system according to claim 2, characterized in that: The input signal combination includes four different input signals; after the input signal combination is input into the photonic computing chip, the signal state of the output signal includes: a first state of state 0; a second state of state 1, a third state of state 2, a fourth state of state 3 and a fifth state of state 4; wherein the first, second and third states are low states, and the fourth and fifth states are high states; When it is identified that the output signal of the same state appears consecutively for a number N that meets the preset condition and is in a low state, inserting a first preset coding signal with a state of 4; Alternatively, when it is identified that the number of consecutive occurrences N of the output signal in the first state, the second state or the third state satisfies the preset condition, a first preset coding signal with a state of 4 is inserted; Alternatively, when it is identified that the output signal in the same state appears consecutively for a number N that meets the preset condition and is in a high state, a second preset coding signal whose state is 0 or 1 is inserted; Alternatively, when it is identified that the output signal in the fourth state or the fifth state continuously appears a number N times that meets the preset condition, a second preset coding signal whose state is 0 or 1 is inserted.
4. The digital encoding method in the optoelectronic hybrid computing system according to claim 2, characterized in that: The input signal combination includes an input signal; the signal state of the output signal after the input signal is input into the photonic computing chip includes: a first state of state 0 and a second state of state 1; When it is predicted that the output signal in the first state continuously appears a number N that satisfies the preset condition, inserting a third preset coded signal in state 1; Alternatively, when it is predicted that the number of consecutive occurrences N of the output signal in the second state meets the preset condition, a fourth preset coded signal with a state of 0 is inserted.
5. The digital encoding method in the optoelectronic hybrid computing system according to claim 2, characterized in that: Also includes the steps: S105 receives the output signal and decodes it according to the attribute information of the encoded signal; the attribute information includes the interpolation position.
6. A signal encoding device used in an optoelectronic hybrid computing system, characterized in that: include: A signal generating module, configured to provide a set of input signal combinations; the input signal combination comprises at least one input signal; A main control module, used for predicting the real-time signal state of the output signal of the photon computing chip after the input signal combination is input into the photon computing chip; A coding module, configured to determine an interpolation position for inserting a coding signal according to a signal state predicted by the main control module, and insert a preset coding signal into the input signal combination according to the interpolation position, so that after the at least one input signal is input into the photon computing chip, an output signal of the photon computing chip can pass through the blocking element and be input into the transimpedance amplifier TIA; The encoding module specifically includes: The first judgment unit is used to judge whether the number of consecutive occurrences N of the output signal of the same signal state satisfies a preset condition aK<N≤(a+1)K; wherein, if f0 / f c ≤1, K=1; if f0 / f c >1, K=f0 / f c , and take an integer; f c is the cutoff frequency of the blocking element; f0 is the operating frequency of the encoding device; the initial value of a is 1, and each time the interpolation is completed, a is accumulated by 1; An interpolation unit is used to determine that interpolation processing is currently required when the first judgment unit determines that the number of consecutive occurrences of the output signal of the same signal state meets the preset conditions, and use the end position of the input signal combination corresponding to the akth output signal as the interpolation position, and insert the preset coded signal.
7. The signal encoding device used in an optoelectronic hybrid computing system according to claim 6, characterized in that: The interpolation unit is specifically used to identify the type of signal state of the output signal that appears continuously, and if it is a low state, insert a first preset coded signal in a high state; or, if it is a high state, insert a second preset coded signal in a low state.
8. The signal encoding device used in an optoelectronic hybrid computing system according to claim 7, characterized in that: The input signal combination includes four different input signals; The signal states of the output signals after the four input signals are input into the photon computing chip include: a first state of state 0; a second state of state 1, a third state of state 2, a fourth state of state 3 and a fifth state of state 4; wherein the first, second and third states are low states; and the fourth and fifth states are high states; The interpolation unit is specifically used to insert a first preset coding signal with a state of 4 when it is identified that the number of consecutive occurrences of the output signal in the same low state meets the preset condition; or, when it is identified that the number of consecutive occurrences of the output signal in the first state, the second state, or the third state meets the preset condition, insert the first preset coding signal with a state of 4; or, when it is identified that the number of consecutive occurrences of the output signal in the same high state meets the preset condition, insert the second preset coding signal with a state of 0 or 1; or, when it is identified that the number of consecutive occurrences of the output signal in the fourth state or the fifth state meets the preset condition, insert the second preset coding signal with a state of 0 or 1.
9. The signal encoding device used in an optoelectronic hybrid computing system according to claim 7, characterized in that: The input signal combination includes an input signal; the signal state of the output signal after the input signal is input into the photonic computing chip includes: a first state with a state of 0 and a second state with a state of 1; the interpolation unit is specifically used to insert a third preset coding signal with a state of 1 when it is identified that the number of consecutive occurrences of the output signal in the first state meets a preset condition; or, when it is identified that the number of consecutive occurrences of the output signal in the second state meets the preset condition, insert a fourth preset coding signal with a state of 0.
10. The signal encoding device used in an optoelectronic hybrid computing system according to claim 6, characterized in that: It also includes a decoding module, which is used to receive the output signal and decode it according to the attribute information of the encoded signal; the attribute information includes the interpolation position.
Citation Information
Patent Citations
Photoelectric hybrid calculation method and array for on-chip large-scale matrix multiplication
CN116932459A
Method And System for A Distributed Optoelectronic Receiver
US20170141853A1
