WO2023168629A1 - Optical computing system and optical signal processing method - Google Patents

Optical computing system and optical signal processing method Download PDF

Info

Publication number
WO2023168629A1
WO2023168629A1 PCT/CN2022/079960 CN2022079960W WO2023168629A1 WO 2023168629 A1 WO2023168629 A1 WO 2023168629A1 CN 2022079960 W CN2022079960 W CN 2022079960W WO 2023168629 A1 WO2023168629 A1 WO 2023168629A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
optical signal
optical
digital
dac
Prior art date
Application number
PCT/CN2022/079960
Other languages
French (fr)
Chinese (zh)
Inventor
陶明慧
周雷
欧阳伟龙
李芮
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2022/079960 priority Critical patent/WO2023168629A1/en
Publication of WO2023168629A1 publication Critical patent/WO2023168629A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06EOPTICAL COMPUTING DEVICES; COMPUTING DEVICES USING OTHER RADIATIONS WITH SIMILAR PROPERTIES
    • G06E1/00Devices for processing exclusively digital data

Definitions

  • the present application relates to the field of optical communications, and in particular, to an optical computing system and an optical signal processing method.
  • Photon computing chip can also be called optical processing unit (OPU).
  • OPU uses optical signals as the carrier of data, so OPU can process data by performing operations on optical signals.
  • the optical computing system based on OPU is considered to be the most promising solution in various fields such as artificial intelligence and mobile communications that require big data processing due to its advantages such as high-speed parallelism and low power consumption.
  • optical computing systems can include analog-to-analog converter (DAC), electro-optical conversion (E/O), OPU, optical-electro conversion (O/E) and Analog to digital converter (ADC).
  • DAC analog-to-analog converter
  • E/O electro-optical conversion
  • OPU optical-electro conversion
  • ADC Analog to digital converter
  • the DAC is limited by its own design process and materials, and its digital signal processing accuracy is no higher than 4 bits (4 bits).
  • the current optical computing system cannot realize optical operations of digital signals of 8 bits (8 bits) and above. .
  • Embodiments of the present application provide an optical computing system and an optical signal processing method that use multiple DACs to collaboratively complete digital-to-analog conversion of high-bit digital signals, so that the entire optical computing system can achieve digital signal conversion of 8-bit or more. Light operations.
  • the first aspect of the embodiment of the present application provides an optical computing system.
  • the optical computing system includes: multiple DACs and OPUs.
  • the input end of each DAC is connected to the output end of an electric processor outside the system.
  • the input end of each DAC is The output terminal is connected to the input terminal of the OPU.
  • the digital signal can be split into multiple sub-digital signals.
  • each sub-digital signal corresponds to at least one bit of the digital signal. Therefore, after the multiple sub-digital signals are spliced in order, the digital signal can be composed. For example, suppose there is a digital signal representing 409 X, the digital signal X is 110011001. Since the digital signal .
  • the electronic processor can send the digital signal to multiple DACs in the form of multiple sub-digital signals.
  • the first DAC and the second DAC are two of the plurality of DACs, then the first DAC can receive the first sub-digital signal (the first sub-digital signal) corresponding to the first valid bit of the digital signal.
  • the sub-digital signal is one of the aforementioned plurality of sub-digital signals), and the second DAC can receive the second sub-digital signal corresponding to the second effective bit of the digital signal (the second sub-digital signal is one of the aforementioned plurality of sub-digital signals). of another).
  • the first DAC can perform digital-to-analog conversion on the first sub-digital signal it receives to obtain the first analog signal, which is equivalent to the first DAC converting the first effective bit of the digital signal into the first analog signal and sending to OPU.
  • the second DAC can perform digital-to-analog conversion on the second sub-digital signal it receives to obtain a second analog signal, which is equivalent to the second DAC converting the second effective bit of the digital signal into a second analog signal, and Send to OPU.
  • the OPU After receiving the first analog signal and the second analog signal, the OPU can perform electro-optical conversion on the first analog signal to obtain the first optical signal, and perform electro-optical conversion on the second analog signal to obtain the second optical signal. Then, the OPU performs calculations based on the first optical signal to obtain a third optical signal, and performs calculations based on the second optical signal to obtain a fourth optical signal. Finally, the OPU can amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal.
  • the above optical computing system includes a first DAC, a second DAC and an OPU.
  • the first DAC and the second DAC cooperate to receive the digital signal from the electrical processor
  • the first DAC can convert the first effective bit of the digital signal into The first analog signal
  • the second DAC can convert the second significant bit of the digital signal into a second analog signal.
  • the OPU can convert the first analog signal into a first optical signal, convert the second analog signal into a second optical signal, and perform operations on the first optical signal and the second optical signal respectively to obtain the third optical signal and the third optical signal.
  • Four light signals can amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal.
  • the accuracy of the DAC is usually 4 bits, if the number of digital signals is greater than 4 bits, the digital signal can be split into multiple parts and received by multiple DACs to achieve digital-to-analog conversion. In this way, even if the accuracy of each DAC itself is limited, multiple DACs can cooperate to complete the digital-to-analog conversion of high-bit digital signals, so that the entire optical computing system can realize optical operations of 8-bit and above digital signals.
  • the accuracy of the first DAC and the accuracy of the second DAC are d bits
  • the digital signal contains r bits
  • the first effective bit is the (i-1)*d+1th bit to The i*d bit
  • the first significant bit and the second significant bit are both d bits
  • the first significant bit is the (i-th) of the digital signal.
  • the second significant bit is the (j-1)*d+1 to j*d bit of the digital signal
  • the first significant bit is The 1st to dth bits of the digital signal
  • the second significant bit is the d+1th to 2dth bit of the digital signal
  • the first significant bit is the (h-2)*dth bit of the digital signal +1 bit to the (h-1)*d bit
  • the second significant bit is the (h-1)*d+1 to h*d bit of the digital signal, and so on.
  • the accuracy of the first DAC and the accuracy of the second DAC are d bits
  • the digital signal contains r bits
  • the first effective bit is the (i-1)*d+1th bit to The i*d bit
  • the first effective bit is the d bit
  • the second effective bit is the v bit
  • the first effective bit is the digital signal.
  • the (i-1)*d+1th bit to the i*dth bit, the second significant bit is the h*d+1th to r-th bit of the digital signal, for example, the first significant bit is the digital signal's The 1st to dth bits, the second significant bits are the h*d+1 to rth bits of the digital signal.
  • the first significant bit is the (h-2)*d+1th bit of the digital signal.
  • bit to the (h-1)*d bit, the second significant bit is the h*d+1 bit to the r-th bit of the digital signal, and so on.
  • the third optical signal is amplified by a factor greater than or equal to 2 to the power of (i-1)*d
  • the fourth optical signal is amplified by a factor greater than or equal to 2(j-1) *d power.
  • the third optical signal since the third optical signal is generated based on the first sub-digital signal, and the first sub-digital signal corresponds to the first effective bit of the digital signal, that is, the (i-1)*d+1th bit of the digital signal bit to the i*dth bit, so the third optical signal needs to be amplified by a factor greater than or equal to 2 to the (i-1)*d power.
  • the fourth optical signal is generated based on the second sub-digital signal, and the second sub-digital signal corresponds to the second effective bit of the digital signal, that is, the (j-1)*d+1th bit to The j*dth bit, so the amplification factor of the fourth optical signal is greater than or equal to 2 to the (j-1)*d power.
  • the third optical signal is amplified by a factor greater than or equal to 2 to the (i-1)*d power
  • the fourth optical signal is amplified by a factor greater than or equal to 2 h*d power.
  • the third optical signal since the third optical signal is generated based on the first sub-digital signal, and the first sub-digital signal corresponds to the first effective bit of the digital signal, that is, the (i-1)*d+1th bit of the digital signal bit to the i*dth bit, so the third optical signal needs to be amplified by a factor greater than or equal to 2 to the (i-1)*d power.
  • the amplification factor of the fourth optical signal is greater than or equal to 2 h*d power.
  • the OPU includes a first modulator, a second modulator, an amplifier and an adder; the first modulator is used to convert the first analog signal into a first optical signal, and The signal is operated to obtain a third optical signal; the second modulator is used to convert the second analog signal into a second optical signal, and performs operations based on the second optical signal to obtain a fourth optical signal; the amplifier is used to The third optical signal is amplified to obtain the fifth optical signal; the fourth optical signal is amplified to obtain the sixth optical signal; the adder is used to superimpose the fifth optical signal and the sixth optical signal to obtain the calculation of the digital signal result.
  • the accuracy of the modulator in the OPU is usually 4 bits.
  • the optical computing system By arranging multiple modulators in the OPU, even if the accuracy of each modulator itself is limited, high-bit digital signal operations can also be implemented. In this way, the optical computing system provided by the embodiments of the present application can implement high-precision optical computing of digital signals by deploying low-precision devices, which is beneficial to improving the computing performance of optical computing without any performance loss compared to electrical computing.
  • the first modulator and the second modulator are microring modulators, electroabsorption external modulators or Mach-Zehnder interferometers.
  • the aforementioned operation is a matrix multiplication operation.
  • a second aspect of the embodiment of the present application provides an optical signal processing method.
  • the method is implemented through an optical computing system.
  • the system includes a first DAC, a second DAC, and an OPU.
  • the method includes: processing the third portion of the digital signal through the first DAC.
  • One valid bit is converted into a first analog signal
  • the second valid bit of the digital signal is converted into a second analog signal through the second DAC
  • the OPU performs an operation based on the first optical signal derived from the first analog signal to obtain a third optical signal signal
  • the OPU performs calculations based on the second optical signal derived from the second analog signal to obtain a fourth optical signal
  • the OPU amplifies and superimposes the third optical signal and the fourth optical signal to obtain a calculation result of the digital signal.
  • the optical computing system used to implement the above method includes a first DAC, a second DAC and an OPU.
  • the first DAC and the second DAC cooperate to receive the digital signal from the electrical processor, the first DAC can convert the third part of the digital signal.
  • a valid bit is converted into a first analog signal
  • the second DAC can convert a second valid bit of the digital signal into a second analog signal.
  • the OPU can convert the first analog signal into a first optical signal, convert the second analog signal into a second optical signal, and perform operations on the first optical signal and the second optical signal respectively to obtain the third optical signal and the third optical signal.
  • Four light signals can amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal.
  • the accuracy of the DAC is usually 4 bits, if the number of digital signals is greater than 4 bits, the digital signal can be split into multiple parts and received by multiple DACs to achieve digital-to-analog conversion. In this way, even if the accuracy of each DAC itself is limited, multiple DACs can cooperate to complete the digital-to-analog conversion of high-bit digital signals, so that the entire optical computing system can realize optical operations of 8-bit and above digital signals.
  • the accuracy of the first DAC and the accuracy of the second DAC are d bits
  • the digital signal contains r bits
  • the first effective bit is the (i-1)*d+1th bit to The i*d bit
  • the accuracy of the first DAC and the accuracy of the second DAC are d bits
  • the digital signal contains r bits
  • the first effective bit is the (i-1)*d+1th bit to The i*d bit
  • the third optical signal is amplified by a factor greater than or equal to 2 to the power of (i-1)*d
  • the fourth optical signal is amplified by a factor greater than or equal to 2(j-1) *d power.
  • the third optical signal is amplified by a factor greater than or equal to 2 to the (i-1)*d power
  • the fourth optical signal is amplified by a factor greater than or equal to 2 h*d power.
  • the OPU includes a first modulator, a second modulator, an amplifier and an adder
  • the steps performed by the OPU include: converting the first analog signal into a first optical signal through the first modulator, and perform operations based on the first optical signal to obtain a third optical signal; convert the second analog signal into a second optical signal through the second modulator, and perform operations based on the second optical signal to obtain a fourth optical signal; through the amplifier
  • the third optical signal is amplified to obtain the fifth optical signal; the fourth optical signal is amplified to obtain the sixth optical signal; the fifth optical signal and the sixth optical signal are superimposed by an adder to obtain the calculation result of the digital signal .
  • the first modulator and the second modulator are microring modulators, electroabsorption external modulators or Mach-Zehnder interferometers.
  • the aforementioned operation is a matrix multiplication operation.
  • the optical computing system includes a first DAC, a second DAC and an OPU.
  • the first DAC and the second DAC cooperate to receive the digital signal from the electrical processor, the first DAC can convert the third part of the digital signal.
  • a valid bit is converted into a first analog signal
  • the second DAC can convert a second valid bit of the digital signal into a second analog signal.
  • the OPU can convert the first analog signal into a first optical signal, convert the second analog signal into a second optical signal, and perform operations on the first optical signal and the second optical signal respectively to obtain the third optical signal and the third optical signal.
  • Four light signals can amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal.
  • the accuracy of the DAC is usually 4 bits, if the number of digital signals is greater than 4 bits, the digital signal can be split into multiple parts and received by multiple DACs to achieve digital-to-analog conversion. In this way, even if the accuracy of each DAC itself is limited, multiple DACs can cooperate to complete the digital-to-analog conversion of high-bit digital signals, so that the entire optical computing system can realize optical operations of 8-bit and above digital signals.
  • Figure 1 is a schematic diagram of a modulator in the related art
  • Figure 2 is a schematic structural diagram of an optical computing system provided by an embodiment of the present application.
  • Figure 3 is another structural schematic diagram of an optical computing system provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of an application example of the optical computing system provided by the embodiment of the present application.
  • Figure 5 is a schematic diagram of another application example of the optical computing system provided by the embodiment of the present application.
  • FIG. 6 is a schematic flowchart of an optical signal processing method provided by an embodiment of the present application.
  • Photon computing chip can also be called OPU.
  • OPU uses optical signals as the carrier of data, so OPU can process data by performing operations on optical signals.
  • the optical computing system based on OPU is considered to be the most promising solution in various fields such as artificial intelligence and mobile communications that require big data processing due to its advantages such as high-speed parallelism and low power consumption.
  • the optical computing system can include devices such as DAC, E/O, OPU, O/E and ADC.
  • the current E/O and O/E can be integrated in the OPU.
  • the OPU can be presented as a Modulator (for example, the modulator can include a microring modulator and a photodetector, and the output end of the microring modulator is connected to the input end of the photodetector).
  • the modulator can realize both the electro-optical conversion function and the photoelectric conversion function. Can realize light computing function.
  • the DAC receives the digital signal to be operated, it can be converted into an analog signal and sent to the modulator.
  • the modulator can convert the analog signal into an optical signal, and perform calculations on the optical signal to obtain the calculation result of the digital signal in the optical field. Then, the modulator can convert the calculation result of the digital signal in the optical domain into the calculation result of the digital signal in the electrical domain, and send it to the ADC (the ADC can perform analog-to-digital conversion on the result and output it to subsequent digital operations. unit for further signal processing). At this point, the optical calculation of the digital signal is completed.
  • Figure 1 is a schematic diagram of a modulator in the related art. It should be noted that the superscript "4" of an element indicates that the precision of the element is 4 bits). Multiplication of matrix A and matrix B. Specifically, at the current moment, the digital signal a 11 representing the value 1, the digital signal a 12 representing the value 2, the digital signal a 13 representing the value 3 and the digital signal representing the value 4 can be input to the four DACs on the left respectively. a 14 , and these four digital signals are all 4-bit (4bit) digital signals.
  • the four DACs can respectively convert the four digital signals into analog signals corresponding to a 11 , an analog signal corresponding to a 12 , an analog signal corresponding to a 13 , and an analog signal corresponding to a 14 .
  • these four analog signals can be respectively modulated on optical signals with corresponding wavelengths to obtain an optical signal corresponding to a 11 (the wavelength of the optical signal is ⁇ 1), and an optical signal corresponding to a 12 (the wavelength of the optical signal is ⁇ 1).
  • the optical signal corresponding to a 13 (the wavelength of the optical signal is ⁇ 3) and the optical signal corresponding to a 14 (the wavelength of the optical signal is ⁇ 4)
  • these four optical signals can be input to the first
  • the four microrings of the column are respectively input to the four microrings of the second column, the four microrings of the third column are respectively input, and the four microrings of the fourth column are respectively input.
  • the digital signal b 11 representing the value 5 the digital signal b 21 representing the value 6, the digital signal b 31 representing the value 7 and the digital signal b representing the value 8 can be respectively input to the four DACs in the first column on the right. 41
  • these four digital signals are all 4-bit (4bit) digital signals.
  • the four DACs can respectively convert the four digital signals into an analog signal corresponding to b 11 , an analog signal corresponding to b 21 , an analog signal corresponding to b 31 , and an analog signal corresponding to b 41 .
  • these four analog signals are input to the four microrings in the first column respectively, so the analog signal corresponding to b 11 can be modulated on the optical signal corresponding to a 11 to obtain the optical signal corresponding to a 11 ⁇ b 11
  • the analog signal corresponding to b 21 can be modulated on the optical signal corresponding to a 12 to obtain an optical signal corresponding to a 12 ⁇ b 21.
  • the analog signal corresponding to b 31 can be modulated on the optical signal corresponding to a 13 .
  • An optical signal corresponding to a 13 ⁇ b 31 is obtained.
  • the analog signal corresponding to b 41 can be modulated on the optical signal corresponding to a 14 to obtain an optical signal corresponding to a 14 ⁇ b 41 .
  • the inputs of the four DACs on the left are modified to digital signal a 21 , digital signal a 22 , digital signal a 23 and digital signal a 24 , and these four digital signals are all 4-bit (4bit) digital signals.
  • the inputs of the 16 DACs on the right remain unchanged, so the optical signal corresponding to c 21 , the optical signal corresponding to c 22 , the optical signal corresponding to c 23 and the optical signal corresponding to c 24 can be obtained.
  • the matrix C is shown in formula (2):
  • the photodetector (not shown in Figure 1) connected to the microring modulator can also convert the optical signal into an analog signal corresponding to the entire matrix C. And output to ADC for subsequent signal processing.
  • the microring modulator has completed the matrix multiplication operation between matrix A and matrix B in the optical field, that is, it has realized the optical operation between the two matrices.
  • DACs and modulators are limited by their own design processes and materials, and their signal processing accuracy is no higher than 4 bits (for example, DACs can only accurately achieve digital-to-analog conversion of 4-bit digital signals, and modulators can only accurately achieve digital-to-analog conversion of 4-bit digital signals. Can accurately realize electro-optical conversion of 4-bit analog signals, etc.), resulting in the current optical computing system being unable to realize optical operations of 8-bit (8-bit) and above digital signals.
  • FIG. 2 is a structural schematic diagram of the optical computing system provided by the embodiment of the present application.
  • the optical computing system includes: A DAC and an OPU, the input terminal of each DAC is connected to the output terminal of the electronic processor outside the system, and the output terminal of each DAC is connected to the input terminal of the OPU.
  • the electronic processor can output a digital signal representing a certain value, and the digital signal can be received by multiple DACs in cooperation. Specifically, since the digital signal contains multiple bits (that is, the digital signal is a multi-bit digital signal), the digital signal can be split by bits, thereby splitting the digital signal into multiple sub-digital signals. It can be seen that among the plurality of sub-digital signals, each sub-digital signal corresponds to at least one bit of the digital signal, so the plurality of sub-digital signals can be spliced in sequence to form the digital signal. In this way, the electronic processor can send the digital signal to multiple DACs in the form of multiple sub-digital signals.
  • the multiple DACs can be regarded as one Overall, it is equivalent to receiving the digital signal. For example, suppose there is a digital signal X representing 409, and the digital signal X is 110011001. Since the digital signal 011, sub-digital signal X3 is 001), so the electronic processor can send sub-digital signal X1 to DAC1, sub-digital signal X2 to DAC2, and sub-digital signal X3 to DAC3. In this way, DAC1, DAC2 and DAC3 as a whole are equivalent to receiving the digital signal 110011001.
  • each sub-digital signal corresponds to at least one bit of the digital signal
  • the value represented by most of the sub-digital signals is smaller than the corresponding bit of the digital signal.
  • the numerical value represented Still as the above example, the sub-digital signal X1 corresponds to the first three digits of the digital signal X "110", but the value represented by the sub-digital signal The value is 384.
  • the sub-digital signal X2 corresponds to the middle three digits "011" of the digital signal X, but the value represented by the sub-digital signal is 24.
  • the DAC can convert the sub-digital signal it receives into an analog signal and send it to the OPU.
  • the OPU can receive multiple analog signals, and perform electro-optical conversion on the multiple analog signals respectively, and obtain the analog signals one by one. Corresponding multiple optical signals to be calculated. Then, the OPU performs calculations on the plurality of optical signals to be calculated respectively, and obtains a plurality of calculated optical signals that correspond one-to-one to the multiple optical signals to be calculated.
  • each optical signal to be calculated corresponds to at least one bit of the digital signal
  • the values represented by most of the optical signals to be calculated are less than or equal to it.
  • the value represented by the corresponding bit of the digital signal because the multiple optical signals to be operated on are in one-to-one correspondence with the multiple sub-digital signals
  • the multiple operations corresponding to the multiple optical signals to be operated on are one-to-one.
  • the final optical signal cannot be directly spliced as the calculation result of the digital signal (because most of the calculated optical signals represent relatively small values).
  • the OPU needs to process the multiple calculated optical signals. Amplification and superposition can be used as the calculation result of the digital signal.
  • the operations that the optical computing system can achieve are not limited to matrix multiplication operations.
  • Figure 3 Figure 3 is another structural schematic diagram of the optical computing system provided by the embodiment of the present application
  • the computing task required by the optical computing system is to implement the multiplication operation between matrix A and matrix B.
  • matrix A is an m ⁇ n matrix
  • matrix B is an n ⁇ k matrix.
  • the two matrices are as shown in formula (3):
  • the accuracy of the DAC in the optical computing system is d bits
  • the accuracy of the elements in matrix A is r1 bits
  • the accuracy of the elements in matrix B is r2 bits
  • r1 h1*d+v1
  • r2 h2*d+v2
  • r1, r2, h1, h2, v1, v2 and d are all integers greater than 0. Since r1>d, r2>d, the elements of matrix A and matrix B satisfy a certain relationship.
  • the element a 11 in matrix A contains bit r1, and the 1st to dth bits of a 11 are a 0 11 .
  • the d+1st to 2dth digits are a 1 11 ,..., the (h1-1)*d+1st to h1*dth digits are a h1-1 11 , the h1*d+1 to r1th digits
  • the bit is a h1 11 .
  • a 11 a h1 11 *2 h1*d +a h1-1 11 *2 (h1-1)*d +...+a 1 11 *2+a 0 11 .
  • matrix A and matrix B can be decomposed as formula (4) when performing matrix multiplication:
  • the electronic processor when the electronic processor outputs the digital signal a 11 , it can set up h1+1 DACs to receive it.
  • the first DAC receives the digital signal a 0 11 , (the digital signal a 0 11 corresponds to the digital signal a 0 11).
  • the 1st to dth bits of the signal a 11 that is, the first DAC is used to convert the 1st to dth bits of the digital signal a 11 into the corresponding analog signal), and the second DAC receives the digital signal a 1 11 ,..., the h1th DAC receives the digital signal a h1-1 , and the h1+1th DAC receives the digital signal a h1 11 (the digital signal a h1 11 corresponds to the h1* d +1th bit to the r1th bit of the digital signal a 11 bit, that is, the h1+1th DAC is used to convert the h1*d+1th bit to the r1th bit of the digital signal a 11 into the corresponding analog signal).
  • these h1+1 DACs can convert their respective digital signals into analog signals and send them to the OPU. That is, the first DAC converts the digital signal a 0 11 into an analog signal corresponding to a 0 11 and sends it to the OPU,..., the h1+1th DAC converts the digital signal a h1 11 into an analog signal corresponding to a h1 11 and sent to OPU.
  • any one of the remaining elements in matrix A except a 11 when the electronic processor outputs the digital signal corresponding to the element, it can also use h1+1 DACs to receive it.
  • the reception of matrix A can be completed by setting (m ⁇ n) groups of DACs (each group of DACs contains (h1+1) DACs, which are used to receive an element in matrix A).
  • (n ⁇ k) groups of DACs can also be set up to complete the reception of matrix B (each group of DACs contains (h2+1) DACs, used to receive an element in matrix B).
  • the OPU may include (h1+1) ⁇ (h2+1) modulators (for example, microring modulators, electroabsorption external modulators or Mach-Zehnder interferometers, etc.), where the (h1+1 ) ⁇ (h2+1) modulators are used to obtain the matrix multiplied by 2 h1*d+h2*d (i.e. formula (5)). Then, the modulator needs to obtain the following two matrices:
  • the modulator can be connected to the h1+1th DAC of each group, so the modulator can receive the analog signal corresponding to a h1 11 , and the analog signal corresponding to a h1 12 The corresponding analog signal,..., the analog signal corresponding to a h1 mn .
  • the optical signal corresponding to a h1 11 and the optical signal corresponding to a h1 12 can be obtained, ..., the optical signals corresponding to a h1 mn , these optical signals can constitute the optical signals corresponding to the matrix shown in formula (7).
  • the modulator is in a (n ⁇ k) group of DACs, and the modulator can be connected to the h2+1th DAC of each group, so the modulator can receive the analog signal corresponding to b h2 11 , Analog signals corresponding to b h2 12 ,..., analog signals corresponding to b h2 mn .
  • an optical signal corresponding to the matrix shown in formula (8) can be obtained. In this way, the modulator can perform matrix multiplication using these two optical signals to obtain the optical signal corresponding to formula (5).
  • the first modulator is used to obtain the matrix multiplied by 2 0 (i.e. formula (6)). Then, the modulator needs to obtain the following two matrices:
  • the modulator can be connected to the first DAC of each group, so the modulator can receive the analog signal corresponding to a 0 11 , and the analog signal corresponding to a 0 12
  • the analog signal is the analog signal corresponding to a 0 mn .
  • the optical signal corresponding to the matrix shown in formula (9) can be obtained.
  • the modulator is in a (n ⁇ k) group of DACs, and the modulator can be connected to the first DAC of each group.
  • the modulator can receive the analog signal corresponding to b 0 11 , and b The analog signal corresponding to 0 12 ,..., the analog signal corresponding to b 0 mn . After the modulator performs electro-optical conversion on these analog signals, the optical signal corresponding to the matrix shown in formula (10) can be obtained. In this way, the modulator can use these two optical signals to perform matrix multiplication to obtain the optical signal corresponding to formula (6).
  • the DACs and workflows connected to this part of the modulators can also refer to the previous discussion.
  • the relevant descriptions of the (h1+1) ⁇ (h2+1)-th modulator and the first modulator will not be described again here.
  • (h1+1) ⁇ (h2+1) optical signals can be obtained.
  • the signal has a one-to-one correspondence with (h1+1) ⁇ (h2+1) m ⁇ k matrices, including the optical signal corresponding to formula (5), the optical signal corresponding to formula (6), and so on.
  • the OPU is also equipped with an amplifier and an adder.
  • the amplifier can be used for (h1+1) ⁇ (h2+1) modulators to obtain (h1+1) ⁇ (h2+ 1) optical signals are amplified to obtain (h1+1) ⁇ (h2+1) amplified optical signals.
  • the matrix shown in formula (5) is the matrix multiplied by 2 h1*d+h2*d , so the optical signal corresponding to formula (5) needs to be amplified 2 h1*d+h2*d times
  • formula (6 ) is a matrix multiplied by 2 0 , so the optical signal corresponding to formula (6) needs to be amplified 2 0 times.
  • the adder is used to add (h1+1) ⁇ (h2+1) amplified optical signals to obtain an optical signal corresponding to the result obtained by formula (4).
  • the first effective bit of the aforementioned digital signal is the (i-1)*d+1th to i*d bits of the digital signal
  • the second effective bit of the aforementioned digital signal is the h*d+th bit of the digital signal. 1 to the r-th bit.
  • the digital signal is a digital signal a 11
  • the second effective bit It can only be h1*d+1 to r1 of a 11
  • the digital signal can be a digital signal a 12 , b 11 , etc.
  • the sub-digital signal corresponding to the first significant bit of the digital signal can be converted into the first analog signal by the corresponding DAC (ie, the aforementioned first DAC).
  • the sub-digital signal corresponding to the second effective bit of the digital signal can be converted into a second analog signal by a corresponding DAC (ie, the aforementioned second DAC).
  • the first valid bit can be the 1st to d bits of a 11
  • the second valid bit can only be the h1*d+1 to r1th bit of a 11 .
  • the first ADC is the first DAC among the h1+1 DACs used to receive digital signals (used to receive digital signals a 0 11 ), the first analog signal is the analog signal corresponding to a 0 11 , and the second The DAC is the h1+1-th DAC among the h1+1 DACs for receiving digital signals (for receiving the digital signal a h1 11 ), the second analog signal is the analog signal corresponding to a h1 11 , and so on.
  • the first optical signal is the optical signal corresponding to a 0 11
  • the third optical signal is the optical signal corresponding to the matrix shown in formula (6)
  • the first modulator is the first modulator
  • the second optical signal is the optical signal corresponding to a h1 11
  • the fourth optical signal is the optical signal corresponding to the matrix shown in formula (5)
  • the second modulator is (h1+1) ⁇ (h2+1 ) modulator.
  • the third optical signal can also be an optical signal corresponding to the remaining matrices.
  • the remaining matrices are obtained based on the matrix shown in formula (9) (by performing matrix multiplication) (at this time, the first modulator is converted into the corresponding modulator ), in the same way, the fourth optical signal can also be an optical signal corresponding to the remaining matrices, and the remaining matrices are obtained based on the matrix (matrix multiplication operation) shown in formula (7) (at this time, the second modulator is transformed into the corresponding modulator).
  • the third optical signal is amplified by a factor greater than or equal to 2 to the (i-1)*d power
  • the fourth optical signal is amplified by a factor greater than or equal to 2 h1*d power.
  • the third optical signal is an optical signal corresponding to the matrix shown in equation (6)
  • the third optical signal is amplified by a factor of 2 0
  • the fourth optical signal is an optical signal corresponding to the matrix shown in equation (5).
  • the fourth optical signal is amplified by a factor of 2 h1*d+h2*d .
  • the digital signal is a digital signal a 11
  • the dth bit, and the second valid bit can be the d+1th to 2dth bits of a 11
  • the first valid bit can be the (h1-2)*d+1th to (h1-) bits of a 11 1)*d bit
  • the second valid bit can be the (h1-1)*d+1th to h1*d bit of a 11 and so on.
  • the digital signal can be a digital signal a 12 , b 11 , etc.
  • the sub-digital signal corresponding to the first significant bit of the digital signal can be converted into the first analog signal by the corresponding DAC (ie, the aforementioned first DAC).
  • the sub-digital signal corresponding to the second effective bit of the digital signal can be converted into a second analog signal by a corresponding DAC (ie, the aforementioned second DAC).
  • the first valid bit can be the 1st to dth bits of a 11
  • the second valid bit can be the ( h1-1 )*d+1th to h1*d bits of a 11.
  • the first ADC is the first DAC among the h1+1 DACs used to receive digital signals (used to receive digital signals a 0 11 ), the first analog signal is the analog signal corresponding to a 0 11 , and the second The DAC is the h1-th DAC among the h1+1 DACs for receiving digital signals (for receiving the digital signal a h1-1 11 ), the second analog signal is the analog signal corresponding to a h1-1 11 , and so on.
  • the first optical signal is the optical signal corresponding to a 0 11
  • the third optical signal is the optical signal corresponding to the matrix shown in formula (6)
  • the first modulator is the first modulator
  • the second optical signal is the optical signal corresponding to a h1-1 11
  • the fourth optical signal is the optical signal corresponding to the matrix shown in formula (11)
  • the second modulator is the h1 ⁇ h2-th modulator.
  • the third optical signal can also be an optical signal corresponding to the remaining matrices. The remaining matrices are obtained based on the matrix shown in formula (9) (performing matrix multiplication).
  • the fourth optical signal can also be an optical signal corresponding to the remaining matrices. of the optical signal, and the remaining matrices are obtained based on the matrix shown in formula (12) (performing matrix multiplication).
  • Formula (11) and formula (12) are:
  • the third optical signal is amplified by a factor greater than or equal to 2 raised to the (i-1)*d power
  • the fourth optical signal is amplified by a factor greater than or equal to 2 raised to the (j-1)*d power.
  • the third optical signal is an optical signal corresponding to the matrix shown in equation (6)
  • the third optical signal is amplified by a factor of 2 0
  • the fourth optical signal is an optical signal corresponding to the matrix shown in equation (11).
  • the fourth optical signal is amplified by a factor of 2 (h1-1)*d+(h2-1)*d .
  • Figure 4 is a schematic diagram of an application example of the optical computing system provided by the embodiment of the present application
  • the system needs to implement the multiplication operation of matrix A and matrix B.
  • each group contains 2 DACs.
  • the 1st to 16th groups of DACs can be used to receive matrix A, that is, each group of DACs in these 16 groups is used to receive an element in matrix A.
  • the 17th to 32nd groups of DACs can be used to receive matrix B, that is, each group of DACs in these 16 groups is used to receive an element in matrix B (it should be noted that only the 1st to 32nd groups of DACs are shown in Figure 4 One of Group 16, and one of Groups 17 to 32).
  • the first modulator is used to implement the calculation of matrix A1 and matrix B1.
  • the second modulator is used to implement the calculation of matrix A1 and matrix B2.
  • the third modulator is used to implement the calculation of matrix A2 and matrix.
  • the fourth modulator is used to implement the calculation of matrix A2 and matrix B2. Therefore, the first modulator is connected to the first DAC in each group from group 1 to group 16, and to the first DAC in each group from group 17 to group 32.
  • the second modulator is connected to the first DAC in each group from group 1 to group 16, and is connected to the second DAC in each group from group 17 to group 32.
  • the third modulator is connected to the second DAC in each group from group 1 to group 16, and is connected to the first DAC in each group from group 17 to group 32.
  • the fourth modulator is connected to the second DAC in each of groups 1 to 16, and to the second DAC in each of groups 17 to 32.
  • the first modulator can also be connected to a first amplifier, and the first amplifier can amplify the output of the first modulator 28 times.
  • the second modulator can also be connected to a second amplifier, which can amplify the output of the second modulator 24 times.
  • the third modulator can also be connected to a third amplifier, which can amplify the output of the third modulator 24 times.
  • the 4th modulator can also be connected to a 4th amplifier, and the 4th amplifier can amplify the output of the 4th modulator by 1x.
  • the four amplifiers are connected to the adder, and the adder is used to add the outputs of the four methods to obtain the optical signal corresponding to the result in formula (13).
  • Figure 5 is a schematic diagram of another application example of the optical computing system provided by the embodiment of the present application
  • the optical computing system needs to implement the multiplication operation of two 4 ⁇ 4 matrices.
  • the precision of the elements in B is 16 bits (bit), and the precision of the DAC is 4 bits.
  • matrix A can be decomposed into matrix 1, matrix 2, matrix 3 and matrix 4, and matrix B can be decomposed into matrix 5, matrix 6, matrix 7 and matrix 8. Therefore, 32 sets of DACs need to be set up in the system, and each set of DACs contains 4 DACs, and 16 modulators are set in the OPU.
  • the optical computing system includes a first DAC, a second DAC and an OPU.
  • the first DAC and the second DAC cooperate to receive the digital signal from the electrical processor, the first DAC can convert the third part of the digital signal.
  • a valid bit is converted into a first analog signal
  • the second DAC can convert a second valid bit of the digital signal into a second analog signal.
  • the OPU can convert the first analog signal into a first optical signal, convert the second analog signal into a second optical signal, and perform operations on the first optical signal and the second optical signal respectively to obtain the third optical signal and the third optical signal.
  • Four light signals can amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal.
  • the accuracy of the DAC is usually 4 bits, if the number of digital signals is greater than 4 bits, the digital signal can be split into multiple parts and received by multiple DACs to achieve digital-to-analog conversion. In this way, even if the accuracy of each DAC itself is limited, multiple DACs can cooperate to complete the digital-to-analog conversion of high-bit digital signals, so that the entire optical computing system can realize optical operations of 8-bit and above digital signals.
  • the accuracy of the modulator in the OPU is usually 4 bits.
  • the optical computing system provided by the embodiments of the present application can implement high-precision optical computing of digital signals by deploying low-precision devices, which is beneficial to improving the computing performance of optical computing without any performance loss compared to electrical computing.
  • the OPU is equipped with a 2 n linear optical amplifier and an adder, which can process the output of the modulator accordingly to obtain accurate calculation results, which is conducive to the realization of low-cost, low-power High-efficiency, low-latency optical computing.
  • Figure 6 is a schematic flow chart of an optical signal processing method provided by an embodiment of the present application. As shown in Figure 6, the method is implemented through an optical computing system.
  • the system includes a first DAC, a second DAC and an OPU.
  • the method includes:
  • the OPU performs an operation based on the first optical signal derived from the first analog signal to obtain a third optical signal
  • the OPU performs an operation based on the second optical signal derived from the second analog signal to obtain a fourth optical signal
  • the optical computing system includes a first DAC, a second DAC and an OPU.
  • the first DAC and the second DAC cooperate to receive the digital signal from the electrical processor, the first DAC can convert the third part of the digital signal.
  • a valid bit is converted into a first analog signal
  • the second DAC can convert a second valid bit of the digital signal into a second analog signal.
  • the OPU can convert the first analog signal into a first optical signal, convert the second analog signal into a second optical signal, and perform operations on the first optical signal and the second optical signal respectively to obtain the third optical signal and the third optical signal.
  • Four light signals can amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal.
  • the accuracy of the DAC is usually 4 bits, if the number of digital signals is greater than 4 bits, the digital signal can be split into multiple parts and received by multiple DACs to achieve digital-to-analog conversion. In this way, even if the accuracy of each DAC itself is limited, multiple DACs can cooperate to complete the digital-to-analog conversion of high-bit digital signals, so that the entire optical computing system can realize optical operations of 8-bit and above digital signals.
  • the accuracy of the first DAC and the accuracy of the second DAC are d bits
  • the digital signal contains r bits
  • the first effective bit is the (i-1)*d+1th bit to The i*d bit
  • the accuracy of the first DAC and the accuracy of the second DAC are d bits
  • the digital signal contains r bits
  • the first effective bit is the (i-1)*d+1th bit to The i*d bit
  • the third optical signal is amplified by a factor greater than or equal to 2 to the power of (i-1)*d
  • the fourth optical signal is amplified by a factor greater than or equal to 2(j-1) *d power.
  • the third optical signal is amplified by a factor greater than or equal to 2 to the (i-1)*d power
  • the fourth optical signal is amplified by a factor greater than or equal to 2 h*d power.
  • the OPU includes a first modulator, a second modulator, an amplifier and an adder
  • the steps performed by the OPU include: converting the first analog signal into a first optical signal through the first modulator, and perform operations based on the first optical signal to obtain a third optical signal; convert the second analog signal into a second optical signal through the second modulator, and perform operations based on the second optical signal to obtain a fourth optical signal; through the amplifier
  • the third optical signal is amplified to obtain the fifth optical signal; the fourth optical signal is amplified to obtain the sixth optical signal; the fifth optical signal and the sixth optical signal are superimposed by an adder to obtain the calculation result of the digital signal .
  • the first modulator and the second modulator are microring modulators, electroabsorption external modulators or Mach-Zehnder interferometers.
  • the operation is a matrix multiplication operation.

Abstract

The present application provides an optical computing system and an optical signal processing method. The digital-to-analog conversion of a high-bit digital signal is completed by means of the cooperation of a plurality of digital-to-analog converters (DACs), so that the whole optical computing system can realize optical operation based on an 8-bit digital signal and a digital signal of 8 bits or more. The optical computing system of the present application comprises: a first DAC, a second DAC and an optical processing unit (OPU), wherein after the first DAC and the second DAC cooperatively receive a digital signal from an electric processor, the first DAC can convert a first effective bit of the digital signal into a first analog signal, and the second DAC can convert a second effective bit of the digital signal into a second analog signal. Then, the OPU can convert the first analog signal into a first optical signal, convert the second analog signal into a second optical signal, and perform operation on the first optical signal and the second optical signal respectively to obtain a third optical signal and a fourth optical signal. Finally, the OPU can amplify and superimpose the third optical signal and the fourth optical signal to obtain a computing result of the digital signal.

Description

一种光计算系统及光信号处理方法An optical computing system and optical signal processing method 技术领域Technical field
本申请涉及光通信领域,尤其涉及一种光计算系统及光信号处理方法。The present application relates to the field of optical communications, and in particular, to an optical computing system and an optical signal processing method.
背景技术Background technique
光子计算芯片,也可以称为光计算单元(optical process unit,OPU),OPU以光信号作为数据的载体,故OPU可通过对光信号进行运算,从而实现对数据的处理。基于OPU所搭建的光计算系统,由于其具有高速并行、低功耗等优势,被认为是人工智能、移动通信等需实现大数据处理的各个领域中最具有应用前景的方案。Photon computing chip can also be called optical processing unit (OPU). OPU uses optical signals as the carrier of data, so OPU can process data by performing operations on optical signals. The optical computing system based on OPU is considered to be the most promising solution in various fields such as artificial intelligence and mobile communications that require big data processing due to its advantages such as high-speed parallelism and low power consumption.
目前,光计算系统可包含模数转换器(digital to analog converter,DAC),电光转换器(electro-optical conversion,E/O),OPU,光电转换器(optical-electro conversion,O/E)和数模转换器(analog to digital converter,ADC)。在DAC接收到待运算的数字信号后,可将其转换为模拟信号,并发送至E/O。接着,E/O可将该模拟信号转换为光信号,并发送至OPU。然后,OPU可对光信号进行运算,得到光领域中该数字信号的计算结果。最后,可通过O/E和ADC,将光领域中该数字信号的计算结果,转换为电领域中该数字信号的计算结果,至此,则完成了该数字信号的光计算。Currently, optical computing systems can include analog-to-analog converter (DAC), electro-optical conversion (E/O), OPU, optical-electro conversion (O/E) and Analog to digital converter (ADC). After the DAC receives the digital signal to be processed, it can be converted into an analog signal and sent to the E/O. The E/O can then convert the analog signal into an optical signal and send it to the OPU. Then, the OPU can perform operations on the optical signal to obtain the calculation result of the digital signal in the optical field. Finally, the calculation result of the digital signal in the optical field can be converted into the calculation result of the digital signal in the electrical field through O/E and ADC. At this point, the optical calculation of the digital signal is completed.
然而,DAC受限于自身的设计工艺和材料,在数字信号的处理精度上不高于4bit(4位),导致目前的光计算系统无法实现8bit(8位)及以上的数字信号的光运算。However, the DAC is limited by its own design process and materials, and its digital signal processing accuracy is no higher than 4 bits (4 bits). As a result, the current optical computing system cannot realize optical operations of digital signals of 8 bits (8 bits) and above. .
发明内容Contents of the invention
本申请实施例提供了一种光计算系统及光信号处理方法,通过多个DAC协同完成高位的数字信号的数模转换,从而令整个光计算系统可实现8位及8位以上的数字信号的光运算。Embodiments of the present application provide an optical computing system and an optical signal processing method that use multiple DACs to collaboratively complete digital-to-analog conversion of high-bit digital signals, so that the entire optical computing system can achieve digital signal conversion of 8-bit or more. Light operations.
本申请实施例的第一方面提供了一种光计算系统,该光计算系统包括:多个DAC和OPU,每个DAC的输入端和系统外的电处理器的输出端连接,每个DAC的输出端和OPU的输入端连接。The first aspect of the embodiment of the present application provides an optical computing system. The optical computing system includes: multiple DACs and OPUs. The input end of each DAC is connected to the output end of an electric processor outside the system. The input end of each DAC is The output terminal is connected to the input terminal of the OPU.
当电处理器对外输出待运算的数字信号时,由于该数字信号可按位进行拆分,故可将该数字信号拆分成多个子数字信号。在这多个子数字信号中,每一个子数字信号对应于该数字信号的至少一位,故这多个子数字信号按顺序进行拼接后,可组成该数字信号,例如,设存在表示409的数字信号X,数字信号X为110011001,由于数字信号X可拆分成子数字信号X1,子数字信号X2和子数字信号X3(子数字信号X1为110,子数字信号X2为011,子数字信号X3为001)。When the electronic processor outputs a digital signal to be operated, since the digital signal can be split by bits, the digital signal can be split into multiple sub-digital signals. Among the multiple sub-digital signals, each sub-digital signal corresponds to at least one bit of the digital signal. Therefore, after the multiple sub-digital signals are spliced in order, the digital signal can be composed. For example, suppose there is a digital signal representing 409 X, the digital signal X is 110011001. Since the digital signal .
如此一来,电处理器可将该数字信号以多个子数字信号的形式,分别发送至多个DAC。需要说明的是,第一DAC和第二DAC为这多个DAC中的其中两个DAC,那么第一DAC可接收到对应于该数字信号的第一有效位的第一子数字信号(第一子数字信号为前述多个子数字信号中的其中一个),第二DAC可接收到对应于该数字信号的第二有效位的第二子数字信 号(第二子数字信号为前述多个子数字信号中的另一个)。In this way, the electronic processor can send the digital signal to multiple DACs in the form of multiple sub-digital signals. It should be noted that the first DAC and the second DAC are two of the plurality of DACs, then the first DAC can receive the first sub-digital signal (the first sub-digital signal) corresponding to the first valid bit of the digital signal. The sub-digital signal is one of the aforementioned plurality of sub-digital signals), and the second DAC can receive the second sub-digital signal corresponding to the second effective bit of the digital signal (the second sub-digital signal is one of the aforementioned plurality of sub-digital signals). of another).
那么,第一DAC可将其接收到的第一子数字信号进行数模转换,从而得到第一模拟信号,相当于第一DAC将数字信号的第一有效位转换为第一模拟信号,并发送至OPU。同样地,第二DAC可将其接收到的第二子数字信号进行数模转换,从而得到第二模拟信号,相当于第二DAC将数字信号的第二有效位转换为第二模拟信号,并发送至OPU。Then, the first DAC can perform digital-to-analog conversion on the first sub-digital signal it receives to obtain the first analog signal, which is equivalent to the first DAC converting the first effective bit of the digital signal into the first analog signal and sending to OPU. Similarly, the second DAC can perform digital-to-analog conversion on the second sub-digital signal it receives to obtain a second analog signal, which is equivalent to the second DAC converting the second effective bit of the digital signal into a second analog signal, and Send to OPU.
接收到第一模拟信号和第二模拟信号后,OPU可对第一模拟信号进行电光转换,得到第一光信号,并对第二模拟信号进行电光转换,得到第二光信号。接着,OPU基于第一光信号进行运算,得到第三光信号,并基于第二光信号进行运算,得到第四光信号。最后,OPU可对第三光信号和第四光信号进行放大并叠加,得到该数字信号的计算结果。After receiving the first analog signal and the second analog signal, the OPU can perform electro-optical conversion on the first analog signal to obtain the first optical signal, and perform electro-optical conversion on the second analog signal to obtain the second optical signal. Then, the OPU performs calculations based on the first optical signal to obtain a third optical signal, and performs calculations based on the second optical signal to obtain a fourth optical signal. Finally, the OPU can amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal.
上述光计算系统包含第一DAC、第二DAC和OPU,其中,在第一DAC和第二DAC协同接收来自电处理器的数字信号后,第一DAC可将数字信号的第一有效位转换为第一模拟信号,第二DAC可将数字信号的第二有效位转换为第二模拟信号。接着,OPU可将第一模拟信号转换为第一光信号,将第二模拟信号转换为第二光信号,并对第一光信号和第二光信号分别进行运算,得到第三光信号和第四光信号。最后,OPU可对第三光信号和第四光信号进行放大并叠加,得到数字信号的计算结果。前述过程中,由于DAC的精度通常为4位,若数字信号的位数大于4位,可将数字信号被拆分成多个部分,并被多个DAC进行接收以实现数模转换。如此一来,即使每个DAC本身的精度有限,多个DAC也可协同完成高位的数字信号的数模转换,从而令整个光计算系统可实现8位及以上的数字信号的光运算。The above optical computing system includes a first DAC, a second DAC and an OPU. After the first DAC and the second DAC cooperate to receive the digital signal from the electrical processor, the first DAC can convert the first effective bit of the digital signal into The first analog signal, the second DAC can convert the second significant bit of the digital signal into a second analog signal. Then, the OPU can convert the first analog signal into a first optical signal, convert the second analog signal into a second optical signal, and perform operations on the first optical signal and the second optical signal respectively to obtain the third optical signal and the third optical signal. Four light signals. Finally, the OPU can amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal. In the aforementioned process, since the accuracy of the DAC is usually 4 bits, if the number of digital signals is greater than 4 bits, the digital signal can be split into multiple parts and received by multiple DACs to achieve digital-to-analog conversion. In this way, even if the accuracy of each DAC itself is limited, multiple DACs can cooperate to complete the digital-to-analog conversion of high-bit digital signals, so that the entire optical computing system can realize optical operations of 8-bit and above digital signals.
在一种可能的实现方式中,第一DAC的精度和第二DAC的精度为d位,数字信号包含r位,第一有效位为数字信号的第(i-1)*d+1位至第i*d位,第二有效位为数字信号的第(j-1)*d+1位至第j*d位,其中,r=h*d,r、h和d均为大于零的整数,i=1,…,h,j=1,…,h,i≠j。前述实现方式中,当该数字信号的位数可被DAC的精度(d位)整除时,第一有效位和第二有效位均为d位,第一有效位为该数字信号的第(i-1)*d+1位至第i*d位,第二有效位为该数字信号的第(j-1)*d+1位至第j*d位,例如,第一有效位为该数字信号的第1位至第d位,第二有效位为该数字信号的第d+1位至第2d位,又如,第一有效位为该数字信号的第(h-2)*d+1位至第(h-1)*d位,第二有效位为该数字信号的第(h-1)*d+1位至第h*d位等等。In a possible implementation, the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, and the first effective bit is the (i-1)*d+1th bit to The i*d bit, the second significant bit is the (j-1)*d+1 to j*d bit of the digital signal, where r=h*d, r, h and d are all greater than zero Integer, i=1,…,h,j=1,…,h,i≠j. In the aforementioned implementation, when the number of bits of the digital signal is divisible by the accuracy of the DAC (d bits), the first significant bit and the second significant bit are both d bits, and the first significant bit is the (i-th) of the digital signal. -1)*d+1 to the i*d bit, the second significant bit is the (j-1)*d+1 to j*d bit of the digital signal, for example, the first significant bit is The 1st to dth bits of the digital signal, the second significant bit is the d+1th to 2dth bit of the digital signal, and for example, the first significant bit is the (h-2)*dth bit of the digital signal +1 bit to the (h-1)*d bit, the second significant bit is the (h-1)*d+1 to h*d bit of the digital signal, and so on.
在一种可能的实现方式中,第一DAC的精度和第二DAC的精度为d位,数字信号包含r位,第一有效位为数字信号的第(i-1)*d+1位至第i*d位,第二有效位为数字信号的第h*d+1位至第r位,其中,r=h*d+v,r、h、d和v均为大于零的整数,i=1,…,h。前述实现方式中,当该数字信号的位数不可被DAC的精度(d位)整除时,第一有效位为d位,而第二有效位为v位,第一有效位为该数字信号的第(i-1)*d+1位至第i*d位,第二有效位为该数字信号的第h*d+1位至第r位,例如,第一有效位为该数字信号的第1位至第d位,第二有效位为该数字信号的h*d+1位至第r位,又如,第一有效位为该数字信号的第(h-2)*d+1位至第(h-1)*d位,第二有效位为该数字信号的h*d+1位至第r位等等。In a possible implementation, the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, and the first effective bit is the (i-1)*d+1th bit to The i*d bit, the second significant bit is the h*d+1 to r-th bit of the digital signal, where r=h*d+v, r, h, d and v are all integers greater than zero, i=1,…,h. In the aforementioned implementation, when the number of bits of the digital signal is not divisible by the accuracy of the DAC (d bits), the first effective bit is the d bit, and the second effective bit is the v bit, and the first effective bit is the digital signal. The (i-1)*d+1th bit to the i*dth bit, the second significant bit is the h*d+1th to r-th bit of the digital signal, for example, the first significant bit is the digital signal's The 1st to dth bits, the second significant bits are the h*d+1 to rth bits of the digital signal. Another example, the first significant bit is the (h-2)*d+1th bit of the digital signal. bit to the (h-1)*d bit, the second significant bit is the h*d+1 bit to the r-th bit of the digital signal, and so on.
在一种可能的实现方式中,第三光信号被放大的倍数大于或等于2的(i-1)*d次方,第四光信号被放大的倍数大于或等于2的(j-1)*d次方。前述实现方式中,由于第三光 信号是基于第一子数字信号生成的,且第一子数字信号对应于数字信号的第一有效位,即数字信号的第(i-1)*d+1位至第i*d位,故第三光信号需要被放大的倍数大于或等于2的(i-1)*d次方。同样地,由于第四光信号是基于第二子数字信号生成的,且第二子数字信号对应于数字信号的第二有效位,即数字信号的第(j-1)*d+1位至第j*d位,故第四光信号被放大的倍数大于或等于2的(j-1)*d次方。In a possible implementation, the third optical signal is amplified by a factor greater than or equal to 2 to the power of (i-1)*d, and the fourth optical signal is amplified by a factor greater than or equal to 2(j-1) *d power. In the aforementioned implementation, since the third optical signal is generated based on the first sub-digital signal, and the first sub-digital signal corresponds to the first effective bit of the digital signal, that is, the (i-1)*d+1th bit of the digital signal bit to the i*dth bit, so the third optical signal needs to be amplified by a factor greater than or equal to 2 to the (i-1)*d power. Similarly, since the fourth optical signal is generated based on the second sub-digital signal, and the second sub-digital signal corresponds to the second effective bit of the digital signal, that is, the (j-1)*d+1th bit to The j*dth bit, so the amplification factor of the fourth optical signal is greater than or equal to 2 to the (j-1)*d power.
在一种可能的实现方式中,第三光信号被放大的倍数大于或等于2的(i-1)*d次方,第四光信号被放大的倍数大于或等于2的h*d次方。前述实现方式中,由于第三光信号是基于第一子数字信号生成的,且第一子数字信号对应于数字信号的第一有效位,即数字信号的第(i-1)*d+1位至第i*d位,故第三光信号需要被放大的倍数大于或等于2的(i-1)*d次方。同样地,由于第四光信号是基于第二子数字信号生成的,且第二子数字信号对应于数字信号的第二有效位,即数字信号的第h*d+1位至第r位,故第四光信号被放大的倍数大于或等于2的h*d次方。In a possible implementation, the third optical signal is amplified by a factor greater than or equal to 2 to the (i-1)*d power, and the fourth optical signal is amplified by a factor greater than or equal to 2 h*d power. . In the aforementioned implementation, since the third optical signal is generated based on the first sub-digital signal, and the first sub-digital signal corresponds to the first effective bit of the digital signal, that is, the (i-1)*d+1th bit of the digital signal bit to the i*dth bit, so the third optical signal needs to be amplified by a factor greater than or equal to 2 to the (i-1)*d power. Similarly, since the fourth optical signal is generated based on the second sub-digital signal, and the second sub-digital signal corresponds to the second effective bit of the digital signal, that is, the h*d+1th to rth bits of the digital signal, Therefore, the amplification factor of the fourth optical signal is greater than or equal to 2 h*d power.
在一种可能的实现方式中,OPU包括第一调制器、第二调制器、放大器和加法器;第一调制器,用于将第一模拟信号转换为第一光信号,并基于第一光信号进行运算,得到第三光信号;第二调制器,用于将第二模拟信号装换为第二光信号,并基于第二光信号进行运算,得到第四光信号;放大器,用于对第三光信号进行放大,得到第五光信号;对第四光信号进行放大,得到第六光信号;加法器,用于将第五光信号和第六光信号进行叠加,得到数字信号的计算结果。前述实现方式中,OPU中的调制器的精度通常也为4位,通过在OPU中设置多个调制器,即使每个调制器本身的精度有限,同样也可实现高位的数字信号的运算。如此一来,本申请实施例提供的光计算系统通过部署低精度的器件,可实现高精度的数字信号的光运算,有利于提高光计算的计算性能,相比电计算无性能损失。In a possible implementation, the OPU includes a first modulator, a second modulator, an amplifier and an adder; the first modulator is used to convert the first analog signal into a first optical signal, and The signal is operated to obtain a third optical signal; the second modulator is used to convert the second analog signal into a second optical signal, and performs operations based on the second optical signal to obtain a fourth optical signal; the amplifier is used to The third optical signal is amplified to obtain the fifth optical signal; the fourth optical signal is amplified to obtain the sixth optical signal; the adder is used to superimpose the fifth optical signal and the sixth optical signal to obtain the calculation of the digital signal result. In the aforementioned implementation, the accuracy of the modulator in the OPU is usually 4 bits. By arranging multiple modulators in the OPU, even if the accuracy of each modulator itself is limited, high-bit digital signal operations can also be implemented. In this way, the optical computing system provided by the embodiments of the present application can implement high-precision optical computing of digital signals by deploying low-precision devices, which is beneficial to improving the computing performance of optical computing without any performance loss compared to electrical computing.
在一种可能的实现方式中,第一调制器和第二调制器为微环调制器、电吸收外调制器或马赫曾德尔干涉仪。In a possible implementation, the first modulator and the second modulator are microring modulators, electroabsorption external modulators or Mach-Zehnder interferometers.
在一种可能的实现方式中,前述的运算为矩阵乘法运算。In a possible implementation, the aforementioned operation is a matrix multiplication operation.
本申请实施例的第二方面提供了一种光信号处理方法,该方法通过光计算系统实现,系统包括第一DAC、第二DAC和OPU,该方法包括:通过第一DAC将数字信号的第一有效位转换为第一模拟信号;通过第二DAC将数字信号的第二有效位转换为第二模拟信号;通过OPU基于来源于第一模拟信号的第一光信号进行运算,得到第三光信号;通过OPU基于来源于第二模拟信号的第二光信号进行运算,得到第四光信号;通过OPU对第三光信号和第四光信号进行放大并叠加,得到数字信号的计算结果。A second aspect of the embodiment of the present application provides an optical signal processing method. The method is implemented through an optical computing system. The system includes a first DAC, a second DAC, and an OPU. The method includes: processing the third portion of the digital signal through the first DAC. One valid bit is converted into a first analog signal; the second valid bit of the digital signal is converted into a second analog signal through the second DAC; the OPU performs an operation based on the first optical signal derived from the first analog signal to obtain a third optical signal signal; the OPU performs calculations based on the second optical signal derived from the second analog signal to obtain a fourth optical signal; the OPU amplifies and superimposes the third optical signal and the fourth optical signal to obtain a calculation result of the digital signal.
用于实现上述方法的光计算系统包含第一DAC、第二DAC和OPU,其中,在第一DAC和第二DAC协同接收来自电处理器的数字信号后,第一DAC可将数字信号的第一有效位转换为第一模拟信号,第二DAC可将数字信号的第二有效位转换为第二模拟信号。接着,OPU可将第一模拟信号转换为第一光信号,将第二模拟信号转换为第二光信号,并对第一光信号和第二光信号分别进行运算,得到第三光信号和第四光信号。最后,OPU可对第三光信号和第四光信号进行放大并叠加,得到数字信号的计算结果。前述过程中,由于DAC的精度通常为4位,若数字信号的位数大于4位,可将数字信号被拆分成多个部分,并被多个 DAC进行接收以实现数模转换。如此一来,即使每个DAC本身的精度有限,多个DAC也可协同完成高位的数字信号的数模转换,从而令整个光计算系统可实现8位及以上的数字信号的光运算。The optical computing system used to implement the above method includes a first DAC, a second DAC and an OPU. After the first DAC and the second DAC cooperate to receive the digital signal from the electrical processor, the first DAC can convert the third part of the digital signal. A valid bit is converted into a first analog signal, and the second DAC can convert a second valid bit of the digital signal into a second analog signal. Then, the OPU can convert the first analog signal into a first optical signal, convert the second analog signal into a second optical signal, and perform operations on the first optical signal and the second optical signal respectively to obtain the third optical signal and the third optical signal. Four light signals. Finally, the OPU can amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal. In the aforementioned process, since the accuracy of the DAC is usually 4 bits, if the number of digital signals is greater than 4 bits, the digital signal can be split into multiple parts and received by multiple DACs to achieve digital-to-analog conversion. In this way, even if the accuracy of each DAC itself is limited, multiple DACs can cooperate to complete the digital-to-analog conversion of high-bit digital signals, so that the entire optical computing system can realize optical operations of 8-bit and above digital signals.
在一种可能的实现方式中,第一DAC的精度和第二DAC的精度为d位,数字信号包含r位,第一有效位为数字信号的第(i-1)*d+1位至第i*d位,第二有效位为数字信号的第(j-1)*d+1位至第j*d位,其中,r=h*d,r、h和d均为大于零的整数,i=1,…,h,j=1,…,h,i≠j。In a possible implementation, the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, and the first effective bit is the (i-1)*d+1th bit to The i*d bit, the second significant bit is the (j-1)*d+1 to j*d bit of the digital signal, where r=h*d, r, h and d are all greater than zero Integer, i=1,…,h,j=1,…,h,i≠j.
在一种可能的实现方式中,第一DAC的精度和第二DAC的精度为d位,数字信号包含r位,第一有效位为数字信号的第(i-1)*d+1位至第i*d位,第二有效位为数字信号的第h*d+1位至第r位,其中,r=h*d+v,r、h、d和v均为大于零的整数,i=1,…,h。In a possible implementation, the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, and the first effective bit is the (i-1)*d+1th bit to The i*d bit, the second significant bit is the h*d+1 to r-th bit of the digital signal, where r=h*d+v, r, h, d and v are all integers greater than zero, i=1,…,h.
在一种可能的实现方式中,第三光信号被放大的倍数大于或等于2的(i-1)*d次方,第四光信号被放大的倍数大于或等于2的(j-1)*d次方。In a possible implementation, the third optical signal is amplified by a factor greater than or equal to 2 to the power of (i-1)*d, and the fourth optical signal is amplified by a factor greater than or equal to 2(j-1) *d power.
在一种可能的实现方式中,第三光信号被放大的倍数大于或等于2的(i-1)*d次方,第四光信号被放大的倍数大于或等于2的h*d次方。In a possible implementation, the third optical signal is amplified by a factor greater than or equal to 2 to the (i-1)*d power, and the fourth optical signal is amplified by a factor greater than or equal to 2 h*d power. .
在一种可能的实现方式中,OPU包括第一调制器、第二调制器、放大器和加法器,OPU所执行的步骤包括:通过第一调制器将第一模拟信号转换为第一光信号,并基于第一光信号进行运算,得到第三光信号;通过第二调制器将第二模拟信号装换为第二光信号,并基于第二光信号进行运算,得到第四光信号;通过放大器对第三光信号进行放大,得到第五光信号;对第四光信号进行放大,得到第六光信号;通过加法器将第五光信号和第六光信号进行叠加,得到数字信号的计算结果。In a possible implementation, the OPU includes a first modulator, a second modulator, an amplifier and an adder, and the steps performed by the OPU include: converting the first analog signal into a first optical signal through the first modulator, and perform operations based on the first optical signal to obtain a third optical signal; convert the second analog signal into a second optical signal through the second modulator, and perform operations based on the second optical signal to obtain a fourth optical signal; through the amplifier The third optical signal is amplified to obtain the fifth optical signal; the fourth optical signal is amplified to obtain the sixth optical signal; the fifth optical signal and the sixth optical signal are superimposed by an adder to obtain the calculation result of the digital signal .
在一种可能的实现方式中,第一调制器和第二调制器为微环调制器、电吸收外调制器或马赫曾德尔干涉仪。In a possible implementation, the first modulator and the second modulator are microring modulators, electroabsorption external modulators or Mach-Zehnder interferometers.
在一种可能的实现方式中,前述的运算为矩阵乘法运算。In a possible implementation, the aforementioned operation is a matrix multiplication operation.
本申请实施例提供的光计算系统包含第一DAC、第二DAC和OPU,其中,在第一DAC和第二DAC协同接收来自电处理器的数字信号后,第一DAC可将数字信号的第一有效位转换为第一模拟信号,第二DAC可将数字信号的第二有效位转换为第二模拟信号。接着,OPU可将第一模拟信号转换为第一光信号,将第二模拟信号转换为第二光信号,并对第一光信号和第二光信号分别进行运算,得到第三光信号和第四光信号。最后,OPU可对第三光信号和第四光信号进行放大并叠加,得到数字信号的计算结果。前述过程中,由于DAC的精度通常为4位,若数字信号的位数大于4位,可将数字信号被拆分成多个部分,并被多个DAC进行接收以实现数模转换。如此一来,即使每个DAC本身的精度有限,多个DAC也可协同完成高位的数字信号的数模转换,从而令整个光计算系统可实现8位及以上的数字信号的光运算。The optical computing system provided by the embodiment of the present application includes a first DAC, a second DAC and an OPU. After the first DAC and the second DAC cooperate to receive the digital signal from the electrical processor, the first DAC can convert the third part of the digital signal. A valid bit is converted into a first analog signal, and the second DAC can convert a second valid bit of the digital signal into a second analog signal. Then, the OPU can convert the first analog signal into a first optical signal, convert the second analog signal into a second optical signal, and perform operations on the first optical signal and the second optical signal respectively to obtain the third optical signal and the third optical signal. Four light signals. Finally, the OPU can amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal. In the aforementioned process, since the accuracy of the DAC is usually 4 bits, if the number of digital signals is greater than 4 bits, the digital signal can be split into multiple parts and received by multiple DACs to achieve digital-to-analog conversion. In this way, even if the accuracy of each DAC itself is limited, multiple DACs can cooperate to complete the digital-to-analog conversion of high-bit digital signals, so that the entire optical computing system can realize optical operations of 8-bit and above digital signals.
附图说明Description of the drawings
图1为相关技术中的调制器的一个示意图;Figure 1 is a schematic diagram of a modulator in the related art;
图2为本申请实施例提供的光计算系统的一个结构示意图;Figure 2 is a schematic structural diagram of an optical computing system provided by an embodiment of the present application;
图3为本申请实施例提供的光计算系统的另一个结构示意图;Figure 3 is another structural schematic diagram of an optical computing system provided by an embodiment of the present application;
图4为本申请实施例提供的光计算系统的一个应用例示意图;Figure 4 is a schematic diagram of an application example of the optical computing system provided by the embodiment of the present application;
图5为本申请实施例提供的光计算系统的另一应用例示意图;Figure 5 is a schematic diagram of another application example of the optical computing system provided by the embodiment of the present application;
图6为本申请实施例提供的光信号处理方法的一个流程示意图。FIG. 6 is a schematic flowchart of an optical signal processing method provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行详细描述。The technical solutions in the embodiments of the present application will be described in detail below with reference to the drawings in the embodiments of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,这仅仅是描述本申请的实施例中对相同属性的对象在描述时所采用的区分方式。此外,术语“包括”和“具有”并他们的任何变形,意图在于覆盖不排他的包含,以便包含一系列单元的过程、方法、系统、产品或设备不必限于那些单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它单元。The terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances, and are merely a way of distinguishing objects with the same attributes in describing the embodiments of the present application. Furthermore, the terms "include" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, such that a process, method, system, product or apparatus comprising a series of elements need not be limited to those elements, but may include any other elements specifically listed or inherent to such processes, methods, products or equipment.
光子计算芯片,也可以称为OPU,OPU以光信号作为数据的载体,故OPU可通过对光信号进行运算,从而实现对数据的处理。基于OPU所搭建的光计算系统,由于其具有高速并行、低功耗等优势,被认为是人工智能、移动通信等需实现大数据处理的各个领域中最具有应用前景的方案。Photon computing chip can also be called OPU. OPU uses optical signals as the carrier of data, so OPU can process data by performing operations on optical signals. The optical computing system based on OPU is considered to be the most promising solution in various fields such as artificial intelligence and mobile communications that require big data processing due to its advantages such as high-speed parallelism and low power consumption.
目前,光计算系统可包含DAC,E/O,OPU,O/E和ADC等器件,需要说明的是,当前的E/O和O/E可集成在OPU中,例如,OPU可以呈现为一个调制器(例如,该调制器可以包含微环调制器和光电探测器,微环调制器的输出端和光电探测器的输入端连接),调制器既可以实现电光转换功能和光电转换功能,也可以实现光运算功能。具体地,在DAC接收到待运算的数字信号后,可将其转换为模拟信号,并发送至调制器。接着,调制器可将该模拟信号转换为光信号,并对该光信号进行运算,得到光领域中该数字信号的计算结果。然后,调制器可将光领域中该数字信号的计算结果,转换为电领域中该数字信号的计算结果,并发送至ADC(ADC可对该结果进行模数转换,并输出到后续的数字运算单元,以实现进一步的信号处理)。至此,则完成了该数字信号的光计算。Currently, the optical computing system can include devices such as DAC, E/O, OPU, O/E and ADC. It should be noted that the current E/O and O/E can be integrated in the OPU. For example, the OPU can be presented as a Modulator (for example, the modulator can include a microring modulator and a photodetector, and the output end of the microring modulator is connected to the input end of the photodetector). The modulator can realize both the electro-optical conversion function and the photoelectric conversion function. Can realize light computing function. Specifically, after the DAC receives the digital signal to be operated, it can be converted into an analog signal and sent to the modulator. Then, the modulator can convert the analog signal into an optical signal, and perform calculations on the optical signal to obtain the calculation result of the digital signal in the optical field. Then, the modulator can convert the calculation result of the digital signal in the optical domain into the calculation result of the digital signal in the electrical domain, and send it to the ADC (the ADC can perform analog-to-digital conversion on the result and output it to subsequent digital operations. unit for further signal processing). At this point, the optical calculation of the digital signal is completed.
下文结合一个例子对调制器的工作流程进行简单的介绍。例如,设需要实现两个4×4矩阵的乘法运算,即矩阵A乘以矩阵B。矩阵A和矩阵B中元素的精度都是4位(4bit),即矩阵A和矩阵B中每个元素均是4位的二进制数,故可以用4位的数字信号呈现。矩阵A和矩阵B可如公式(1)所示:The following is a brief introduction to the modulator workflow with an example. For example, suppose you need to implement the multiplication operation of two 4×4 matrices, that is, matrix A multiplied by matrix B. The precision of the elements in matrix A and matrix B is 4 bits (4bit), that is, each element in matrix A and matrix B is a 4-bit binary number, so it can be presented as a 4-bit digital signal. Matrix A and matrix B can be expressed as formula (1):
Figure PCTCN2022079960-appb-000001
Figure PCTCN2022079960-appb-000001
Figure PCTCN2022079960-appb-000002
Figure PCTCN2022079960-appb-000002
那么,可通过如图1所示(图1为相关技术中的调制器的一个示意图,需要说明的是,元素的上标“4”标识该元素的精度为4位)的微环调制器实现矩阵A和矩阵B的乘法运算。具体地,在当前时刻,可向左侧的四个DAC分别输入表示数值1的数字信号a 11、表示数值2的数字信号a 12、表示数值3的数字信号a 13和表示数值4的数字信号a 14,且这四个数字信号均为4位(4bit)的数字信号。接着,四个DAC可分别将这四个数字信号转换为与a 11对应的模拟信号、与a 12对应的模拟信号、与a 13对应的模拟信号和与a 14对应的模拟信号。然后,这四个模拟信号可分别调制在具备相应波长的光信号上,得到与a 11对应的光信号(该光信号的波长为λ1)、与a 12对应的光信号(该光信号的波长为λ2)、与a 13对应的光信号(该光信号的波长为λ3)和与a 14对应的光信号(该光信号的波长为λ4),且这四个光信号可分别输入至第一列的四个微环,分别输入至第二列的四个微环,分别输入至第三列的四个微环以及分别输入至第四列的四个微环。同样地,可向右侧第一列的四个DAC分别输入表示数值5的数字信号b 11、表示数值6的数字信号b 21、表示数值7的数字信号b 31和表示数值8的数字信号b 41,且这四个数字信号均为4位(4bit)的数字信号。接着,四个DAC可分别将这四个数字信号转换为与b 11对应的模拟信号、与b 21对应的模拟信号、与b 31对应的模拟信号和与b 41对应的模拟信号。然后,这四个模拟信号分别输入至第一列的四个微环,故与b 11对应的模拟信号可调制在与a 11的光信号上,得到与a 11×b 11对应的光信号,与b 21对应的模拟信号可调制在与a 12对应的光信号上,得到与a 12×b 21对应的光信号,与b 31对应的模拟信号可调制在与a 13对应的光信号上,得到与a 13×b 31对应的光信号,与b 41对应的模拟信号可调制在与a 14对应的光信号上,得到与a 14×b 41对应的光信号。经过累加这四个光信号,可得到与c 11对应的光信号,c 11=a 11×b 11+a 12×b 21+a 13×b 31+a 14×b 41。同理,还可得到与c 12对应的光信号,c 12=a 11×b 12+a 12×b 22+a 13×b 32+a 14×b 42,与c 12对应的光信号,c 13=a 11×b 13+a 12×b 23+a 13×b 33+a 14×b 43,以及与c 14对应的光信号,c 11=a 11×b 14+a 12×b 24+a 13×b 34+a 14×b 44Then, it can be realized by a micro-ring modulator as shown in Figure 1 (Figure 1 is a schematic diagram of a modulator in the related art. It should be noted that the superscript "4" of an element indicates that the precision of the element is 4 bits). Multiplication of matrix A and matrix B. Specifically, at the current moment, the digital signal a 11 representing the value 1, the digital signal a 12 representing the value 2, the digital signal a 13 representing the value 3 and the digital signal representing the value 4 can be input to the four DACs on the left respectively. a 14 , and these four digital signals are all 4-bit (4bit) digital signals. Then, the four DACs can respectively convert the four digital signals into analog signals corresponding to a 11 , an analog signal corresponding to a 12 , an analog signal corresponding to a 13 , and an analog signal corresponding to a 14 . Then, these four analog signals can be respectively modulated on optical signals with corresponding wavelengths to obtain an optical signal corresponding to a 11 (the wavelength of the optical signal is λ1), and an optical signal corresponding to a 12 (the wavelength of the optical signal is λ1). is λ2), the optical signal corresponding to a 13 (the wavelength of the optical signal is λ3) and the optical signal corresponding to a 14 (the wavelength of the optical signal is λ4), and these four optical signals can be input to the first The four microrings of the column are respectively input to the four microrings of the second column, the four microrings of the third column are respectively input, and the four microrings of the fourth column are respectively input. Similarly, the digital signal b 11 representing the value 5, the digital signal b 21 representing the value 6, the digital signal b 31 representing the value 7 and the digital signal b representing the value 8 can be respectively input to the four DACs in the first column on the right. 41 , and these four digital signals are all 4-bit (4bit) digital signals. Then, the four DACs can respectively convert the four digital signals into an analog signal corresponding to b 11 , an analog signal corresponding to b 21 , an analog signal corresponding to b 31 , and an analog signal corresponding to b 41 . Then, these four analog signals are input to the four microrings in the first column respectively, so the analog signal corresponding to b 11 can be modulated on the optical signal corresponding to a 11 to obtain the optical signal corresponding to a 11 × b 11 , The analog signal corresponding to b 21 can be modulated on the optical signal corresponding to a 12 to obtain an optical signal corresponding to a 12 × b 21. The analog signal corresponding to b 31 can be modulated on the optical signal corresponding to a 13 . An optical signal corresponding to a 13 × b 31 is obtained. The analog signal corresponding to b 41 can be modulated on the optical signal corresponding to a 14 to obtain an optical signal corresponding to a 14 × b 41 . By accumulating these four optical signals, the optical signal corresponding to c 11 can be obtained, c 11 =a 11 ×b 11 +a 12 ×b 21 +a 13 ×b 31 +a 14 ×b 41 . In the same way, the optical signal corresponding to c 12 can also be obtained, c 12 = a 11 × b 12 + a 12 × b 22 + a 13 × b 32 + a 14 × b 42 , and the optical signal corresponding to c 12 , c 13 =a 11 ×b 13 +a 12 ×b 23 +a 13 × b 33 + a 14 ×b 43 , and the optical signal corresponding to c 14 , c 11 =a 11 ×b 14 +a 12 ×b 24 + a 13 ×b 34 +a 14 ×b 44 .
下一时刻,左侧的四个DAC的输入修改为数字信号a 21、数字信号a 22、数字信号a 23和数字信号a 24,且这四个数字信号均为4位(4bit)的数字信号,右侧的16个DAC的输入保持不变,故可得到与c 21对应的光信号、与c 22对应的光信号、与c 23对应的光信号以及与c 24对应的光信号。以此类推,直至得到可与整个矩阵C对应的光信号,矩阵C如公式(2)所示: At the next moment, the inputs of the four DACs on the left are modified to digital signal a 21 , digital signal a 22 , digital signal a 23 and digital signal a 24 , and these four digital signals are all 4-bit (4bit) digital signals. , the inputs of the 16 DACs on the right remain unchanged, so the optical signal corresponding to c 21 , the optical signal corresponding to c 22 , the optical signal corresponding to c 23 and the optical signal corresponding to c 24 can be obtained. By analogy, until an optical signal corresponding to the entire matrix C is obtained, the matrix C is shown in formula (2):
Figure PCTCN2022079960-appb-000003
Figure PCTCN2022079960-appb-000003
当然,得到与整个矩阵C对应的光信号后,微环调制器所连接的光电探测器(图1中未示意光电探测器)还可将该光信号转换为与整个矩阵C对应的模拟信号,并输出至ADC,以实现后续的信号处理。至此,则微环调制器在光领域中,完成了矩阵A和矩阵B之间的矩阵乘法运算,即实现了两个矩阵之间的光运算。Of course, after obtaining the optical signal corresponding to the entire matrix C, the photodetector (not shown in Figure 1) connected to the microring modulator can also convert the optical signal into an analog signal corresponding to the entire matrix C. And output to ADC for subsequent signal processing. At this point, the microring modulator has completed the matrix multiplication operation between matrix A and matrix B in the optical field, that is, it has realized the optical operation between the two matrices.
然而,DAC和调制器受限于自身的设计工艺和材料,二者在信号的处理精度上不高于4位(例如,DAC仅能精准实现4位的数字信号的数模转换,调制器仅能精准实现4位的模拟信号的电光转换等等),导致目前的光计算系统无法实现8bit(8位)及以上的数字信号的光运算。However, DACs and modulators are limited by their own design processes and materials, and their signal processing accuracy is no higher than 4 bits (for example, DACs can only accurately achieve digital-to-analog conversion of 4-bit digital signals, and modulators can only accurately achieve digital-to-analog conversion of 4-bit digital signals. Can accurately realize electro-optical conversion of 4-bit analog signals, etc.), resulting in the current optical computing system being unable to realize optical operations of 8-bit (8-bit) and above digital signals.
为了解决上述问题,本申请实施例提供了一种新的光计算系统,如图2所示(图2为本申请实施例提供的光计算系统的一个结构示意图),该光计算系统包括:多个DAC和OPU,每个DAC的输入端和系统外的电处理器的输出端连接,每个DAC的输出端和OPU的输入端连接。In order to solve the above problems, embodiments of the present application provide a new optical computing system, as shown in Figure 2 (Fig. 2 is a structural schematic diagram of the optical computing system provided by the embodiment of the present application). The optical computing system includes: A DAC and an OPU, the input terminal of each DAC is connected to the output terminal of the electronic processor outside the system, and the output terminal of each DAC is connected to the input terminal of the OPU.
电处理器可输出表示某个数值的数字信号,该数字信号可被多个DAC协同接收。具体地,由于该数字信号包含多位(即该数字信号为多位的数字信号),故该数字信号可按位进行拆分,从而将该数字信号拆分成多个子数字信号。可见,在这多个子数字信号中,每一个子数字信号对应于该数字信号的至少一位,故这多个子数字信号按顺序进行拼接后,可组成该数字信号。如此一来,电处理器可将该数字信号以多个子数字信号的形式,分别发送至多个DAC,那么,这多个DAC接收到相应的子数字信号后,由于这多个DAC可视为一个整体,则相当于接收到了该数字信号。例如,设存在表示409的数字信号X,数字信号X为110011001,由于数字信号X可拆分成子数字信号X1,子数字信号X2和子数字信号X3(子数字信号X1为110,子数字信号X2为011,子数字信号X3为001),故电处理器可将子数字信号X1发送至DAC1,将子数字信号X2发送至DAC2,并将子数字信号X3发送至DAC3。如此一来,DAC1、DAC2和DAC3作为一个整体,相当于接收到了数字信号110011001。The electronic processor can output a digital signal representing a certain value, and the digital signal can be received by multiple DACs in cooperation. Specifically, since the digital signal contains multiple bits (that is, the digital signal is a multi-bit digital signal), the digital signal can be split by bits, thereby splitting the digital signal into multiple sub-digital signals. It can be seen that among the plurality of sub-digital signals, each sub-digital signal corresponds to at least one bit of the digital signal, so the plurality of sub-digital signals can be spliced in sequence to form the digital signal. In this way, the electronic processor can send the digital signal to multiple DACs in the form of multiple sub-digital signals. Then, after the multiple DACs receive the corresponding sub-digital signals, the multiple DACs can be regarded as one Overall, it is equivalent to receiving the digital signal. For example, suppose there is a digital signal X representing 409, and the digital signal X is 110011001. Since the digital signal 011, sub-digital signal X3 is 001), so the electronic processor can send sub-digital signal X1 to DAC1, sub-digital signal X2 to DAC2, and sub-digital signal X3 to DAC3. In this way, DAC1, DAC2 and DAC3 as a whole are equivalent to receiving the digital signal 110011001.
值得注意的是,在这多个子数字信号中,虽然每一个子数字信号对应于该数字信号的至少一位,但是大部分子数字信号所表示的数值,小于其所对应的该数字信号的位所表示的数值。依旧如上述例子,子数字信号X1对应于数字信号X的前三位“110”,但是子数字信号X1“110”所表示的数值为12,而数字信号X的前三位“110”所表示的数值为384。同理,子数字信号X2对应于数字信号X的中间三位“011”,但是子数字信号X2“011”所表示的数值为6,而数字信号X的中间三位“110”所表示的数值为24。It is worth noting that among these multiple sub-digital signals, although each sub-digital signal corresponds to at least one bit of the digital signal, the value represented by most of the sub-digital signals is smaller than the corresponding bit of the digital signal. the numerical value represented. Still as the above example, the sub-digital signal X1 corresponds to the first three digits of the digital signal X "110", but the value represented by the sub-digital signal The value is 384. In the same way, the sub-digital signal X2 corresponds to the middle three digits "011" of the digital signal X, but the value represented by the sub-digital signal is 24.
对于这多个DAC中的任意一个DAC,该DAC可将其接收到的子数字信号转换为模拟信号,并发送至OPU。这多个DAC中除了该DAC的其余DAC,也可执行类似的操作,故OPU可接收到多个模拟信号,并对这多个模拟信号分别进行电光转换,得到与这多个模拟信号一 一对应的多个待运算的光信号。然后,OPU再对这多个待运算的光信号分别进行运算,得到与这多个待运算的光信号一一对应的多个运算后的光信号。For any one of these multiple DACs, the DAC can convert the sub-digital signal it receives into an analog signal and send it to the OPU. Among these multiple DACs, other DACs besides this DAC can also perform similar operations. Therefore, the OPU can receive multiple analog signals, and perform electro-optical conversion on the multiple analog signals respectively, and obtain the analog signals one by one. Corresponding multiple optical signals to be calculated. Then, the OPU performs calculations on the plurality of optical signals to be calculated respectively, and obtains a plurality of calculated optical signals that correspond one-to-one to the multiple optical signals to be calculated.
需要说明的是,在多个待运算的光信号中,虽然每一个待运算的光信号对应于该数字信号的至少一位,但是大部分待运算的光信号所表示的数值,小于或等于其所对应的该数字信号的位所表示的数值(因为多个待运算的光信号与多个子数字信号是一一对应的),那么,与多个待运算的光信号一一对应的多个运算后的光信号,并不可以直接进行拼接作为该数字信号的计算结果(因为大部分运算后的光信号所表示的数值,均是偏小的),OPU需要对这多个运算后的光信号进行放大并叠加,才可作为该数字信号的计算结果。It should be noted that among the multiple optical signals to be calculated, although each optical signal to be calculated corresponds to at least one bit of the digital signal, the values represented by most of the optical signals to be calculated are less than or equal to it. The value represented by the corresponding bit of the digital signal (because the multiple optical signals to be operated on are in one-to-one correspondence with the multiple sub-digital signals), then, the multiple operations corresponding to the multiple optical signals to be operated on are one-to-one. The final optical signal cannot be directly spliced as the calculation result of the digital signal (because most of the calculated optical signals represent relatively small values). The OPU needs to process the multiple calculated optical signals. Amplification and superposition can be used as the calculation result of the digital signal.
为了进一步理解上述光计算系统的工作过程,下文以光计算系统实现的运算为矩阵乘法运算做进一步的介绍,需要说明的是,光计算系统所能实现的运算,并不限制在矩阵乘法运算,下文仅以矩阵乘法运算作示意性说明,并不对光计算系统所能实现的运算的类型构成限制。如图3所示(图3为本申请实施例提供的光计算系统的另一个结构示意图),光计算系统所需实现的计算任务为实现矩阵A和矩阵B之间的乘法运算,设矩阵A为m×n的矩阵,矩阵B为n×k的矩阵,两个矩阵如公式(3)所示:In order to further understand the working process of the above-mentioned optical computing system, the following is a further introduction to the matrix multiplication operation implemented by the optical computing system. It should be noted that the operations that the optical computing system can achieve are not limited to matrix multiplication operations. The following only uses matrix multiplication operations as a schematic explanation, and does not limit the types of operations that can be achieved by the optical computing system. As shown in Figure 3 (Figure 3 is another structural schematic diagram of the optical computing system provided by the embodiment of the present application), the computing task required by the optical computing system is to implement the multiplication operation between matrix A and matrix B. Suppose matrix A is an m×n matrix, and matrix B is an n×k matrix. The two matrices are as shown in formula (3):
Figure PCTCN2022079960-appb-000004
Figure PCTCN2022079960-appb-000004
光计算系统中的DAC的精度为d位,矩阵A中元素的精度为r1位,矩阵B中元素的精度为r2位,r1=h1*d+v1,r2=h2*d+v2,其中,r1、r2、h1、h2、v1、v2和d均为大于0的整数。由于r1>d,r2>d,故对于矩阵A和矩阵B的元素满足一定的关系,以矩阵A中的元素a 11包含r1位,a 11的第1位至第d位为a 0 11,第d+1位至第2d位为a 1 11,…,第(h1-1)*d+1位至第h1*d位为a h1-1 11,第h1*d+1位至第r1位为a h1 11。那么,a 11=a h1 11*2 h1*d+a h1-1 11*2 (h1-1)*d+…+a 1 11*2+a 0 11。例如,设d=4,表示153的数字信号为10011001,10011001=1001*2 4+1001。 The accuracy of the DAC in the optical computing system is d bits, the accuracy of the elements in matrix A is r1 bits, and the accuracy of the elements in matrix B is r2 bits, r1=h1*d+v1, r2=h2*d+v2, where, r1, r2, h1, h2, v1, v2 and d are all integers greater than 0. Since r1>d, r2>d, the elements of matrix A and matrix B satisfy a certain relationship. The element a 11 in matrix A contains bit r1, and the 1st to dth bits of a 11 are a 0 11 . The d+1st to 2dth digits are a 1 11 ,…, the (h1-1)*d+1st to h1*dth digits are a h1-1 11 , the h1*d+1 to r1th digits The bit is a h1 11 . Then, a 11 =a h1 11 *2 h1*d +a h1-1 11 *2 (h1-1)*d +…+a 1 11 *2+a 0 11 . For example, assuming d=4, the digital signal representing 153 is 10011001,10011001=1001*2 4 +1001.
那么,可对矩阵A和矩阵B在进行矩阵乘法时,进行如公式(4)的分解:Then, matrix A and matrix B can be decomposed as formula (4) when performing matrix multiplication:
Figure PCTCN2022079960-appb-000005
Figure PCTCN2022079960-appb-000005
上式中,2 h1*d+h2*d所乘的矩阵为: In the above formula, the matrix multiplied by 2 h1*d+h2*d is:
Figure PCTCN2022079960-appb-000006
Figure PCTCN2022079960-appb-000006
2 0所乘的矩阵为: The matrix multiplied by 2 0 is:
Figure PCTCN2022079960-appb-000007
Figure PCTCN2022079960-appb-000007
公式(4)所得的结果中,2的其余次幂所乘的矩阵,也可参考公式(5)和公式(6),此处不再赘述。基于公式(4)至公式(6)可知,剔除2的n次幂这一项,矩阵A可被分解成h1+1个m×n的矩阵,矩阵B可被分解成h2+1个n×k的矩阵,矩阵A乘以矩阵B的结果包含(h1+1)×(h2+1)个m×k的矩阵。In the result obtained by formula (4), the matrices multiplied by the remaining powers of 2 can also be referred to formula (5) and formula (6), which will not be described again here. Based on formula (4) to formula (6), it can be seen that by excluding the nth power of 2, matrix A can be decomposed into h1+1 m×n matrices, and matrix B can be decomposed into h2+1 n× The matrix of k, the result of multiplying matrix A by matrix B contains (h1+1)×(h2+1) m×k matrices.
基于上述分解的过程可知,电处理器在输出数字信号a 11时,可设置h1+1个DAC来接收,其中,第1个DAC接收数字信号a 0 11,(数字信号a 0 11对应于数字信号a 11的第1位至第d位,即第1个DAC用于将数字信号a 11的第1位至第d位转换为相应的模拟信号),第2个DAC接收数字信号a 1 11,…,第h1个DAC接收数字信号a h1-1,第h1+1个DAC接收数字信号a h1 11(数字信号a h1 11对应于数字信号a 11的第h1*d+1位至第r1位,即第h1+1个DAC用于将数字信号a 11的第h1*d+1位至第r1位转换为相应的模拟信号)。接收到相应的数字信号后,这h1+1个DAC可将各自的数字信号转换为模拟信号,并发送至OPU。即第1个DAC将数字信号a 0 11转换为与a 0 11对应的模拟信号并发送至OPU,…,第h1+1个DAC将数字信号a h1 11转换为与a h1 11对应的模拟信号并发送至OPU。 Based on the above decomposition process, it can be seen that when the electronic processor outputs the digital signal a 11 , it can set up h1+1 DACs to receive it. Among them, the first DAC receives the digital signal a 0 11 , (the digital signal a 0 11 corresponds to the digital signal a 0 11). The 1st to dth bits of the signal a 11 , that is, the first DAC is used to convert the 1st to dth bits of the digital signal a 11 into the corresponding analog signal), and the second DAC receives the digital signal a 1 11 ,..., the h1th DAC receives the digital signal a h1-1 , and the h1+1th DAC receives the digital signal a h1 11 (the digital signal a h1 11 corresponds to the h1* d +1th bit to the r1th bit of the digital signal a 11 bit, that is, the h1+1th DAC is used to convert the h1*d+1th bit to the r1th bit of the digital signal a 11 into the corresponding analog signal). After receiving the corresponding digital signal, these h1+1 DACs can convert their respective digital signals into analog signals and send them to the OPU. That is, the first DAC converts the digital signal a 0 11 into an analog signal corresponding to a 0 11 and sends it to the OPU,..., the h1+1th DAC converts the digital signal a h1 11 into an analog signal corresponding to a h1 11 and sent to OPU.
同样地,对于矩阵A中除a 11之外的其余元素中的任意一个元素,电处理器在输出该元素对应的数字信号时,也可使用h1+1个DAC来接收。可见,可通过设置(m×n)组个DAC 来完成矩阵A的接收(每一组DAC包含(h1+1)个DAC,用于接收矩阵A中的一个元素)。同理,还可设置(n×k)组个DAC来完成矩阵B的接收(每一组DAC包含(h2+1)个DAC,用于接收矩阵B中的一个元素)。 Similarly, for any one of the remaining elements in matrix A except a 11 , when the electronic processor outputs the digital signal corresponding to the element, it can also use h1+1 DACs to receive it. It can be seen that the reception of matrix A can be completed by setting (m×n) groups of DACs (each group of DACs contains (h1+1) DACs, which are used to receive an element in matrix A). In the same way, (n×k) groups of DACs can also be set up to complete the reception of matrix B (each group of DACs contains (h2+1) DACs, used to receive an element in matrix B).
基于此,OPU可包含(h1+1)×(h2+1)个调制器(例如,微环调制器、电吸收外调制器或马赫曾德尔干涉仪等等),其中,第(h1+1)×(h2+1)个调制器用于获取2 h1*d+h2*d所乘的矩阵(即公式(5)),那么,该调制器需要获取以下两个矩阵: Based on this, the OPU may include (h1+1)×(h2+1) modulators (for example, microring modulators, electroabsorption external modulators or Mach-Zehnder interferometers, etc.), where the (h1+1 )×(h2+1) modulators are used to obtain the matrix multiplied by 2 h1*d+h2*d (i.e. formula (5)). Then, the modulator needs to obtain the following two matrices:
Figure PCTCN2022079960-appb-000008
Figure PCTCN2022079960-appb-000008
Figure PCTCN2022079960-appb-000009
Figure PCTCN2022079960-appb-000009
那么,在(m×n)组个DAC中,该调制器可与每一组的第h1+1个DAC连接,故该调制器可接收到与a h1 11对应的模拟信号,与a h1 12对应的模拟信号,...,与a h1 mn对应的模拟信号,该调制器对这些模拟信号进行电光转换后,可得到与a h1 11对应的光信号,与a h1 12对应的光信号,...,与a h1 mn对应的光信号,这些光信号可组成与公式(7)所示的矩阵对应的光信号。同理,该调制器在(n×k)组个DAC中,该调制器可与每一组的第h2+1个DAC连接,故该调制器可接收到与b h2 11对应的模拟信号,与b h2 12对应的模拟信号,...,与b h2 mn对应的模拟信号,该调制器对这些模拟信号进行电光转换后,可得到与公式(8)所示的矩阵对应的光信号。如此一来,该调制器可利用这两个光信号进行矩阵乘法运算,得到与公式(5)所对应的光信号。 Then, in (m×n) groups of DACs, the modulator can be connected to the h1+1th DAC of each group, so the modulator can receive the analog signal corresponding to a h1 11 , and the analog signal corresponding to a h1 12 The corresponding analog signal,..., the analog signal corresponding to a h1 mn . After the modulator performs electro-optical conversion on these analog signals, the optical signal corresponding to a h1 11 and the optical signal corresponding to a h1 12 can be obtained, ..., the optical signals corresponding to a h1 mn , these optical signals can constitute the optical signals corresponding to the matrix shown in formula (7). Similarly, the modulator is in a (n×k) group of DACs, and the modulator can be connected to the h2+1th DAC of each group, so the modulator can receive the analog signal corresponding to b h2 11 , Analog signals corresponding to b h2 12 ,..., analog signals corresponding to b h2 mn . After the modulator performs electro-optical conversion on these analog signals, an optical signal corresponding to the matrix shown in formula (8) can be obtained. In this way, the modulator can perform matrix multiplication using these two optical signals to obtain the optical signal corresponding to formula (5).
第1个调制器用于获取2 0所乘的矩阵(即公式(6)),那么,该调制器需要获取以下两个矩阵: The first modulator is used to obtain the matrix multiplied by 2 0 (i.e. formula (6)). Then, the modulator needs to obtain the following two matrices:
Figure PCTCN2022079960-appb-000010
Figure PCTCN2022079960-appb-000010
Figure PCTCN2022079960-appb-000011
Figure PCTCN2022079960-appb-000011
那么,在(m×n)组个DAC中,该调制器可与每一组的第1个DAC连接,故该调制器可接收到与a 0 11对应的模拟信号,与a 0 12对应的模拟信号,...,与a 0 mn对应的模拟信号,该调制器对这些模拟信号进行电光转换后,可得到与公式(9)所示的矩阵对应的光信号。同理,该调制器在(n×k)组个DAC中,该调制器可与每一组的第1个DAC连接,故该调 制器可接收到与b 0 11对应的模拟信号,与b 0 12对应的模拟信号,...,与b 0 mn对应的模拟信号,该调制器对这些模拟信号进行电光转换后,可得到与公式(10)所示的矩阵对应的光信号。如此一来,该调制器可利用这两个光信号进行矩阵乘法运算,得到与公式(6)所对应的光信号。 Then, in (m×n) groups of DACs, the modulator can be connected to the first DAC of each group, so the modulator can receive the analog signal corresponding to a 0 11 , and the analog signal corresponding to a 0 12 The analog signal,..., is the analog signal corresponding to a 0 mn . After the modulator performs electro-optical conversion on these analog signals, the optical signal corresponding to the matrix shown in formula (9) can be obtained. Similarly, the modulator is in a (n×k) group of DACs, and the modulator can be connected to the first DAC of each group. Therefore, the modulator can receive the analog signal corresponding to b 0 11 , and b The analog signal corresponding to 0 12 ,..., the analog signal corresponding to b 0 mn . After the modulator performs electro-optical conversion on these analog signals, the optical signal corresponding to the matrix shown in formula (10) can be obtained. In this way, the modulator can use these two optical signals to perform matrix multiplication to obtain the optical signal corresponding to formula (6).
同样地,对于除第(h1+1)×(h2+1)个调制器和第1个调制器之外的其余调制器,这部分调制器所连接的DAC和工作流程,也可参考前述对第(h1+1)×(h2+1)个调制器和第1个调制器的相关说明,此处不再赘述。Similarly, for the remaining modulators except the (h1+1)×(h2+1) modulator and the first modulator, the DACs and workflows connected to this part of the modulators can also refer to the previous discussion. The relevant descriptions of the (h1+1)×(h2+1)-th modulator and the first modulator will not be described again here.
在(h1+1)×(h2+1)个调制器完成运算后,可得到(h1+1)×(h2+1)个光信号,这(h1+1)×(h2+1)个光信号与(h1+1)×(h2+1)个m×k的矩阵一一对应,包括与公式(5)所对应的光信号,与公式(6)所对应的光信号等等。After the (h1+1)×(h2+1) modulators complete the operation, (h1+1)×(h2+1) optical signals can be obtained. These (h1+1)×(h2+1) optical signals The signal has a one-to-one correspondence with (h1+1)×(h2+1) m×k matrices, including the optical signal corresponding to formula (5), the optical signal corresponding to formula (6), and so on.
为了得到如公式(4)所得的结果,OPU中还设置有放大器和加法器,放大器可用于(h1+1)×(h2+1)个调制器所得到的(h1+1)×(h2+1)个光信号进行放大,得到(h1+1)×(h2+1)个放大后的光信号。其中,公式(5)所示的矩阵为2 h1*d+h2*d所乘的矩阵,故与公式(5)所对应的光信号需放大2 h1*d+h2*d倍,公式(6)所示的矩阵为2 0所乘的矩阵,故与公式(6)所对应的光信号需放大2 0倍,其余光信号被放大的倍数也是遵循相同的规律,此处不再赘述。加法器用于将(h1+1)×(h2+1)个放大后的光信号进行叠加,可得到与公式(4)所得的结果对应的光信号。 In order to obtain the result as shown in formula (4), the OPU is also equipped with an amplifier and an adder. The amplifier can be used for (h1+1)×(h2+1) modulators to obtain (h1+1)×(h2+ 1) optical signals are amplified to obtain (h1+1)×(h2+1) amplified optical signals. Among them, the matrix shown in formula (5) is the matrix multiplied by 2 h1*d+h2*d , so the optical signal corresponding to formula (5) needs to be amplified 2 h1*d+h2*d times, formula (6 ) is a matrix multiplied by 2 0 , so the optical signal corresponding to formula (6) needs to be amplified 2 0 times. The amplification multiples of other optical signals also follow the same rule and will not be repeated here. The adder is used to add (h1+1)×(h2+1) amplified optical signals to obtain an optical signal corresponding to the result obtained by formula (4).
应理解,前述数字信号的第一有效位为数字信号的第(i-1)*d+1位至第i*d位,前述数字信号的第二有效位为数字信号的第h*d+1位至第r位,例如,设该数字信号为数字信号a 11,那么,i=1,...,h1,即第一有效位可以为a 11的第1位至第d位,还可以为a 11的第d+1位至第2d位,...,还可以为a 11的第(h1-1)*d+1位至第h1*d位等等,而第二有效位仅可以为a 11的第h1*d+1位至第r1位。当然,该数字信号可以为数字信号a 12、b 11等等。 It should be understood that the first effective bit of the aforementioned digital signal is the (i-1)*d+1th to i*d bits of the digital signal, and the second effective bit of the aforementioned digital signal is the h*d+th bit of the digital signal. 1 to the r-th bit. For example, assuming that the digital signal is a digital signal a 11 , then, i=1,...,h1, that is, the first effective bit can be the 1st to d-th bit of a 11 , and also It can be the d+1st to 2dth bits of a 11 ,..., it can also be the ( h1-1 )*d+1st to h1*dth bits of a 11, etc., and the second effective bit It can only be h1*d+1 to r1 of a 11 . Of course, the digital signal can be a digital signal a 12 , b 11 , etc.
进一步地,由于数字信号可以按位拆分成多个子数字信号,对应于该数字信号的第一有效位的子数字信号,可被相应的DAC(即前述的第一DAC)转换成第一模拟信号。同理,对应于该数字信号的第二有效位的子数字信号,可被相应的DAC(即前述的第二DAC)转换成第二模拟信号。例如,设第一有效位可以为a 11的第1位至第d位,第二有效位仅可以为a 11的第h1*d+1位至第r1位。那么,第一ADC为用于接收数字信号的h1+1个DAC中的第1个DAC(用于接收数字信号a 0 11),第一模拟信号为与a 0 11对应的模拟信号,第二DAC为用于接收数字信号的h1+1个DAC中的第h1+1个DAC(用于接收数字信号a h1 11),第二模拟信号为与a h1 11对应的模拟信号等等。 Further, since the digital signal can be split into multiple sub-digital signals bit by bit, the sub-digital signal corresponding to the first significant bit of the digital signal can be converted into the first analog signal by the corresponding DAC (ie, the aforementioned first DAC). Signal. Similarly, the sub-digital signal corresponding to the second effective bit of the digital signal can be converted into a second analog signal by a corresponding DAC (ie, the aforementioned second DAC). For example, assume that the first valid bit can be the 1st to d bits of a 11 , and the second valid bit can only be the h1*d+1 to r1th bit of a 11 . Then, the first ADC is the first DAC among the h1+1 DACs used to receive digital signals (used to receive digital signals a 0 11 ), the first analog signal is the analog signal corresponding to a 0 11 , and the second The DAC is the h1+1-th DAC among the h1+1 DACs for receiving digital signals (for receiving the digital signal a h1 11 ), the second analog signal is the analog signal corresponding to a h1 11 , and so on.
进一步地,基于上述例子,第一光信号为与a 0 11对应的光信号,第三光信号为与公式(6)所示的矩阵对应的光信号,第一调制器为第1个调制器,第二光信号为与a h1 11对应的光信号,第四光信号为与公式(5)所示的矩阵对应的光信号,第二调制器为第(h1+1)×(h2+1)个调制器。当然,第三光信号也可以为与其余矩阵对应的光信号,其余矩阵基于公式(9)所示的矩阵(进行矩阵乘法运算)得到(此时,第一调制器则变换为相应的调制器),同理,第四光信号也可以为与其余矩阵对应的光信号,其余矩阵基于公式(7)所示 的矩阵(进行矩阵乘法运算)得到(此时,第二调制器则变换为相应的调制器)。 Further, based on the above example, the first optical signal is the optical signal corresponding to a 0 11 , the third optical signal is the optical signal corresponding to the matrix shown in formula (6), and the first modulator is the first modulator , the second optical signal is the optical signal corresponding to a h1 11 , the fourth optical signal is the optical signal corresponding to the matrix shown in formula (5), and the second modulator is (h1+1)×(h2+1 ) modulator. Of course, the third optical signal can also be an optical signal corresponding to the remaining matrices. The remaining matrices are obtained based on the matrix shown in formula (9) (by performing matrix multiplication) (at this time, the first modulator is converted into the corresponding modulator ), in the same way, the fourth optical signal can also be an optical signal corresponding to the remaining matrices, and the remaining matrices are obtained based on the matrix (matrix multiplication operation) shown in formula (7) (at this time, the second modulator is transformed into the corresponding modulator).
进一步地,第三光信号被放大的倍数大于或等于2的(i-1)*d次方,第四光信号被放大的倍数大于或等于2的h1*d次方。例如,基于上述例子,当第三光信号为与公式(6)所示的矩阵对应的光信号时,第三光信号被放大的倍数为2 0,第四光信号为与公式(5)所示的矩阵对应的光信号时,第四光信号被放大的倍数为2 h1*d+h2*dFurther, the third optical signal is amplified by a factor greater than or equal to 2 to the (i-1)*d power, and the fourth optical signal is amplified by a factor greater than or equal to 2 h1*d power. For example, based on the above example, when the third optical signal is an optical signal corresponding to the matrix shown in equation (6), the third optical signal is amplified by a factor of 2 0 , and the fourth optical signal is an optical signal corresponding to the matrix shown in equation (5). When the optical signal corresponding to the matrix shown is shown, the fourth optical signal is amplified by a factor of 2 h1*d+h2*d .
还应理解,本实施例仅以r1=h1*d+v1和r2=h2*d+v2为例进行示意性介绍,在实际应用中,也可能出现以下情况:r1=h1*d和r2=h2*d。那么,前述数字信号的第一有效位为数字信号的第(i-1)*d+1位至第i*d位,数字信号的第二有效位为数字信号的第(j-1)*d+1位至第j*d位。例如,设该数字信号为数字信号a 11,那么,i=1,...,h1,j=1,…,h1,i≠j,即第一有效位可以为a 11的第1位至第d位,且第二有效位可以为a 11的第d+1位至第2d位,或者,第一有效位可以为a 11的(h1-2)*d+1位至第(h1-1)*d位,且第二有效位可以为a 11的第(h1-1)*d+1位至第h1*d位等等。当然,该数字信号可以为数字信号a 12、b 11等等。 It should also be understood that this embodiment only takes r1=h1*d+v1 and r2=h2*d+v2 as an example for schematic introduction. In actual applications, the following situations may also occur: r1=h1*d and r2= h2*d. Then, the first significant bit of the aforementioned digital signal is the (i-1)*d+1 to i*d bits of the digital signal, and the second significant bit of the digital signal is the (j-1)*th bit of the digital signal. d+1 bit to j*d bit. For example, assuming that the digital signal is a digital signal a 11 , then i=1,...,h1,j=1,...,h1,i≠j, that is, the first significant bit can be the 1st to 1st bit of a 11 The dth bit, and the second valid bit can be the d+1th to 2dth bits of a 11 , or the first valid bit can be the (h1-2)*d+1th to (h1-) bits of a 11 1)*d bit, and the second valid bit can be the (h1-1)*d+1th to h1*d bit of a 11 and so on. Of course, the digital signal can be a digital signal a 12 , b 11 , etc.
进一步地,由于数字信号可以按位拆分成多个子数字信号,对应于该数字信号的第一有效位的子数字信号,可被相应的DAC(即前述的第一DAC)转换成第一模拟信号。同理,对应于该数字信号的第二有效位的子数字信号,可被相应的DAC(即前述的第二DAC)转换成第二模拟信号。例如,设第一有效位可以为a 11的第1位至第d位,第二有效位可以为a 11的第(h1-1)*d+1位至第h1*d位。那么,第一ADC为用于接收数字信号的h1+1个DAC中的第1个DAC(用于接收数字信号a 0 11),第一模拟信号为与a 0 11对应的模拟信号,第二DAC为用于接收数字信号的h1+1个DAC中的第h1个DAC(用于接收数字信号a h1-1 11),第二模拟信号为与a h1-1 11对应的模拟信号等等。 Further, since the digital signal can be split into multiple sub-digital signals bit by bit, the sub-digital signal corresponding to the first significant bit of the digital signal can be converted into the first analog signal by the corresponding DAC (ie, the aforementioned first DAC). Signal. Similarly, the sub-digital signal corresponding to the second effective bit of the digital signal can be converted into a second analog signal by a corresponding DAC (ie, the aforementioned second DAC). For example, assume that the first valid bit can be the 1st to dth bits of a 11 , and the second valid bit can be the ( h1-1 )*d+1th to h1*d bits of a 11. Then, the first ADC is the first DAC among the h1+1 DACs used to receive digital signals (used to receive digital signals a 0 11 ), the first analog signal is the analog signal corresponding to a 0 11 , and the second The DAC is the h1-th DAC among the h1+1 DACs for receiving digital signals (for receiving the digital signal a h1-1 11 ), the second analog signal is the analog signal corresponding to a h1-1 11 , and so on.
进一步地,基于上述例子,第一光信号为与a 0 11对应的光信号,第三光信号为与公式(6)所示的矩阵对应的光信号,第一调制器为第1个调制器,第二光信号为与a h1-1 11对应的光信号,第四光信号为与公式(11)所示的矩阵对应的光信号,第二调制器为第h1×h2个调制器。当然,第三光信号也可以为与其余矩阵对应的光信号,其余矩阵基于公式(9)所示的矩阵(进行矩阵乘法运算)得到,同理,第四光信号也可以为与其余矩阵对应的光信号,其余矩阵基于公式(12)所示的矩阵(进行矩阵乘法运算)得到。公式(11)和公式(12)为: Further, based on the above example, the first optical signal is the optical signal corresponding to a 0 11 , the third optical signal is the optical signal corresponding to the matrix shown in formula (6), and the first modulator is the first modulator , the second optical signal is the optical signal corresponding to a h1-1 11 , the fourth optical signal is the optical signal corresponding to the matrix shown in formula (11), and the second modulator is the h1×h2-th modulator. Of course, the third optical signal can also be an optical signal corresponding to the remaining matrices. The remaining matrices are obtained based on the matrix shown in formula (9) (performing matrix multiplication). Similarly, the fourth optical signal can also be an optical signal corresponding to the remaining matrices. of the optical signal, and the remaining matrices are obtained based on the matrix shown in formula (12) (performing matrix multiplication). Formula (11) and formula (12) are:
Figure PCTCN2022079960-appb-000012
Figure PCTCN2022079960-appb-000012
Figure PCTCN2022079960-appb-000013
Figure PCTCN2022079960-appb-000013
进一步地,第三光信号被放大的倍数大于或等于2的(i-1)*d次方,第四光信号被放大的倍数大于或等于2的(j-1)*d次方。例如,基于上述例子,当第三光信号为与公 式(6)所示的矩阵对应的光信号时,第三光信号被放大的倍数为2 0,第四光信号为与公式(11)所示的矩阵对应的光信号时,第四光信号被放大的倍数为2 (h1-1)*d+(h2-1)*dFurther, the third optical signal is amplified by a factor greater than or equal to 2 raised to the (i-1)*d power, and the fourth optical signal is amplified by a factor greater than or equal to 2 raised to the (j-1)*d power. For example, based on the above example, when the third optical signal is an optical signal corresponding to the matrix shown in equation (6), the third optical signal is amplified by a factor of 2 0 , and the fourth optical signal is an optical signal corresponding to the matrix shown in equation (11). When the optical signal corresponding to the matrix shown is shown, the fourth optical signal is amplified by a factor of 2 (h1-1)*d+(h2-1)*d .
为了进一步地理解上述光计算系统的工作流程,下文结合两个应用例对光计算系统做进一步的介绍。如图4所示(图4为本申请实施例提供的光计算系统的一个应用例示意图),设系统需要实现矩阵A和矩阵B的乘法运算,矩阵A和矩阵B如公式(1)所示,设矩阵A中元素的精度和矩阵B中元素的精度均为8位(bit),且DAC的精度为4位,定义a 11=a 1 11*2 4+a 0 11,其中,a 1 11对应于a 11的第5位至第8位,a 0 11对应于a 11的第1位至第4位。那么,矩阵A乘矩阵B可进行以下分解: In order to further understand the workflow of the above-mentioned optical computing system, the optical computing system will be further introduced below with two application examples. As shown in Figure 4 (Figure 4 is a schematic diagram of an application example of the optical computing system provided by the embodiment of the present application), assume that the system needs to implement the multiplication operation of matrix A and matrix B. Matrix A and matrix B are as shown in formula (1) , assuming that the precision of the elements in matrix A and the precision of the elements in matrix B are both 8 bits (bit), and the precision of DAC is 4 bits, define a 11 =a 1 11 *2 4 +a 0 11 , where, a 1 11 corresponds to the 5th to 8th digits of a 11 , and a 0 11 corresponds to the 1st to 4th digits of a 11 . Then, matrix A multiplied by matrix B can be decomposed as follows:
Figure PCTCN2022079960-appb-000014
Figure PCTCN2022079960-appb-000014
基于公式(13)可知,剔除2的n次幂项,矩阵A可被分解成矩阵A1和矩阵A2,矩阵B可被分解成矩阵B1和矩阵B2,如公式(14)所示:Based on formula (13), it can be seen that by eliminating the n-th power term of 2, matrix A can be decomposed into matrix A1 and matrix A2, and matrix B can be decomposed into matrix B1 and matrix B2, as shown in formula (14):
Figure PCTCN2022079960-appb-000015
Figure PCTCN2022079960-appb-000015
可见,系统中需设置32组ADC,每组包含2个DAC,第1组至第16组DAC可用于接收矩阵A,即这16组中的每一组DAC用于接收矩阵A中的一个元素,第17组至第32组DAC可用于接收矩阵B,即这16组中的每一组DAC用于接收矩阵B中的一个元素(需要说明的是,图4中仅示意出第1组至第16组中的其中一组,以及第17组至第32组中的其中一组)。It can be seen that 32 groups of ADCs need to be set up in the system, each group contains 2 DACs. The 1st to 16th groups of DACs can be used to receive matrix A, that is, each group of DACs in these 16 groups is used to receive an element in matrix A. , the 17th to 32nd groups of DACs can be used to receive matrix B, that is, each group of DACs in these 16 groups is used to receive an element in matrix B (it should be noted that only the 1st to 32nd groups of DACs are shown in Figure 4 One of Group 16, and one of Groups 17 to 32).
OPU中需设置4个调制器,第1个调制器用于实现矩阵A1和矩阵B1的计算,第2个调制器用于实现矩阵A1和矩阵B2的计算,第3个调制器用于实现矩阵A2和矩阵B1的计算,第4个调制器用于实现矩阵A2和矩阵B2的计算。因此,第1个调制器与第1组至第16组中,每一组中的第1个DAC连接,且与第17组至第32组中,每一组中的第1个DAC连接。第2个调制器与第1组至第16组中,每一组中的第1个DAC连接,且与第17组至第32组中,每一组中的第2个DAC连接。第3个调制器与第1组至第16组中,每一组中的第2个DAC连接,且与第17组至第32组中,每一组中的第1个DAC连接。第4个调制 器与第1组至第16组中,每一组中的第2个DAC连接,且与第17组至第32组中,每一组中的第2个DAC连接。Four modulators need to be set up in the OPU. The first modulator is used to implement the calculation of matrix A1 and matrix B1. The second modulator is used to implement the calculation of matrix A1 and matrix B2. The third modulator is used to implement the calculation of matrix A2 and matrix. For the calculation of B1, the fourth modulator is used to implement the calculation of matrix A2 and matrix B2. Therefore, the first modulator is connected to the first DAC in each group from group 1 to group 16, and to the first DAC in each group from group 17 to group 32. The second modulator is connected to the first DAC in each group from group 1 to group 16, and is connected to the second DAC in each group from group 17 to group 32. The third modulator is connected to the second DAC in each group from group 1 to group 16, and is connected to the first DAC in each group from group 17 to group 32. The fourth modulator is connected to the second DAC in each of groups 1 to 16, and to the second DAC in each of groups 17 to 32.
进一步地,第1个调制器还可第1个放大器连接,第1个放大器可将第1个调制器的输出放大2 8倍。第2个调制器还可第2个放大器连接,第2个放大器可将第2个调制器的输出放大2 4倍。第3个调制器还可第3个放大器连接,第3个放大器可将第3个调制器的输出放大2 4倍。第4个调制器还可第4个放大器连接,第4个放大器可将第4个调制器的输出放大1倍。 Furthermore, the first modulator can also be connected to a first amplifier, and the first amplifier can amplify the output of the first modulator 28 times. The second modulator can also be connected to a second amplifier, which can amplify the output of the second modulator 24 times. The third modulator can also be connected to a third amplifier, which can amplify the output of the third modulator 24 times. The 4th modulator can also be connected to a 4th amplifier, and the 4th amplifier can amplify the output of the 4th modulator by 1x.
4个放大器与加法器连接,加法器用于叠加4个方法器的输出,可得到与公式(13)中的结果对应的光信号。The four amplifiers are connected to the adder, and the adder is used to add the outputs of the four methods to obtain the optical signal corresponding to the result in formula (13).
如图5所示(图5为本申请实施例提供的光计算系统的另一应用例示意图),光计算系统需要实现两个4×4矩阵的乘法运算,设矩阵A中元素的精度和矩阵B中元素的精度均为16位(bit),且DAC的精度为4位。那么,矩阵A可分解为矩阵①、矩阵②、矩阵③和矩阵④,矩阵B可分解为矩阵⑤、矩阵⑥、矩阵⑦和矩阵⑧,故系统中需设置32组DAC,且每组DAC包含4个DAC,且OPU中设置有16个调制器。As shown in Figure 5 (Figure 5 is a schematic diagram of another application example of the optical computing system provided by the embodiment of the present application), the optical computing system needs to implement the multiplication operation of two 4×4 matrices. Assume that the accuracy of the elements in matrix A and the matrix The precision of the elements in B is 16 bits (bit), and the precision of the DAC is 4 bits. Then, matrix A can be decomposed into matrix ①, matrix ②, matrix ③ and matrix ④, and matrix B can be decomposed into matrix ⑤, matrix ⑥, matrix ⑦ and matrix ⑧. Therefore, 32 sets of DACs need to be set up in the system, and each set of DACs contains 4 DACs, and 16 modulators are set in the OPU.
通过图5所示的连接关系,可实现矩阵A和矩阵B的乘法运算,从而得到相应的光信号。Through the connection relationship shown in Figure 5, the multiplication operation of matrix A and matrix B can be realized, thereby obtaining the corresponding optical signal.
本申请实施例提供的光计算系统包含第一DAC、第二DAC和OPU,其中,在第一DAC和第二DAC协同接收来自电处理器的数字信号后,第一DAC可将数字信号的第一有效位转换为第一模拟信号,第二DAC可将数字信号的第二有效位转换为第二模拟信号。接着,OPU可将第一模拟信号转换为第一光信号,将第二模拟信号转换为第二光信号,并对第一光信号和第二光信号分别进行运算,得到第三光信号和第四光信号。最后,OPU可对第三光信号和第四光信号进行放大并叠加,得到数字信号的计算结果。前述过程中,由于DAC的精度通常为4位,若数字信号的位数大于4位,可将数字信号被拆分成多个部分,并被多个DAC进行接收以实现数模转换。如此一来,即使每个DAC本身的精度有限,多个DAC也可协同完成高位的数字信号的数模转换,从而令整个光计算系统可实现8位及以上的数字信号的光运算。The optical computing system provided by the embodiment of the present application includes a first DAC, a second DAC and an OPU. After the first DAC and the second DAC cooperate to receive the digital signal from the electrical processor, the first DAC can convert the third part of the digital signal. A valid bit is converted into a first analog signal, and the second DAC can convert a second valid bit of the digital signal into a second analog signal. Then, the OPU can convert the first analog signal into a first optical signal, convert the second analog signal into a second optical signal, and perform operations on the first optical signal and the second optical signal respectively to obtain the third optical signal and the third optical signal. Four light signals. Finally, the OPU can amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal. In the aforementioned process, since the accuracy of the DAC is usually 4 bits, if the number of digital signals is greater than 4 bits, the digital signal can be split into multiple parts and received by multiple DACs to achieve digital-to-analog conversion. In this way, even if the accuracy of each DAC itself is limited, multiple DACs can cooperate to complete the digital-to-analog conversion of high-bit digital signals, so that the entire optical computing system can realize optical operations of 8-bit and above digital signals.
进一步地,OPU中的调制器的精度通常也为4位,通过在OPU中设置多个调制器,即使每个调制器本身的精度有限,同样也可实现高位的数字信号的运算。如此一来,本申请实施例提供的光计算系统通过部署低精度的器件,可实现高精度的数字信号的光运算,有利于提高光计算的计算性能,相比电计算无性能损失。Furthermore, the accuracy of the modulator in the OPU is usually 4 bits. By arranging multiple modulators in the OPU, even if the accuracy of each modulator itself is limited, high-bit digital signal operations can also be implemented. In this way, the optical computing system provided by the embodiments of the present application can implement high-precision optical computing of digital signals by deploying low-precision devices, which is beneficial to improving the computing performance of optical computing without any performance loss compared to electrical computing.
进一步地,光计算系统中,OPU设置有2的n次方的线性光放大器以及加法器,可对调制器的输出进行相应的处理,从而得到准确的计算结果,有利于实现低成本、低功耗、低时延的光计算。Furthermore, in the optical computing system, the OPU is equipped with a 2 n linear optical amplifier and an adder, which can process the output of the modulator accordingly to obtain accurate calculation results, which is conducive to the realization of low-cost, low-power High-efficiency, low-latency optical computing.
以上是对本申请实施例提供的光计算系统所进行的详细说明,以下将对本申请实施例提供的光信号处理方法进行介绍。图6为本申请实施例提供的光信号处理方法的一个流程示意图,如图6所示,该方法通过光计算系统实现,系统包括第一DAC、第二DAC和OPU,方法包括:The above is a detailed description of the optical computing system provided by the embodiment of the present application. The optical signal processing method provided by the embodiment of the present application will be introduced below. Figure 6 is a schematic flow chart of an optical signal processing method provided by an embodiment of the present application. As shown in Figure 6, the method is implemented through an optical computing system. The system includes a first DAC, a second DAC and an OPU. The method includes:
1001、通过第一DAC将数字信号的第一有效位转换为第一模拟信号;1001. Convert the first effective bit of the digital signal into the first analog signal through the first DAC;
1002、通过第二DAC将数字信号的第二有效位转换为第二模拟信号;1002. Convert the second effective bit of the digital signal into a second analog signal through the second DAC;
1003、通过OPU基于来源于第一模拟信号的第一光信号进行运算,得到第三光信号;1003. The OPU performs an operation based on the first optical signal derived from the first analog signal to obtain a third optical signal;
1004、通过OPU基于来源于第二模拟信号的第二光信号进行运算,得到第四光信号;1004. The OPU performs an operation based on the second optical signal derived from the second analog signal to obtain a fourth optical signal;
1005、通过OPU对第三光信号和第四光信号进行放大并叠加,得到数字信号的计算结果。1005. Use the OPU to amplify and superimpose the third optical signal and the fourth optical signal to obtain a calculation result of the digital signal.
本申请实施例提供的光计算系统包含第一DAC、第二DAC和OPU,其中,在第一DAC和第二DAC协同接收来自电处理器的数字信号后,第一DAC可将数字信号的第一有效位转换为第一模拟信号,第二DAC可将数字信号的第二有效位转换为第二模拟信号。接着,OPU可将第一模拟信号转换为第一光信号,将第二模拟信号转换为第二光信号,并对第一光信号和第二光信号分别进行运算,得到第三光信号和第四光信号。最后,OPU可对第三光信号和第四光信号进行放大并叠加,得到数字信号的计算结果。前述过程中,由于DAC的精度通常为4位,若数字信号的位数大于4位,可将数字信号被拆分成多个部分,并被多个DAC进行接收以实现数模转换。如此一来,即使每个DAC本身的精度有限,多个DAC也可协同完成高位的数字信号的数模转换,从而令整个光计算系统可实现8位及以上的数字信号的光运算。The optical computing system provided by the embodiment of the present application includes a first DAC, a second DAC and an OPU. After the first DAC and the second DAC cooperate to receive the digital signal from the electrical processor, the first DAC can convert the third part of the digital signal. A valid bit is converted into a first analog signal, and the second DAC can convert a second valid bit of the digital signal into a second analog signal. Then, the OPU can convert the first analog signal into a first optical signal, convert the second analog signal into a second optical signal, and perform operations on the first optical signal and the second optical signal respectively to obtain the third optical signal and the third optical signal. Four light signals. Finally, the OPU can amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal. In the aforementioned process, since the accuracy of the DAC is usually 4 bits, if the number of digital signals is greater than 4 bits, the digital signal can be split into multiple parts and received by multiple DACs to achieve digital-to-analog conversion. In this way, even if the accuracy of each DAC itself is limited, multiple DACs can cooperate to complete the digital-to-analog conversion of high-bit digital signals, so that the entire optical computing system can realize optical operations of 8-bit and above digital signals.
在一种可能的实现方式中,第一DAC的精度和第二DAC的精度为d位,数字信号包含r位,第一有效位为数字信号的第(i-1)*d+1位至第i*d位,第二有效位为数字信号的第(j-1)*d+1位至第j*d位,其中,r=h*d,r、h和d均为大于零的整数,i=1,…,h,j=1,…,h,i≠j。In a possible implementation, the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, and the first effective bit is the (i-1)*d+1th bit to The i*d bit, the second significant bit is the (j-1)*d+1 to j*d bit of the digital signal, where r=h*d, r, h and d are all greater than zero Integer, i=1,…,h,j=1,…,h,i≠j.
在一种可能的实现方式中,第一DAC的精度和第二DAC的精度为d位,数字信号包含r位,第一有效位为数字信号的第(i-1)*d+1位至第i*d位,第二有效位为数字信号的第h*d+1位至第r位,其中,r=h*d+v,r、h、d和v均为大于零的整数,i=1,…,h。In a possible implementation, the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, and the first effective bit is the (i-1)*d+1th bit to The i*d bit, the second significant bit is the h*d+1 to r-th bit of the digital signal, where r=h*d+v, r, h, d and v are all integers greater than zero, i=1,…,h.
在一种可能的实现方式中,第三光信号被放大的倍数大于或等于2的(i-1)*d次方,第四光信号被放大的倍数大于或等于2的(j-1)*d次方。In a possible implementation, the third optical signal is amplified by a factor greater than or equal to 2 to the power of (i-1)*d, and the fourth optical signal is amplified by a factor greater than or equal to 2(j-1) *d power.
在一种可能的实现方式中,第三光信号被放大的倍数大于或等于2的(i-1)*d次方,第四光信号被放大的倍数大于或等于2的h*d次方。In a possible implementation, the third optical signal is amplified by a factor greater than or equal to 2 to the (i-1)*d power, and the fourth optical signal is amplified by a factor greater than or equal to 2 h*d power. .
在一种可能的实现方式中,OPU包括第一调制器、第二调制器、放大器和加法器,OPU所执行的步骤包括:通过第一调制器将第一模拟信号转换为第一光信号,并基于第一光信号进行运算,得到第三光信号;通过第二调制器将第二模拟信号装换为第二光信号,并基于第二光信号进行运算,得到第四光信号;通过放大器对第三光信号进行放大,得到第五光信号;对第四光信号进行放大,得到第六光信号;通过加法器将第五光信号和第六光信号进行叠加,得到数字信号的计算结果。In a possible implementation, the OPU includes a first modulator, a second modulator, an amplifier and an adder, and the steps performed by the OPU include: converting the first analog signal into a first optical signal through the first modulator, and perform operations based on the first optical signal to obtain a third optical signal; convert the second analog signal into a second optical signal through the second modulator, and perform operations based on the second optical signal to obtain a fourth optical signal; through the amplifier The third optical signal is amplified to obtain the fifth optical signal; the fourth optical signal is amplified to obtain the sixth optical signal; the fifth optical signal and the sixth optical signal are superimposed by an adder to obtain the calculation result of the digital signal .
在一种可能的实现方式中,第一调制器和第二调制器为微环调制器、电吸收外调制器或马赫曾德尔干涉仪。In a possible implementation, the first modulator and the second modulator are microring modulators, electroabsorption external modulators or Mach-Zehnder interferometers.
在一种可能的实现方式中,该运算为矩阵乘法运算。In a possible implementation, the operation is a matrix multiplication operation.
以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本 技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present application, and all of them should be covered. within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (16)

  1. 一种光计算系统,其特征在于,所述系统包括:An optical computing system, characterized in that the system includes:
    第一数模转换器DAC,用于将数字信号的第一有效位转换为第一模拟信号;The first digital-to-analog converter DAC is used to convert the first effective bit of the digital signal into the first analog signal;
    第二DAC,用于将所述数字信号的第二有效位转换为第二模拟信号;a second DAC, used to convert the second effective bit of the digital signal into a second analog signal;
    光计算单元OPU,用于:基于来源于所述第一模拟信号的第一光信号进行运算,得到第三光信号;基于来源于所述第二模拟信号的第二光信号进行运算,得到第四光信号;对所述第三光信号和所述第四光信号进行放大并叠加,得到所述数字信号的计算结果。The optical computing unit OPU is configured to: perform operations based on the first optical signal derived from the first analog signal to obtain a third optical signal; perform operations based on the second optical signal derived from the second analog signal to obtain the third optical signal. Four optical signals; amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal.
  2. 根据权利要求1所述的系统,其特征在于,所述第一DAC的精度和所述第二DAC的精度为d位,所述数字信号包含r位,所述第一有效位为所述数字信号的第(i-1)*d+1位至第i*d位,第二有效位为所述数字信号的第(j-1)*d+1位至第j*d位,其中,r=h*d,r、h和d均为大于零的整数,i=1,…,h,j=1,…,h,i≠j。The system according to claim 1, characterized in that the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, and the first effective bit is the digital The (i-1)*d+1th to i*dth bits of the signal, the second effective bit is the (j-1)*d+1th to j*dth bits of the digital signal, where, r=h*d, r, h and d are all integers greater than zero, i=1,...,h,j=1,...,h,i≠j.
  3. 根据权利要求1所述的系统,其特征在于,所述第一DAC的精度和所述第二DAC的精度为d位,所述数字信号包含r位,所述第一有效位为所述数字信号的第(i-1)*d+1位至第i*d位,第二有效位为所述数字信号的第h*d+1位至第r位,其中,r=h*d+v,r、h、d和v均为大于零的整数,i=1,…,h。The system according to claim 1, characterized in that the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, and the first effective bit is the digital The (i-1)*d+1th bit to the i*dth bit of the signal, the second effective bit is the h*d+1th to r-th bit of the digital signal, where r=h*d+ v, r, h, d and v are all integers greater than zero, i=1,...,h.
  4. 根据权利要求2所述的系统,其特征在于,所述第三光信号被放大的倍数大于或等于2的(i-1)*d次方,所述第四光信号被放大的倍数大于或等于2的(j-1)*d次方。The system according to claim 2, wherein the amplification factor of the third optical signal is greater than or equal to 2 to the power of (i-1)*d, and the amplification factor of the fourth optical signal is greater than or equal to 2. It is equal to 2 raised to the (j-1)*d power.
  5. 根据权利要求3所述的系统,其特征在于,所述第三光信号被放大的倍数大于或等于2的(i-1)*d次方,所述第四光信号被放大的倍数大于或等于2的h*d次方。The system according to claim 3, wherein the amplification factor of the third optical signal is greater than or equal to 2 to the power of (i-1)*d, and the amplification factor of the fourth optical signal is greater than or equal to 2. It is equal to 2 raised to the h*d power.
  6. 根据权利要求1至5任意一项所述的系统,其特征在于,所述OPU包括第一调制器、第二调制器、放大器和加法器;The system according to any one of claims 1 to 5, wherein the OPU includes a first modulator, a second modulator, an amplifier and an adder;
    所述第一调制器,用于将所述第一模拟信号转换为第一光信号,并基于所述第一光信号进行运算,得到第三光信号;The first modulator is used to convert the first analog signal into a first optical signal, and perform operations based on the first optical signal to obtain a third optical signal;
    所述第二调制器,用于将所述第二模拟信号装换为第二光信号,并基于所述第二光信号进行运算,得到第四光信号;The second modulator is used to convert the second analog signal into a second optical signal, and perform calculations based on the second optical signal to obtain a fourth optical signal;
    所述放大器,用于对所述第三光信号进行放大,得到第五光信号;对所述第四光信号进行放大,得到第六光信号;The amplifier is used to amplify the third optical signal to obtain a fifth optical signal; to amplify the fourth optical signal to obtain a sixth optical signal;
    所述加法器,用于将所述第五光信号和所述第六光信号进行叠加,得到所述数字信号的计算结果。The adder is used to superpose the fifth optical signal and the sixth optical signal to obtain a calculation result of the digital signal.
  7. 根据权利要求6所述的系统,其特征在于,所述第一调制器和所述第二调制器为微环调制器、电吸收外调制器或马赫曾德尔干涉仪。The system of claim 6, wherein the first modulator and the second modulator are microring modulators, electroabsorption external modulators or Mach-Zehnder interferometers.
  8. 根据权利要求1至7任意一项所述的系统,其特征在于,所述运算为矩阵乘法运算。The system according to any one of claims 1 to 7, characterized in that the operation is a matrix multiplication operation.
  9. 一种光信号处理方法,其特征在于,所述方法通过光计算系统实现,所述系统包括第一DAC、第二DAC和OPU,所述方法包括:An optical signal processing method, characterized in that the method is implemented through an optical computing system, the system includes a first DAC, a second DAC and an OPU, and the method includes:
    通过所述第一DAC将数字信号的第一有效位转换为第一模拟信号;Convert the first effective bit of the digital signal into a first analog signal through the first DAC;
    通过所述第二DAC将所述数字信号的第二有效位转换为第二模拟信号;Convert the second effective bit of the digital signal into a second analog signal through the second DAC;
    通过所述OPU基于来源于所述第一模拟信号的第一光信号进行运算,得到第三光信号;The OPU performs operations based on the first optical signal derived from the first analog signal to obtain a third optical signal;
    通过所述OPU基于来源于所述第二模拟信号的第二光信号进行运算,得到第四光信号;The OPU performs an operation based on the second optical signal derived from the second analog signal to obtain a fourth optical signal;
    通过所述OPU对所述第三光信号和所述第四光信号进行放大并叠加,得到所述数字信号的计算结果。The OPU amplifies and superimposes the third optical signal and the fourth optical signal to obtain a calculation result of the digital signal.
  10. 根据权利要求9所述的方法,其特征在于,所述第一DAC的精度和所述第二DAC的精度为d位,所述数字信号包含r位,所述第一有效位为所述数字信号的第(i-1)*d+1位至第i*d位,第二有效位为所述数字信号的第(j-1)*d+1位至第j*d位,其中,r=h*d,r、h和d均为大于零的整数,i=1,…,h,j=1,…,h,i≠j。The method according to claim 9, characterized in that the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, and the first effective bit is the digital The (i-1)*d+1th to i*dth bits of the signal, the second effective bit is the (j-1)*d+1th to j*dth bits of the digital signal, where, r=h*d, r, h and d are all integers greater than zero, i=1,...,h,j=1,...,h,i≠j.
  11. 根据权利要求9所述的方法,其特征在于,所述第一DAC的精度和所述第二DAC的精度为d位,所述数字信号包含r位,所述第一有效位为所述数字信号的第(i-1)*d+1位至第i*d位,第二有效位为所述数字信号的第h*d+1位至第r位,其中,r=h*d+v,r、h、d和v均为大于零的整数,i=1,…,h。The method according to claim 9, characterized in that the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, and the first effective bit is the digital The (i-1)*d+1th bit to the i*dth bit of the signal, the second effective bit is the h*d+1th to r-th bit of the digital signal, where r=h*d+ v, r, h, d and v are all integers greater than zero, i=1,...,h.
  12. 根据权利要求10所述的方法,其特征在于,所述第三光信号被放大的倍数大于或等于2的(i-1)*d次方,所述第四光信号被放大的倍数大于或等于2的(j-1)*d次方。The method according to claim 10, wherein the amplification factor of the third optical signal is greater than or equal to 2 to the power of (i-1)*d, and the amplification factor of the fourth optical signal is greater than or equal to It is equal to 2 raised to the (j-1)*d power.
  13. 根据权利要求11所述的方法,其特征在于,所述第三光信号被放大的倍数大于或等于2的(i-1)*d次方,所述第四光信号被放大的倍数大于或等于2的h*d次方。The method according to claim 11, wherein the amplification factor of the third optical signal is greater than or equal to 2 to the power of (i-1)*d, and the amplification factor of the fourth optical signal is greater than or equal to 2. It is equal to 2 raised to the h*d power.
  14. 根据权利要求9至12任意一项所述的方法,其特征在于,所述OPU包括第一调制器、第二调制器、放大器和加法器,所述OPU所执行的步骤包括:The method according to any one of claims 9 to 12, wherein the OPU includes a first modulator, a second modulator, an amplifier and an adder, and the steps performed by the OPU include:
    通过所述第一调制器将所述第一模拟信号转换为第一光信号,并基于所述第一光信号进行运算,得到第三光信号;Convert the first analog signal into a first optical signal through the first modulator, and perform operations based on the first optical signal to obtain a third optical signal;
    通过所述第二调制器将所述第二模拟信号装换为第二光信号,并基于所述第二光信号进行运算,得到第四光信号;Convert the second analog signal into a second optical signal through the second modulator, and perform calculations based on the second optical signal to obtain a fourth optical signal;
    通过所述放大器对所述第三光信号进行放大,得到第五光信号;对所述第四光信号进行放大,得到第六光信号;The third optical signal is amplified by the amplifier to obtain a fifth optical signal; the fourth optical signal is amplified to obtain a sixth optical signal;
    通过所述加法器将所述第五光信号和所述第六光信号进行叠加,得到所述数字信号的计算结果。The fifth optical signal and the sixth optical signal are superimposed by the adder to obtain the calculation result of the digital signal.
  15. 根据权利要求14所述的方法,其特征在于,所述第一调制器和第二调制器为微环调制器、电吸收外调制器或马赫曾德尔干涉仪。The method of claim 14, wherein the first modulator and the second modulator are microring modulators, electroabsorption external modulators or Mach-Zehnder interferometers.
  16. 根据权利要求9至15任意一项所述的方法,其特征在于,所述运算为矩阵乘法运算。The method according to any one of claims 9 to 15, characterized in that the operation is a matrix multiplication operation.
PCT/CN2022/079960 2022-03-09 2022-03-09 Optical computing system and optical signal processing method WO2023168629A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/079960 WO2023168629A1 (en) 2022-03-09 2022-03-09 Optical computing system and optical signal processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/079960 WO2023168629A1 (en) 2022-03-09 2022-03-09 Optical computing system and optical signal processing method

Publications (1)

Publication Number Publication Date
WO2023168629A1 true WO2023168629A1 (en) 2023-09-14

Family

ID=87936987

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/079960 WO2023168629A1 (en) 2022-03-09 2022-03-09 Optical computing system and optical signal processing method

Country Status (1)

Country Link
WO (1) WO2023168629A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008124894A (en) * 2006-11-14 2008-05-29 Mitsubishi Electric Corp Digital/analog converter
US8316073B1 (en) * 2009-10-01 2012-11-20 Lockheed Martin Corporation Optical processor
US8463838B1 (en) * 2009-10-28 2013-06-11 Lockheed Martin Corporation Optical processor including windowed optical calculations architecture
US20170351293A1 (en) * 2016-06-02 2017-12-07 Jacques Johannes Carolan Apparatus and Methods for Optical Neural Network
CN112424796A (en) * 2018-06-05 2021-02-26 光子智能股份有限公司 Photoelectric computing system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008124894A (en) * 2006-11-14 2008-05-29 Mitsubishi Electric Corp Digital/analog converter
US8316073B1 (en) * 2009-10-01 2012-11-20 Lockheed Martin Corporation Optical processor
US8463838B1 (en) * 2009-10-28 2013-06-11 Lockheed Martin Corporation Optical processor including windowed optical calculations architecture
US20170351293A1 (en) * 2016-06-02 2017-12-07 Jacques Johannes Carolan Apparatus and Methods for Optical Neural Network
CN112424796A (en) * 2018-06-05 2021-02-26 光子智能股份有限公司 Photoelectric computing system

Similar Documents

Publication Publication Date Title
Yacoubian et al. Digital-to-analog conversion using electrooptic modulators
CN111882052B (en) Photon convolution neural network system
CN101133556B (en) Multiplication digital to analog converter and pipeline analog to digital converter
US6118396A (en) Optically sampling, demultiplexing, and A/D converting system with improved speed
CA3130114A1 (en) Hybrid analog-digital matrix processors
CN108599765A (en) The device and method of the noise suppressed distortion correction of analog-digital converter based on deep learning
US20220405565A1 (en) A digital signal modulation method for a photon artificial intelligence computing chip
CN111208690A (en) Optical digital-to-analog converter, signal processing system and photonic neural network chip
CN111900990A (en) Current steering type digital-to-analog converter based on hybrid coding
WO2023168629A1 (en) Optical computing system and optical signal processing method
CN109462402B (en) Mixed type assembly line ADC structure
KR910009068B1 (en) Digital to analog converter
CN112684650B (en) Photon analog-to-digital conversion method and system based on weighted modulation curve
CN102882528A (en) Sigma-delta modulator
CN105096800A (en) Gray-scale voltage conversion method and module, data driving circuit and display panel
CN114706161B (en) On-chip integrated optical matrix vector processor based on frequency coding
CN103795415A (en) High-precision analog to digital conversion method and device based on double-path combination analog to digital converter
CN113238428B (en) High-speed photon digital-to-analog conversion method based on dual-drive electro-optical modulator array
WO2020155466A1 (en) Σ-∆ modulator and method for reducing nonlinear error and gain error
CN110474641B (en) Digital coding circuit and method of analog-to-digital converter applied to ultrahigh-speed pipeline folding interpolation structure
EP3457573B1 (en) Analog-to-digital converter with noise elimination
CN113627604A (en) Digital signal modulation method of photon artificial intelligence computing chip
CN111682877B (en) Analog-to-digital conversion method of pipeline analog-to-digital converter and pipeline analog-to-digital converter
KR20110020815A (en) Signal converter, parameter deciding device, parameter deciding method, program, and recording medium
RU2744348C1 (en) Optical analogue-to-digital converter

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22930270

Country of ref document: EP

Kind code of ref document: A1