A divider and optical processor

By designing a divider in the optical chip and utilizing the coupled subtraction operation of pulsed optical signals and continuous optical signals, the problem of lack of dividers in the optical chip is solved, the function of division operation in the optical chip is realized, and the operation speed and efficiency are improved.

CN115686435BActive Publication Date: 2025-10-14HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110871960.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-30
Publication Date
2025-10-14
Estimated Expiration
2041-07-30

AI Technical Summary

Technical Problem

The lack of suitable dividers in existing optical chips makes it impossible to perform division operations, limiting their application in fields such as communications and artificial intelligence.

Method used

A divider was designed, including a first optical signal source, a second optical signal source, a coupler, a detector, a waveguide, and a controller. The divider was implemented by coupling a pulsed optical signal with a continuous optical signal. The cyclic transmission of the optical signal in the waveguide loop and the coupled subtraction operation were utilized. The waveguide loop structure was optimized in combination with an optical switch and a controller to improve the operation speed.

Benefits of technology

The invention realizes the function of division operation in the optical chip, improves the execution speed and efficiency of the division operation, has a simple structure, and is suitable for the division operation requirements of the optical chip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115686435B_ABST
    Figure CN115686435B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a divider and an optical processor, and belongs to the technical field of optical computing. In the divider, a first optical signal source sends a pulse optical signal into a waveguide loop, and the ratio of the amplitude of the pulse optical signal to a dividend is equal to a preset ratio; a second optical signal source sends a continuous optical signal into a second waveguide, and the ratio of the amplitude of the continuous optical signal to a divisor is equal to the preset ratio; a coupler couples the continuous optical signal and the pulse optical signal, and the amplitude of the coupled pulse optical signal is equal to the amplitude of the uncoupled pulse optical signal minus the amplitude of the continuous optical signal; a detector detects the amplitude of the pulse optical signal after each coupling; and a controller determines the number of times that the pulse optical signal after the coupling is detected by the detector as a quotient when receiving a target amplitude sent by the detector and smaller than the amplitude of the continuous optical signal, and determines the product of the target amplitude and the preset ratio as a remainder. It can be seen that the application provides a divider for realizing a division operation in an optical chip.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of optical computing, in particular to a divider and an optical processor. BACKGROUND

[0002] With the development of optical computing technology, the application field of optical chips is also more and more extensive, which can be applied in the fields of communication, artificial intelligence, etc.

[0003] At present, there is no divider for implementing division operation in the optical chip. Although theoretically, the divider in the optical chip can be implemented according to the logic circuit of the divider in the electrical chip. However, due to the large size and low integration of the optoelectronic devices in the optical chip, there are many logic devices and the connection mode is complex in the divider of the electrical chip. Therefore, when designing the optical chip in practice, the above-mentioned way will not be used to design the divider in the optical chip. Therefore, the current optical chip is mainly used to implement multiplication and addition operations.

[0004] Therefore, there is a need for a divider suitable for use in an optical chip. SUMMARY

[0005] The present application provides a divider and an optical processor, which can implement division operation in an optical chip. The technical solution is as follows:

[0006] In a first aspect, a divider is provided, comprising: a first light signal source, a second light signal source, a coupler, a detector, a first waveguide, a second waveguide, a waveguide loop, and a controller, wherein the detector is electrically connected to the controller; the first light signal source is configured to emit a pulsed light signal, and the first waveguide is configured to transmit the pulsed light signal into the waveguide loop for cyclic transmission, wherein the ratio of the amplitude of the pulsed light signal to the dividend is equal to a preset ratio; the second light signal source is configured to emit a continuous light signal, and the continuous light signal is transmitted into the second waveguide, wherein the ratio of the amplitude of the continuous light signal to the divisor is equal to the preset ratio; the coupler is configured to couple the continuous light signal in the second waveguide and the pulsed light signal in the waveguide loop, and the amplitude of the coupled pulsed light signal is equal to the amplitude of the uncoupled pulsed light signal minus the amplitude of the continuous light signal; the detector is configured to detect the amplitude of the pulsed light signal after each coupling in the waveguide loop, and send the detected amplitude to the controller; and the controller is configured to determine the number of times of detecting the coupled pulsed light signal when receiving the target amplitude sent by the detector, which is less than the amplitude of the continuous light signal, and determine the number of times as the quotient corresponding to the divisor and the dividend, and determine the product of the target amplitude and the preset ratio as the remainder corresponding to the divisor and the dividend.

[0007] The solution shown in the embodiment of the present application can represent the dividend by the amplitude of the pulsed light signal emitted by the first optical signal source (for example, the amplitude of the pulsed light signal can be equal to the dividend), and the divisor by the amplitude of the continuous light signal emitted by the second optical signal source (for example, the amplitude of the continuous light signal can be equal to the divisor). The pulsed light signal that can be emitted by the first optical signal source is transmitted into the waveguide loop through the first waveguide, so that the pulsed light signal can be circulated in the waveguide loop. The continuous light signal that can be emitted by the second optical signal source is transmitted into the second waveguide. The coupler can couple the pulsed light signal circulated in the waveguide loop with the continuous light signal transmitted in the second waveguide, and each time the coupling is performed, the amplitude of the pulsed light signal is the amplitude before coupling minus the amplitude of the continuous light signal. That is, each time the pulsed light signal circulates through the waveguide loop, the corresponding amplitude is subtracted. This way, the pulsed light signal circulates through the waveguide loop multiple times. When the amplitude of the pulsed light signal is reduced to less than the amplitude of the continuous light signal, the number of times the pulsed light signal circulates through the waveguide loop is the quotient of the dividend and divisor, and the amplitude of the pulsed light signal is the remainder. This shows that the divider provided by this application has a simple structure and can be used to implement division operations in optical chips.

[0008] In one achievable manner, the detector detection period is less than or equal to the cycle period of the pulse light signal in the waveguide circuit.

[0009] In the solution shown in the embodiments of this application, since optical signals travel extremely fast in waveguides, in order for the detector to accurately detect the pulsed optical signal after coupling by the coupler, the detector clock period (detection period) must be equal to or less than the cycle period of the pulsed optical signal in the waveguide loop. This can be achieved, for example, by adjusting the waveguide loop length or selecting a detector with a shorter clock period.

[0010] In one feasible manner, a waveguide loop enters a first entrance of a coupler and exits a first exit of the coupler, and a second waveguide enters a second entrance of the coupler and exits a second exit of the coupler; the first waveguide is used to transmit a pulsed optical signal into the waveguide loop in a direction toward the first entrance of the coupler.

[0011] In the solution shown in the embodiment of the present application, the coupler has a dual-input and dual-output structure. On the actual chip, the waveguide circuit 7 can be a closed loop composed of waveguides, which can be a ring, a rounded rectangle, etc. The shape of the waveguide circuit 7 is not limited here, as long as it can meet the requirements of the pulsed light signal being circulated in the waveguide circuit. The coupler 3 can be mounted on the waveguide circuit 7, that is, the waveguide circuit can enter from the first entrance of the coupler and exit from the first exit of the coupler. This structure can be realized when processing the optical chip and belongs to the prior art. The second waveguide can enter from another second entrance of the coupler and exit from the second exit. In this way, the coupler can couple the pulsed light signal in the waveguide circuit with the continuous light signal in the second waveguide. In addition, the first waveguide can be connected to the waveguide circuit, and when the pulsed light signal is transmitted into the waveguide circuit 7 through the first waveguide 5, the corresponding input direction can be toward the first entrance of the coupler, so that the pulsed light signal can enter the coupling area in the coupler for coupling.

[0012] In one achievable manner, the divider further comprises an optical switch, the optical switch having a control port, a first port, and a plurality of second ports, the waveguide circuit comprising a third waveguide and a plurality of fourth waveguides; the first waveguide is connected to the third waveguide to transmit the pulsed optical signal into the third waveguide in the direction of the coupler; the control port of the optical switch is electrically connected to the controller; the first port of the optical switch is electrically connected to the first end of the third waveguide, the second ports of the optical switch are electrically connected to the first end of each fourth waveguide respectively; the second end of the third waveguide is electrically connected to the second end of each fourth waveguide respectively; the optical switch connects the first port to any of the plurality of second ports A switching device is provided in which a designated second port is connected so that a third waveguide forms a waveguide loop with a fourth waveguide connected to any designated second port, wherein when the optical switch connects the first port to different second ports respectively, the third waveguide forms waveguide loops with different fourth waveguides respectively with different circumferences, and among the waveguide loops with different circumferences, the waveguide loop with the longest circumference is an integer multiple of the circumferences of the other waveguide loops; a coupler is used to couple a pulsed optical signal in the third waveguide with a continuous optical signal in the second waveguide; and a detector is used to detect the amplitude of the pulsed optical signal in the third waveguide after each coupling.

[0013] In the solution shown in the embodiment of the present application, the third waveguide and multiple fourth waveguides can form waveguide loops of different circumferences through an optical switch. The optical switch can control the third waveguide and one of the fourth waveguides to be conductive, while disconnecting the other fourth waveguides. In other words, in the solution of the embodiment of the present application, the optical switch can control the third waveguide to be conductive only with one of the fourth waveguides, respectively, to form waveguide loops of different circumferences. In this way, the pulsed light signal can be circulated in the waveguide loop with a shorter circumference, which can increase the frequency of the pulsed light signal coupling and speed up the execution of the division operation.

[0014] In one achievable manner, the controller is configured to determine an estimated value of a quotient corresponding to the dividend and the divisor based on the value of the dividend; determine a conduction duration corresponding to a fourth waveguide constituting the other waveguide loops based on the estimated value and a ratio of a circumference of the waveguide loop with the longest circumference to the circumference of the other waveguide loops; control the optical switch to sequentially conduct the fourth waveguides constituting the other waveguide loops based on an order of the circumferences of the other waveguide loops from short to long and the conduction duration corresponding to the fourth waveguides constituting the other waveguide loops; and control the optical switch to sequentially conduct the fourth waveguides constituting the other waveguide loops after controlling the conduction duration corresponding to the last fourth waveguide in the fourth waveguide constituting the other waveguide loops to be conducted. The optical switch turns on the fourth waveguide corresponding to the waveguide loop with the longest circumference and sends a start detection instruction to the detector; the detector is used to, after receiving the start detection instruction, detect the amplitude of the pulsed light signal after each coupling in the waveguide loop with the longest circumference and send the detected amplitude to the controller; the controller is used to determine the first number of times that the detector 4 has cumulatively detected the pulsed light signal after the coupling process when the target amplitude sent by the detector is less than the amplitude of the pulsed light signal; and determine the quotient corresponding to the divisor and the dividend based on the first number and the conduction time of each other waveguide loop.

[0015] In the solution shown in the embodiment of the present application, the controller estimates the divisor and the dividend to obtain the estimated value, and then the corresponding conduction time of the fourth waveguide can be determined by the circumference of each waveguide loop composed of the fourth waveguide and the estimated value, thereby improving the execution speed of the division operation.

[0016] In one feasible manner, the controller determines the estimated value as a reference value, determines the largest circumference ratio among the circumference ratios of the waveguide loop with the longest circumference and the other waveguide loops as the reference circumference ratio; determines a first quotient and a first remainder of the reference circumference ratio divided by the reference value; determines the product of the cycle period of the pulsed light signal in the waveguide loop with the longest circumference and the first quotient as the conduction time of the fourth waveguide corresponding to the reference circumference ratio; obtains the next circumference ratio corresponding to the reference circumference ratio from the circumference ratios in descending order, determines the next circumference ratio as the reference circumference ratio, determines the first remainder as the reference value, and proceeds to determine the first quotient and the first remainder of the reference circumference ratio divided by the reference value, until the conduction time of the fourth waveguide corresponding to each circumference ratio is determined.

[0017] The solution shown in the embodiment of the present application determines the corresponding conduction time of the fourth waveguide according to the circumference of the waveguide loop composed of each fourth waveguide, thereby enabling the pulsed light signal to be circulated and transmitted in the waveguide loop with a shorter circumference, thereby improving the execution speed of the division operation.

[0018] In one achievable manner, the controller is configured to determine a ratio of a conduction duration corresponding to a fourth waveguide constituting the other waveguide circuits to a duration corresponding to a cycle period of a pulsed light signal in the waveguide circuit with the longest circumference; determine a product of the duration ratio and the circumference ratio corresponding to each waveguide circuit in the other waveguide circuits; sum the corresponding product of each waveguide circuit in the other waveguide circuits and a first denominator; and determine the summed value as a quotient corresponding to the divisor and the dividend.

[0019] In the solution shown in the embodiment of the present application, the controller can calculate the number of times the amplitude of the pulse light signal is subtracted in other waveguide loops by the ratio of the conduction time corresponding to each fourth waveguide and the cycle time of the pulse light signal waveguide loop, and add the first number of times the pulse light signal circulates in the longest waveguide loop to obtain the divisor and the dividend to obtain the quotient. In this way, the detector only needs to start detecting the pulse light signal after the pulse light signal is transmitted into the longest waveguide loop, which can reduce the number of times the detector detects the pulse light signal and improve the execution speed of the division operation.

[0020] In one achievable manner, the controller is used to control the optical switch to conduct the third waveguide with the fourth waveguide with the shortest length corresponding to each of the fourth waveguides; the detector is used to detect the amplitude of the pulsed light signal in the third waveguide after being coupled by the coupler 3, and send the detected amplitude to the controller; the controller is used to obtain a preset amplitude threshold corresponding to the fourth waveguide currently in the conducting state, and when the amplitude sent by the receiving controller 8 is less than the preset amplitude threshold, it is determined that the controller 8 detects the second number of pulsed light signals during the conduction of the fourth waveguide currently in the conducting state, and determines the next fourth waveguide, wherein the next fourth waveguide is the fourth waveguide with the smallest difference in length from the fourth waveguide currently in the conducting state, and is longer than the fourth waveguide currently in the conducting state. waveguide; determine whether the next fourth waveguide is the fourth waveguide with the longest length among the fourth waveguides; if not, control the optical switch to turn on the next fourth waveguide, and switch to executing to determine the preset amplitude threshold corresponding to the fourth waveguide currently in the on state; if yes, receive the amplitude sent by the controller, and when it is determined that the target amplitude sent by the received detector 4 is less than the amplitude of the continuous optical signal, determine that during the process of the fourth waveguide currently in the on state being turned on, the controller 8 detects the third number of the pulsed optical signal; determine the quotient corresponding to the divisor and the dividend based on the second numbers corresponding to the other fourth waveguides except the fourth waveguide with the longest length, the third number corresponding to the fourth waveguide with the longest length, and the ratio of the circumference of the waveguide loop with the longest circumference to the circumference of the other waveguide loops.

[0021] The solution shown in the embodiment of the present application sets a corresponding amplitude threshold for the waveguide circuit composed of the fourth waveguide, compares the amplitude of the pulsed light signal in the waveguide circuit detected by the detector with the corresponding amplitude threshold, and then controls the cyclic transmission of the pulsed light signal at different circumferences. This can shorten the time it takes for the divider to perform the division operation, thereby increasing the execution speed of the division operation.

[0022] In one achievable manner, the controller determines the product of the second number corresponding to each fourth waveguide and the corresponding perimeter ratio in the other fourth waveguides, sums the product corresponding to each fourth waveguide and the third number, and determines the summed value as the quotient corresponding to the divisor and the dividend.

[0023] The solution shown in the embodiment of the present application determines the number of times the pulse light signal is coupled in the waveguide circuit composed of the non-longest fourth waveguide (that is, the product of the second number corresponding to each fourth waveguide and the corresponding perimeter ratio), and then determines the quotient corresponding to the divisor and the dividend based on the number of times the pulse light signal is coupled in the waveguide circuit composed of the longest fourth waveguide (the third number).

[0024] In one achievable manner, the detector detection period is less than or equal to the cycle period of the pulse light signal in the waveguide loop with the longest circumference.

[0025] In the solution shown in the embodiment of this application, the detector detection period is less than or equal to the cycle period of the pulse light signal in the waveguide loop with the longest circumference. The waveguide loop with the longest circumference is an integer multiple of the circumferences of the other waveguide loops. In this way, each time the detector detects a pulse light signal from another waveguide loop, the pulse light signal actually undergoes multiple coupling. This reduces the number of pulse light signal detections by the detector and improves the execution speed of the division operation.

[0026] In a second aspect, an optical processor is provided, which includes the divider as described in the first aspect and possible implementations thereof.

[0027] The beneficial effects of the technical solution provided by the embodiments of the present application are:

[0028] In the solution shown in the embodiment of the present application, the amplitude of the pulsed light signal emitted by the first light signal source can represent the dividend, and the amplitude of the continuous light signal emitted by the second light signal source can represent the divisor. The pulsed light signal emitted by the first light signal source can be transmitted into the waveguide loop through the first waveguide for cyclic transmission. The continuous light signal emitted by the second light signal source can be transmitted into the second waveguide. The coupler can couple the pulsed light signal cyclically transmitted in the waveguide loop with the continuous light signal transmitted in the second waveguide. After each coupling, the amplitude of the pulsed light signal is the amplitude before coupling minus the amplitude of the continuous light signal. In other words, each time the pulsed light signal is cyclically transmitted in the waveguide loop, the corresponding amplitude is subtracted once. In this way, the pulsed light signal is cyclically transmitted multiple times in the waveguide loop. When the amplitude of the pulsed light signal is subtracted to be less than the amplitude of the continuous light signal, the number of times the pulsed light signal is cyclically transmitted in the waveguide loop is the quotient corresponding to the dividend and the divisor, and the amplitude of the pulsed light signal is the remainder corresponding to the dividend and the divisor. It can be seen that the divider provided in this application can be used in an optical chip to implement division operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 is a schematic diagram of a divider provided in an embodiment of the present application;

[0030] Figure 2 is a schematic diagram of a coupler provided in an embodiment of the present application;

[0031] Figure 3 is a schematic diagram of a divider provided in an embodiment of the present application;

[0032] Figure 4 1 is a schematic diagram of a method for performing a division operation by a divider provided in an embodiment of the present application;

[0033] Figure 5 This is a schematic diagram of a method for performing division operation by a divider provided in an embodiment of the present application.

[0034] Legend

[0035] 1. First optical signal source; 2. Second optical signal source; 3. Coupler;

[0036] 4. Detector; 5. First waveguide; 6. Second waveguide;

[0037] 7. Waveguide circuit; 8. Controller; 9. Optical switch;

[0038] 91. Control port; 92. First port; 93. Second port;

[0039] 10. Third waveguide; 11. Fourth waveguide. DETAILED DESCRIPTION

[0040] The embodiment of the present application provides a divider, such as Figure 1 As shown, the divider includes: a first optical signal source 1, a second optical signal source 2, a coupler 3, a detector 4, a first waveguide 5, a second waveguide 6, a waveguide loop 7, and a controller 8, wherein the detector 4 is electrically connected to the controller 8; the first optical signal source 1 is used to emit a pulsed optical signal, and the first waveguide 5 is used to transmit the pulsed optical signal into the waveguide loop 7 for cyclic transmission, wherein the ratio of the amplitude of the pulsed optical signal to the dividend is equal to a preset ratio; the second optical signal source 3 is used to emit a continuous optical signal and transmit the continuous optical signal into the second waveguide 6, wherein the ratio of the amplitude of the continuous optical signal to the divisor is equal to a preset ratio;

[0041] The coupler 3 is configured to couple the continuous optical signal in the second waveguide 6 with the pulsed optical signal in the waveguide loop 7, wherein the amplitude of the coupled pulsed optical signal is equal to the amplitude of the pulsed optical signal before coupling minus the amplitude of the continuous optical signal. The detector 4 is configured to detect the amplitude of the pulsed optical signal in the waveguide loop 7 after each coupling and transmit the detected amplitude to the controller 8. The controller 8 is configured to, when the target amplitude received from the detector 4 is less than the amplitude of the continuous optical signal, determine the cumulative number of times the detector 4 has detected the coupled pulsed optical signal, determine the number of times as the quotient corresponding to the divisor and the dividend, and determine the product of the target amplitude and the preset ratio as the remainder corresponding to the divisor and the dividend.

[0042] The divider provided in the present application can be applied in an optical chip. The amplitude of the pulsed light signal represents the dividend, and the amplitude of the continuous light signal represents the divisor. The pulsed light signal is controlled to be circulated in the waveguide circuit 7, and each time it circulates to the coupler, it can be subtracted from the amplitude of the continuous light signal. In this way, the detector 4 can detect the number of times the amplitude of the pulsed light signal is "subtracted" to determine the quotient of the divisor and the dividend, and the corresponding remainder can be determined based on the amplitude of the pulsed light signal after "subtraction". It can be seen that the divider provided in the present application can be applied in an optical chip, and has a simple structure and can realize integer quotient and remainder operations.

[0043] The following is an exemplary description of the first optical signal source 1, the second optical signal source 2, the coupler 3, the detector 4, the first waveguide 5, the second waveguide 6, the waveguide circuit 7, and the controller 8:

[0044] The first optical signal source 1 is a signal source that emits a pulsed optical signal. It can be an on-chip pulsed laser in a semiconductor, or an external pulsed laser coupled into an optical chip via fiber coupling. The amplitude of the pulsed optical signal emitted by the first optical signal source 1 can be controlled by applying different voltages or currents.

[0045] The second optical signal source 2 is a signal source that emits a continuous optical signal. It can be an on-chip pulsed laser in a semiconductor, or an external pulsed laser coupled into the optical chip via fiber coupling. The amplitude of the continuous optical signal emitted by the second optical signal source 2 can be controlled by applying different voltages or currents. The center wavelengths used by the first and second optical signal sources can be the same.

[0046] Coupler 3 can utilize an on-chip directional coupler design with dual input and dual output, allowing the two input optical signals to interfere with each other and be output through two outputs. Technicians can pre-design the coupling distance between the waveguides to control the coupling coefficient, so that the coupling effect of coupler 3 is such that, after the pulsed light signal and the continuous light signal interfere through coupler 3, the amplitude of the coupled pulsed light signal is the difference between the corresponding amplitudes of the pulsed light signal and the continuous light signal before coupling. Alternatively, an active Mach–Zehnder interferometer (MZI) device can be used in place of the directional coupler, and the coupling coefficient can be adjusted by thermal or electrical tuning before the system is operational to achieve the aforementioned coupling effect.

[0047] The detector 4 may include a spectrometer module and a detection module. Technicians can pre-set the splitting ratio and collect the pulse light signal corresponding to the splitting ratio of the waveguide circuit through the spectrometer module. The detection module is used to detect the amplitude of the pulse light signal.

[0048] The first waveguide 5 and the second waveguide 6 may be common on-chip waveguide structures, and may be made of materials such as SiO2 (silicon dioxide), SiNO (silicon oxynitride), SiN (silicon nitride), and Si (silicon).

[0049] The waveguide loop 7, which forms the waveguide of the loop structure, can be made of the same material as the first waveguide 5 and the second waveguide 6. The cross-sectional dimensions of the first waveguide 5, the second waveguide 6, and the waveguide loop 7 can be identical. The shape of the waveguide loop 7 is not particularly limited; for example, it can be annular, rectangular, or similar, as long as it allows the optical signal to circulate within the waveguide loop 7. Furthermore, the cycle period (the duration of one transmission) of the pulsed optical signal within the waveguide loop 7 can be the same as the detection period of the detector 4 to ensure that the detector 4 can detect the pulsed optical signal circulating within the waveguide loop 7. Based on this, the length of the waveguide loop 7 can be adjusted.

[0050] The controller 8 can be an external or built-in electric chip, and can include a processing module and a storage module. The storage module can store the amplitude of the pulse light signal detected by the detector 4, and the processor can compare the amplitude of the pulse light signal received by the detector 4 with the amplitude of the continuous light signal. In addition, the controller 8 can be electrically connected with the first light signal source 1 and the second light signal source 2. The controller 8 can obtain the values of the dividend and the divisor, determine the amplitudes of the pulse light signal and the continuous light signal according to the values of the dividend and the divisor respectively, and then apply corresponding voltage or current to the first light signal source 1 to make the first light signal source 1 emit the pulse light signal with the corresponding amplitude, and apply corresponding voltage or current to the second light signal source 2 to make the second light signal source 2 emit the continuous light signal with the corresponding amplitude.

[0051] The structure of the divider shown in Figure 1 will be described in detail below:

[0052] As shown in Figure 1 , the divider includes a first light signal source 1, a second light signal source 2, a coupler 3, a detector 4, a first waveguide 5, a second waveguide 6, a waveguide loop 7, and a controller 8.

[0053] The first light signal source 1 can be connected with the first waveguide 5, and the first waveguide 5 can be in conduction with the waveguide loop 7. The pulse light signal emitted by the first light signal source can be transmitted into the waveguide loop 7 through the first waveguide 5, and the pulse light signal transmitted into the waveguide loop 7 can be circulated in the waveguide loop 7. The second light signal source 2 can be connected with the second waveguide 6 to transmit the continuous light signal emitted by the second light signal source 2 into the second waveguide 6.

[0054] The coupler 3 can couple the pulse light signal circulated in the waveguide loop 7 with the continuous light signal transmitted in the second waveguide 6. As shown in Figure 2 , the coupler 3 has a double-in and double-out structure, and includes a first inlet, a second inlet, a first outlet, and a second outlet. The waveguide loop 7 enters the coupler 3 from the first inlet and exits the coupler 3 from the first outlet, and the second waveguide 6 enters the coupler 3 from the second inlet and exits the coupler 3 from the second outlet. The first waveguide 5 is used to transmit the pulse light signal into the waveguide loop 7 in a direction towards the first inlet of the coupler 3.

[0055] The coupler is a double-in double-out structure, and in the optical chip, the coupler 3 can be "nested" on the waveguide loop 7, that is, the waveguide loop 7 can pass into the first inlet of the coupler 3 and pass out of the first outlet of the coupler 3. This structure can be realized when the optical chip is processed, and belongs to the prior art. The second waveguide 6 can pass into the second inlet of the coupler 3 and pass out of the second outlet. In this way, the coupler 3 can couple the pulsed light signal in the waveguide loop 7 and the continuous light signal in the second waveguide 6. The coupled pulsed light signal can be transmitted out of the first outlet and continue to circulate in the waveguide loop 7. The energy lost by the pulsed light signal after coupling and the continuous light signal in the second waveguide 6 can be transmitted out of the second waveguide after the second outlet.

[0056] In addition, the detector 4 can be arranged at a position adjacent to the waveguide loop 7, that is, the detector 4 can be close to part of the waveguide in the waveguide loop 7, and the detector 4 can detect the amplitude of the pulsed light signal when the pulsed light signal passes through the part of the waveguide. The first waveguide 5 and the waveguide loop 7 can be in a conducting position, which is between the first inlet of the coupler 3 and the detection position of the waveguide loop 7 detected by the detector 4. Moreover, the first waveguide 5 can be combined with the waveguide loop 7 in a Y shape, and the first waveguide 5 can form an acute angle with the waveguide loop 7 at the conducting position and point to the direction of the coupler 3, so that after the pulsed light signal is transmitted into the waveguide loop 7 through the first waveguide 5, the pulsed light signal is transmitted in the direction of the first inlet of the coupler 3.

[0057] Corresponding Figure 1 The structure of the divider shown in the figure is as follows:

[0058] 1) The first light signal source 1 emits a pulsed light signal, and the first waveguide 5 transmits the pulsed light signal into the waveguide loop 7 for circulation, wherein the ratio of the amplitude of the pulsed light signal to the dividend is equal to the preset ratio.

[0059] 2) The second light signal source 2 emits a continuous light signal, and transmits the continuous light signal into the second waveguide 6, wherein the ratio of the amplitude of the continuous light signal to the divisor is equal to the preset ratio.

[0060] Before the divider needs to perform a division calculation, the controller 8 (or other module for implementing the control function) can obtain the divisor and the dividend. A corresponding voltage or current can be applied to the first optical signal source 1 so that the ratio of the amplitude of the pulsed light signal emitted by the first optical signal source 1 to the dividend is equal to a preset ratio, and the dividend is represented by the amplitude of the pulsed light signal. For example, the preset ratio can be 1 to 1, that is, the amplitude of the pulsed light signal is equal to the dividend. Similarly, a corresponding voltage or current can be applied to the second optical signal source 2 so that the ratio of the amplitude of the continuous light signal emitted by the second optical signal source 2 to the divisor is equal to a preset ratio, and the dividend is represented by the amplitude of the continuous light signal. For example, the preset ratio can be 1 to 1, that is, the amplitude of the continuous light signal is equal to the divisor.

[0061] 3) The coupler 3 couples the continuous optical signal in the second waveguide 6 and the pulse optical signal in the waveguide loop 7. The amplitude of the pulse optical signal after coupling is equal to the amplitude of the pulse optical signal before coupling minus the amplitude of the continuous optical signal.

[0062] After the pulsed light signal from the first optical signal source 1 enters the waveguide circuit 7, it passes through the coupler 3 and couples with the continuous light signal in the second waveguide 6. The amplitude of the coupled pulsed light signal is equal to the amplitude of the pre-coupling pulsed light signal minus the amplitude of the continuous light signal. The coupled pulsed light signal can then continue to propagate through the waveguide circuit 7, passing through the coupler 3 again to couple with the continuous light signal in the second waveguide 6. In this way, each time the pulsed light signal circulates through the waveguide circuit 7, the corresponding amplitude is reduced by the amplitude of the continuous light signal (that is, each time the pulsed light signal circulates through the waveguide circuit 7, the dividend is reduced by the divisor).

[0063] 4) The detector 4 detects the amplitude of the pulsed light signal after each coupling in the waveguide circuit 7 and sends the detected amplitude to the controller 8 .

[0064] 5) When the target amplitude received from the detector 4 is less than the amplitude of the continuous light signal, the controller 8 can determine the number of times the detector 4 has cumulatively detected the pulsed light signal after the coupling process, determine the number of times as the quotient corresponding to the divisor and the dividend, and determine the product of the target amplitude and the preset ratio as the remainder corresponding to the divisor and the dividend.

[0065] After each amplitude value received from detector 4, controller 8 compares the received amplitude value with the amplitude of the continuous signal corresponding to the divisor. If the target amplitude value transmitted by detector 4 is determined to be less than the amplitude of the continuous light signal, this indicates that the amplitude of the pulsed light signal can no longer pass through coupler 3 to achieve the subtraction effect. At this point, the number of times detector 4 has cumulatively detected the coupled pulsed light signal can be determined. This number can be the number of times controller 8 has received the amplitude values ​​transmitted by detector 4, and this number is the quotient corresponding to the divisor and the dividend. The corresponding target amplitude value, representing the corresponding remainder, can be determined by multiplying the target amplitude value by a preset ratio.

[0066] For example, if the dividend is 21 and the divisor is 2, the corresponding amplitude of the pulse light signal is 21, and the amplitude of the continuous light signal is 2. Thus, each time the pulse light signal circulates through the waveguide circuit 7, the amplitude of the corresponding pulse light signal is subtracted by 2. After 10 subtractions, the amplitude of the pulse light signal is 1 (21-10×2). The detector 4 sends the pulse light signal amplitude of 1 to the controller 8 on the 10th cycle. The controller 8 can determine 10 as the quotient of 21 and 2, and the amplitude of 1 as the quotient of 21 and 2.

[0067] Furthermore, when controller 8 determines that the target amplitude transmitted by detector 4 is less than the amplitude of the continuous light signal, it can control detector 4 to cease detection and control the second light signal source to cease emitting the continuous light signal. Alternatively, a technician can pre-set the duration of the continuous light signal. This duration can be set by the technician based on the actual calculation scenario and is not limited herein.

[0068] It can be seen that the divider provided by the present application can be applied to optical chips. The amplitude of the pulsed light signal represents the dividend, and the amplitude of the continuous light signal represents the divisor. The pulsed light signal is controlled to be circulated in the waveguide circuit 7, and each time it circulates to the coupler, it can be subtracted from the amplitude of the continuous light signal. In this way, the detector 4 can detect the number of times the amplitude of the pulsed light signal is "subtracted" to determine the quotient of the divisor and the dividend, and the corresponding remainder can be determined based on the amplitude of the pulsed light signal after "subtraction". It can be seen that the divider provided by the present application can be applied to optical chips, and has a simple structure and can realize integer quotient and remainder operations.

[0069] This application also provides another divider:

[0070] like Figure 3 As shown, the divider Figure 1The divider shown in FIG. 1 further includes an optical switch 9, a waveguide circuit 7 including a third waveguide 10 and a plurality of fourth waveguides 11, the optical switch 9 having a control port 91, a first port 92, and a plurality of second ports 93, the waveguide circuit 7 including the third waveguide 10 and the plurality of fourth waveguides 11; the first waveguide 5 is connected to the third waveguide 10 to transmit the pulsed optical signal into the third waveguide 10 in the direction of the coupler 3; the control port 91 of the optical switch 9 is electrically connected to the controller 8; the first port 92 of the optical switch 9 is electrically connected to the first end of the third waveguide 10, and each second port 93 of the optical switch 9 is electrically connected to the first end of each fourth waveguide 11; the second end of the third waveguide 10 is electrically connected to the second end of each fourth waveguide 11; the optical switch 9 is electrically connected to the first end of the third waveguide 10. A switching device is provided, wherein a first port 92 is electrically connected to any designated second port 93 among a plurality of second ports 93, so that the third waveguide 10 and the fourth waveguide 11 connected to the designated second port 93 form a waveguide loop 7. When the optical switch 9 electrically connects the first port 92 to different second ports 93, the third waveguide 10 forms waveguide loops 7 with different circumferences with different fourth waveguides 11, and among the waveguide loops 7 with different circumferences, the waveguide loop 7 with the longest circumference is an integer multiple of the circumferences of the other waveguide loops 7. A coupler 3 is configured to couple a pulsed optical signal in the third waveguide 10 with a continuous optical signal in the second waveguide 6. A detector 4 is configured to detect the amplitude of each coupled pulsed optical signal in the third waveguide 10.

[0071] Next, Figure 3 The structure of the divider is shown in detail:

[0072] exist Figure 3 In the embodiment, a first optical signal source 1 can be connected to a first waveguide 5, which can be electrically conductive with a waveguide circuit 7. A pulsed optical signal emitted by the first optical signal source can be transmitted into the waveguide circuit 7 via the first waveguide 5. The pulsed optical signal transmitted into the waveguide circuit 7 can be circulated within the waveguide circuit 7. A second optical signal source 2 can be connected to a second waveguide 6, transmitting a continuous optical signal to the second waveguide 6 for transmission. A detector 4 is used to detect each pulsed optical signal after coupling in the waveguide circuit 7.

[0073] Among them, Figure 1 The difference between the divider and Figure 3 In the illustrated divider, the waveguide circuit 7 can be composed of a third waveguide 10 and multiple fourth waveguides 11. The optical switch 9 includes a control port 91, a first port 92, and multiple second ports 93. One end (first end) of the third waveguide 10 can be connected to the control port 91, and the other end (second end) can be connected to one end (second end) of the multiple fourth waveguides 11. The other ends of the fourth waveguides 11 can be connected to the multiple second ports 93.

[0074] The control port 91 of the optical switch 9 can be electrically connected with the controller 8, and can receive a turn-on instruction sent by the controller 8 to control the first port 92 to connect the third waveguide 10 and the fourth waveguide 11 corresponding to the second port 93 corresponding to the turn-on instruction to turn on, thereby forming the waveguide loop 7 formed by the third waveguide 10 and the fourth waveguide 11. Wherein, the first port 92 of the optical switch 9 can only be connected with one second port 93 at a time. In this way, when the first port 92 is connected with different second ports 93, the third waveguide 10 can be connected with different fourth waveguides 11 to form different waveguide loops 7.

[0075] Wherein, the third waveguide 10 can be considered as a common waveguide part in the different waveguide loops 7, and the fourth waveguide 11 can be a waveguide part that is not common in each waveguide loop 7. As shown in Figure 3 The first waveguide 1 can be connected with the third waveguide 10, and the pulsed light signal emitted by the first light signal source can be transmitted into any waveguide loop 7 through the first waveguide 1. The coupler 3 can be arranged in the third waveguide part, thereby coupling the pulsed light signal in any waveguide loop 7, and the detector 4 can detect the pulsed light signal in the third waveguide part. The controller 8 can control the optical switch 9 through the control port 91 to connect the first port 92 with different second ports 93, thereby connecting the third waveguide 10 with the corresponding fourth waveguide 11, and connecting the waveguide loop 7 formed by the third waveguide 10 and the corresponding fourth waveguide 11.

[0076] For the divider as shown in Figure 3 The present application provides two implementation manners for performing division operation, as follows:

[0077] Figure 4 is a schematic diagram of a method for performing division operation by a divider provided by the present application, referring to Figure 4 The method comprises the following steps:

[0078] In step 401, the controller 8 determines an estimated value of the quotient corresponding to the dividend and the divisor based on the value of the dividend, and determines the turn-on duration of the fourth waveguide 11 corresponding to other waveguide loops 7 based on the estimated value, the ratio of the perimeter of the longest waveguide loop 7 to the perimeters of other waveguide loops 7.

[0079] Wherein, the process of determining the estimated value of the quotient corresponding to the dividend and the divisor can be preset by the technician. In some calculation scenarios, when the value of the dividend is determined, the quotient corresponding to the dividend will be within a certain range. Therefore, the controller can be provided with a corresponding relationship between the range of the dividend and the estimated value of the quotient, which can be set by the technician according to the actual calculation task. After obtaining the value of the dividend, the estimated value of the quotient can be determined according to the corresponding relationship.

[0080] Step 402, the controller 8 controls the optical switch 9 to turn on the fourth waveguide 11 of the other waveguide loop 7 in turn based on the order from short to long of the perimeters of the other waveguide loop 7 and the turn-on time length of the fourth waveguide 11 corresponding to the other waveguide loop 7.

[0081] After obtaining the estimated value of the quotient, the turn-on time of the fourth waveguide 11 of each waveguide loop 7 can be determined in turn. Each turn-on time is an integral multiple of the cycle period of the pulsed light signal in the waveguide loop 7 with the longest perimeter. The process of determining the turn-on time of each waveguide loop 7 is as follows:

[0082] Step 4021, the controller 8 determines the estimated value as the reference value, and determines the largest perimeter ratio corresponding to the longest perimeter among the perimeter ratios of each of the other waveguide loops 7 as the reference perimeter ratio.

[0083] For example, the dividend A = 4352, the divisor is 7, and the estimated value corresponding to the dividend is determined to be 580. It is assumed that the divider includes three fourth waveguides 11, which can form three waveguide loops 7 with different perimeters with the third waveguide 10. It is assumed that the perimeter ratio of the shortest waveguide loop 7 (which can be referred to as the first waveguide loop hereinafter) to the longest waveguide loop 7 (which can be referred to as the third waveguide loop hereinafter) is 100, and the perimeter ratio of the second shortest waveguide loop 7 (which can be referred to as the second waveguide loop hereinafter) to the third waveguide loop is 10. In this way, the reference value is 580, and the reference perimeter ratio is 100.

[0084] Step 4022, determine the first quotient and the first remainder when the reference perimeter ratio is divided by the reference value.

[0085] When the reference value is 580 and the reference perimeter ratio is 100, the corresponding first quotient is 5 and the first remainder is 80.

[0086] Step 4023, determine the turn-on time length of the fourth waveguide 11 corresponding to the reference perimeter ratio as the product of the cycle period of the pulsed light signal in the waveguide loop 7 with the longest perimeter and the first quotient.

[0087] According to step 4022, the turn-on time length of the fourth waveguide 11 corresponding to the reference perimeter ratio is 5T, where T is the cycle period of the pulsed light signal in the third waveguide loop.

[0088] It should be noted that the process of performing division calculation in steps 4022 and 4023 is completed in the controller 8 (in the electrical chip). The values of the divisor and the dividend involved in the division calculation in this part are relatively small, and the value of the dividend is basically unchanged in the same batch of division calculation tasks. Therefore, the controller 8 only needs to allocate the turn-on time of each waveguide loop once according to the value of the dividend, and the same batch of division calculation tasks can be executed through the above-mentioned divider. Figure 3 ​

[0089] Step 4024: Based on the order from largest to smallest, obtain the next perimeter ratio corresponding to the reference perimeter ratio from each perimeter ratio, determine the next perimeter ratio as the reference perimeter ratio, determine the first remainder as the reference value, and proceed to determine the first quotient and the first remainder of the reference perimeter ratio divided by the reference value, until the conduction time of the fourth waveguide 11 corresponding to each perimeter ratio is determined.

[0090] After determining the conduction time of the fourth waveguide 11 corresponding to the reference circumference ratio, the next circumference ratio corresponding to the reference circumference ratio can be obtained from each circumference ratio, the next circumference ratio is determined as the reference circumference ratio, the first remainder is determined as the reference value, and then the process proceeds to step 4022 until the conduction time of the fourth waveguide 11 corresponding to each circumference ratio is determined.

[0091] From step 4021, it can be seen that the corresponding next perimeter ratio is 10. From step 4022, it can be seen that the first remainder is 80. Therefore, the reference value can be determined to be 80, and the reference perimeter ratio is 10, and the process proceeds to step 4022. In this way, the conduction time of the fourth waveguide 11 (hereinafter referred to as the fifth waveguide) constituting the first waveguide circuit is 5T, and the conduction time of the fourth waveguide 11 (hereinafter referred to as the sixth waveguide) constituting the second waveguide circuit is 8T.

[0092] Step 403: After controlling the last fourth waveguide 11 of the fourth waveguides 11 constituting the other waveguide circuits 7 to be turned on for a corresponding conduction time, the controller 8 controls the optical switch 9 to turn on the fourth waveguide 11 corresponding to the waveguide circuit 7 with the longest circumference.

[0093] Step 404: Send a start detection instruction to the detector 4.

[0094] After sequentially controlling the optical switch 8 to turn on the fifth waveguide 5T and the sixth waveguide 8T, the controller 8 can control the optical switch 9 to turn on the fourth waveguide 11 corresponding to the waveguide loop 7 with the longest circumference, and send a detection start instruction to the detector 4 .

[0095] Step 405 : After receiving the detection start instruction, the detector 4 detects the amplitude of the pulse light signal after each coupling in the waveguide loop 7 with the longest circumference.

[0096] Step 406 : Send the detected amplitude to the controller 8 .

[0097] After receiving the start detection command, detector 4 can detect the amplitude of the pulsed light signal after each coupling in the seventh waveguide and send the detected amplitude to controller 8. Since the pulsed light signal has circulated for 5T in the first waveguide loop and for 8T in the second waveguide loop, it has undergone multiple couplings. Since the circumference ratio of the first waveguide loop to the third waveguide loop is 100, the pulsed light signal circulates 100 times more in the first waveguide loop than in the third waveguide loop within the same period of time. Therefore, within 5T, the pulsed light signal undergoes 500 couplings in the first waveguide loop. Thus, when the pulsed light signal enters the second waveguide loop, the corresponding amplitude is 852 (4352 - 500 × 7). Similarly, the pulsed light signal has circulated for 8T in the second waveguide loop, undergoing 80 (8 × 10) couplings. Therefore, when the pulsed light signal enters the third waveguide loop, the corresponding amplitude is 292 (852 - 80 × 7). At this time, when the pulse light signal is circulated in the third waveguide loop, the corresponding amplitude is reduced by 7 each time it passes through coupling.

[0098] In step 407, when the target amplitude sent by the receiving detector 4 is less than the amplitude of the pulsed light signal, the controller 8 determines a first number of times that the detector 4 has cumulatively detected the pulsed light signal after the coupling process; and based on the first number and the conduction time of each other waveguide circuit 7, determines a quotient corresponding to the divisor and the dividend.

[0099] When the target amplitude transmitted by the receiving detector 4 is less than the amplitude of the pulsed light signal, the controller 8 can determine a first number of times the detector 4 has cumulatively detected the coupled pulsed light signal. This first number is the number of times the pulsed light signal has circulated through the waveguide loop 7 with the longest circumference. After determining the first number, the quotient corresponding to the divisor and the dividend can be determined based on the first number and the conduction duration of each of the other waveguide loops 7.

[0100] Among them, the controller 8 determines the ratio of the conduction time corresponding to the fourth waveguide 11 constituting the other waveguide circuits 7 to the time corresponding to the cycle period of the pulse light signal in the waveguide circuit 7 with the longest circumference; determines the product of the time ratio corresponding to each waveguide circuit 7 in the other waveguide circuits 7 and the circumference ratio, sums the corresponding product of each waveguide circuit 7 in the other waveguide circuits 7 and the first digit, and determines the value obtained by the sum as the quotient corresponding to the divisor and the dividend.

[0101] Corresponding to step 4) above, the controller 8 can receive the amplitude of the pulsed light signal detected in the third waveguide loop sent by the detector 4. When the target amplitude sent by the detector 4 received by the controller 8 is less than 7, where the target amplitude is 5 (292-41×7), the first number of times the detector 4 has cumulatively detected the pulsed light signal after the coupling process is determined, where the first number is 41. The ratio of the conduction duration corresponding to the fourth waveguide 11 constituting the other waveguide loops 7 to the duration corresponding to the cycle period of the pulsed light signal in the waveguide loop 7 with the longest circumference is determined (the first waveguide loop has a corresponding ratio of 100, and the second waveguide loop has a corresponding ratio of 10). The quotient corresponding to the divisor and the dividend is determined based on the corresponding first number, the duration ratio, and the circumference ratio. That is, the corresponding quotient is 621 (5×100+8×10+41=621), and the corresponding remainder is 5.

[0102] It can be seen that this application Figure 3 The provided divider utilizes fourth waveguides 11 of varying lengths in electrical communication with the third waveguide 10, thereby forming waveguide loops 7 of varying circumferences. This improved efficiency of division operations can be achieved by utilizing waveguide loops 7 of varying circumferences. For example, in the aforementioned case of a dividend of 4352 and a divisor of 7, using only one waveguide loop 7 for division requires the pulsed light signal to circulate through the waveguide loop 7 621 times, corresponding to a duration of 621T. However, using waveguide loops 7 of varying circumferences for division only requires a duration of 55T (5+8+42).

[0103] Figure 5 This is a schematic diagram of another method for performing division operation by a divider provided in an embodiment of the present application, see Figure 5 , the method comprising:

[0104] Step 501 : The controller 8 controls the optical switch 9 to connect the third waveguide 10 to the corresponding fourth waveguide 11 with the shortest length among the fourth waveguides 11 .

[0105] Step 502 : The detector 4 detects the amplitude of the pulsed light signal in the third waveguide 10 after being coupled by the coupler 3 , and sends the detected amplitude to the controller 8 .

[0106] The detection period of the detector 4 is less than or equal to the cycle period of the pulse light signal in the waveguide loop 7 with the longest circumference.

[0107] Step 503: The controller 8 obtains a preset amplitude threshold corresponding to the fourth waveguide 11 that is currently in the on state. When the amplitude received from the controller 8 is less than the preset amplitude threshold, the controller 8 determines that the second number of times the pulse light signal is detected during the process of the fourth waveguide 11 that is currently in the on state being turned on is determined, and the next fourth waveguide 11 is determined.

[0108] The next fourth waveguide 11 is the fourth waveguide 11 with the minimum difference in length from the fourth waveguide 11 currently in the on state among the fourth waveguides 11 and longer than the fourth waveguide 11 currently in the on state. That is, the next fourth waveguide 11 is determined in the order of the fourth waveguide 11 from short to long.

[0109] In step 504, the controller 8 determines whether the next fourth waveguide 11 is the fourth waveguide 11 with the longest length among the fourth waveguides 11.

[0110] In step 505, if not, the controller 8 controls the optical switch 9 to turn on the next fourth waveguide 11, and proceeds to determine the preset amplitude threshold corresponding to the fourth waveguide 11 currently in the on state.

[0111] The preset amplitude threshold corresponding to each fourth waveguide 11 can be set by the technician according to the ratio of the length of the fourth waveguide 11 to the length of the fourth waveguide 11 with the longest length in the waveguide loop 7. For example, the preset amplitude threshold corresponding to the fourth waveguide 11 can be set to a positive integer multiple of the corresponding ratio. In addition, the fourth waveguide 11 with the longest length can not have a corresponding preset amplitude threshold.

[0112] After the controller 8 receives the amplitude of the pulsed light signal sent by the detector 4 each time, it determines whether the currently received amplitude is less than the preset amplitude threshold corresponding to the fourth waveguide 11 currently in the on state. If it is determined that the currently received amplitude is less than the corresponding preset amplitude threshold, the optical switch can be controlled to turn on the next fourth waveguide 11 corresponding to the fourth waveguide 11 currently in the on state, and to determine whether the next fourth waveguide 11 is the fourth waveguide 11 with the longest length among the fourth waveguides 11. If the determined next fourth waveguide 11 is not the longest fourth waveguide 11, the optical switch 9 is controlled to turn on the next fourth waveguide 11. And proceed to perform the processing of step 3).

[0113] In step 506, if yes, the controller 8 receives the amplitude sent by the detector 4, and when it is determined that the received target amplitude sent by the controller 8 is less than the amplitude of the continuous light signal, it is determined that the controller 8 detects the third number of pulsed light signals during the process of turning on the fourth waveguide 11 currently in the on state.

[0114] When the determined next fourth waveguide 11 is the longest fourth waveguide 11, the amplitude sent by the detector 4 can be received, and when it is determined that the received target amplitude sent by the controller 8 is less than the amplitude of the continuous light signal, it is determined that the controller 8 detects the third number of pulsed light signals during the process of turning on the fourth waveguide 11 currently in the on state.

[0115] Step 507: Determine a quotient corresponding to the divisor and the dividend based on the second order numbers corresponding to the fourth waveguides 11 other than the longest fourth waveguide 11, the third order number corresponding to the longest fourth waveguide 11, and the ratio of the perimeter of the waveguide loop 7 with the longest perimeter to the perimeter of the other waveguide loops 7.

[0116] After determining the third number, the quotient corresponding to the divisor and the dividend can be determined based on the second numbers corresponding to the other fourth waveguides 11 except the longest fourth waveguide 11, the third number corresponding to the longest fourth waveguide 11, and the ratio of the circumference of the waveguide loop 7 with the longest circumference to the circumference of the other waveguide loops 7.

[0117] The controller 8 determines the product of the second number corresponding to each fourth waveguide 11 and the corresponding perimeter ratio in the other fourth waveguides 11, sums the product corresponding to each fourth waveguide 11 and the third number, and determines the summed value as the quotient corresponding to the divisor and the dividend.

[0118] The controller 8 receives the second amplitude value sent by the detector 4 in each of the waveguide loops 7 except the waveguide loop 7 with the longest circumference. In other words, the detector 4 detects the second amplitude value in each of the waveguide loops 7. However, since the detection period of the detector 4 is less than or equal to the cycle period of the pulse light signal in the waveguide loop 7 with the longest circumference, assuming that the detection period of the detector 4 is equal to the corresponding cycle period, each time the detector 4 detects a pulse light signal in a waveguide loop 7, the pulse light signal has actually circulated N times in the waveguide loop 7, where N is equal to the ratio of the circumference of the corresponding waveguide loop 7 to the waveguide loop 7 with the longest circumference. Therefore, each time the detector 4 detects a pulse light signal in a waveguide loop 7, the pulse light signal has actually been coupled N times. The controller 8 can sum the product of the second amplitude value and the corresponding circumference ratio corresponding to each fourth waveguide 11 with the third amplitude value to determine the quotient corresponding to the divisor and the dividend. The third amplitude value is the third number of times the pulse light signal has circulated in the waveguide loop 7 with the longest circumference, which is equal to the number of times the pulse light signal has been coupled.

[0119] For example, if the dividend A = 4352, the divisor is 7, there are three fourth waveguides 11, and the circumference ratio of the shortest waveguide loop 7 (hereinafter referred to as the first waveguide loop) to the shortest waveguide loop 7 (hereinafter referred to as the third waveguide loop) is 100, then the circumference ratio of the second shortest waveguide loop 7 (hereinafter referred to as the second waveguide loop) to the third waveguide loop is 10. Furthermore, the preset amplitude threshold corresponding to the first waveguide loop can be set to 1400, and the preset amplitude threshold corresponding to the second waveguide loop can be set to 140.

[0120] When the controller 8 can first control the optical switch to turn on the first waveguide loop, when receiving the amplitude value sent by the detector 4 is less than or equal to 1400 (at this time the amplitude value is 852, and the corresponding second number is 5), it is determined that the fourth waveguide 11 corresponding to the next fourth waveguide 11 in the on state is the next fourth waveguide 11, that is, the fourth waveguide 11 constituting the second waveguide loop, and then control the optical switch 9 to turn on the fourth waveguide 11 constituting the second waveguide loop, that is, to turn on the second waveguide loop. The controller 8 continues to receive the amplitude value sent by the detector 4, and when receiving the amplitude value sent by the detector 4 is less than or equal to 140 (at this time the amplitude value is 82, and the corresponding second number is 11), it is determined that the corresponding next fourth waveguide 11 (that is, the fourth waveguide 11 constituting the third waveguide loop) is determined. At this time, the next fourth waveguide 11 is the fourth waveguide 11 with the longest length, and the controller 8 receives the amplitude value sent by the detector 4, and when receiving the target amplitude value sent by the detector 4 is less than 7 (at this time the target amplitude value is 5, and the corresponding third number is 11). During the process of turning on the fourth waveguide 11 in the on state, the controller 8 detects the third number of the pulse light signal. Finally, the sum of the product of each second number and the corresponding circumference ratio is obtained, and the value obtained by the third number is added, that is, the quotient corresponding to the divisor and the dividend is 5x100+11x10+11=621, and the corresponding remainder is 5.

[0121] It can be seen that the present application Figure 3 The divider provided by the present application can form waveguide loops 7 with different circumferences by setting fourth waveguides 11 with different lengths and turning on the third waveguide 10, thereby improving the efficiency of calculating the division operation. For example, for the above-mentioned dividend of 4352 and divisor of 7, if only one waveguide loop 7 is used for division operation, the pulse light signal needs to be circulated in the waveguide loop 7 for 621 times, and the corresponding required time is 621T. If different circumferences of waveguide loops 7 are used for division operation, the corresponding required time is only 27T (5+11+11).

[0122] In an exemplary embodiment, an optical processor is also provided, which can be an optical chip in the above-mentioned embodiments, and one or more dividers in the above-mentioned embodiments can be included in the optical processor to implement division operation. In addition, the optical processor can also include a multiplication-addition unit and the like to implement multiplication, addition and other operations.

[0123] The above only describes one embodiment of the present application and does not limit the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A divider, characterized in that: The divider comprises: a first optical signal source (1), a second optical signal source (2), a coupler (3), a detector (4), a first waveguide (5), a second waveguide (6), a waveguide loop (7), and a controller (8), wherein the detector (4) is electrically connected to the controller (8); The first optical signal source (1) is used to emit a pulsed optical signal, and the first waveguide (5) is used to transmit the pulsed optical signal into the waveguide loop (7) for cyclic transmission, wherein the ratio of the amplitude of the pulsed optical signal to the dividend is equal to a preset ratio; The second optical signal source (3) is used to emit a continuous optical signal and transmit the continuous optical signal into the second waveguide (6), wherein the ratio of the amplitude of the continuous optical signal to the divisor is equal to the preset ratio; The coupler (3) is used to couple the continuous optical signal in the second waveguide (6) and the pulse optical signal in the waveguide circuit (7), wherein the amplitude of the pulse optical signal after coupling is equal to the amplitude of the pulse optical signal before coupling minus the amplitude of the continuous optical signal; The detector (4) is used to detect the amplitude of the pulsed light signal after each coupling in the waveguide circuit (7), and send the detected amplitude to the controller (8); The controller (8) is configured to determine the number of times the detector (4) has cumulatively detected the coupled pulsed light signal when the target amplitude received from the detector (4) is smaller than the amplitude of the continuous light signal, determine the number of times as the quotient corresponding to the divisor and the dividend, and determine the product of the target amplitude and the preset ratio as the remainder corresponding to the divisor and the dividend.

2. The divider according to claim 1, wherein: The detection period of the detector (4) is less than or equal to the cycle period of the pulse light signal in the waveguide circuit (7).

3. The divider according to claim 1, wherein: The waveguide loop (7) passes through the first inlet of the coupler (3) and passes through the first outlet of the coupler (3); the second waveguide (6) passes through the second inlet of the coupler (3) and passes through the second outlet of the coupler (3); The first waveguide (5) is used to transmit the pulsed light signal into the waveguide loop (7) in a direction toward the first inlet of the coupler (3).

4. The divider according to claim 1, wherein: The divider further includes an optical switch (9), the optical switch (9) having a control port (91), a first port (92), and a plurality of second ports (93), and the waveguide circuit (7) includes a third waveguide (10) and a plurality of fourth waveguides (11); The first waveguide (5) is connected to the third waveguide (10) to transmit the pulsed light signal into the third waveguide (10) in the direction of the coupler (3); The control port (91) of the optical switch (9) is electrically connected to the controller (8); The first port (92) of the optical switch (9) is connected to the first end of the third waveguide (10), and the multiple second ports (93) of the optical switch (9) are connected to the first ends of the multiple fourth waveguides (11) one by one; The second end of the third waveguide (10) is respectively connected to the second end of each fourth waveguide (11); The optical switch (9) is a switching device that connects the first port (92) to any designated second port (93) among the plurality of second ports (93) so that the third waveguide (10) forms a waveguide loop (7) with a fourth waveguide (11) connected to the designated second port (93), wherein when the optical switch (9) connects the first port (92) to different second ports (93), the third waveguide (10) forms waveguide loops (7) with different circumferences with different fourth waveguides (11), and among the waveguide loops (7) with different circumferences, the waveguide loop (7) with the longest circumference is an integer multiple of the circumferences of the other waveguide loops (7); The coupler (3) is used to couple the pulsed light signal in the third waveguide (10) and the continuous light signal in the second waveguide (6); The detector (4) is used to detect the amplitude of the pulsed light signal after each coupling in the third waveguide (10).

5. The divider according to claim 4, wherein: The controller (8) is configured to determine an estimated value of a quotient corresponding to the dividend and the divisor based on the value of the dividend; Based on the estimated value and the ratio of the circumference of the waveguide loop (7) with the longest circumference to the circumference of the other waveguide loops (7), determining the conduction time corresponding to the fourth waveguide (11) constituting the other waveguide loops (7); Based on the order of the perimeters of the other waveguide circuits (7) from short to long and the corresponding conduction duration of the fourth waveguide (11) constituting the other waveguide circuits (7), controlling the optical switch (9) to sequentially conduct the fourth waveguide (11) constituting the other waveguide circuits (7); After controlling the conduction time corresponding to the last fourth waveguide (11) in the fourth waveguides (11) constituting the other waveguide circuits (7), controlling the optical switch (9) to conduct the fourth waveguide (11) corresponding to the waveguide circuit (7) with the longest circumference, and sending a start detection instruction to the detector (4); The detector (4) is used to detect the amplitude of the pulsed light signal after each coupling in the waveguide loop (7) with the longest circumference after receiving the start detection instruction, and send the detected amplitude to the controller (8); The controller (8) is configured to determine a first number of times that the detector (4) has cumulatively detected the coupled pulse light signal when the target amplitude received from the detector (4) is smaller than the amplitude of the pulse light signal; Based on the first number and the conduction time of each other waveguide circuit (7), a quotient corresponding to the divisor and the dividend is determined.

6. The divider according to claim 5, wherein: The controller (8) is used to determine the estimated value as a reference value, and determine the largest circumference ratio among the circumference ratios of the waveguide loop (7) with the longest circumference and other waveguide loops (7) as a reference circumference ratio; Determine a first quotient and a first remainder of dividing the reference value by the reference perimeter ratio; The product of the cycle period of the pulse light signal in the waveguide loop (7) with the longest circumference and the first quotient is determined as the conduction time of the fourth waveguide (11) corresponding to the reference circumference ratio; Based on the order from large to small, the next perimeter ratio corresponding to the reference perimeter ratio is obtained from each perimeter ratio, the next perimeter ratio is determined as the reference perimeter ratio, the first remainder is determined as the reference value, and the determination of the first quotient and the first remainder of the reference value divided by the reference perimeter ratio is performed until the conduction time of the fourth waveguide (11) corresponding to each perimeter ratio is determined.

7. The divider according to claim 5, wherein: The controller (8) is used to determine the ratio of the conduction time corresponding to the fourth waveguide (11) constituting the other waveguide circuits (7) to the time corresponding to the cycle period of the pulse light signal in the waveguide circuit (7) with the longest circumference; Determine the product of the time length ratio and the circumference ratio corresponding to each waveguide circuit (7) in the other waveguide circuits (7), sum the product corresponding to each waveguide circuit (7) in the other waveguide circuits (7) and the first number, and determine the summed value as the quotient corresponding to the divisor and the dividend.

8. The divider according to claim 4, wherein: The controller (8) is used to control the optical switch (9) to connect the third waveguide (10) to the corresponding fourth waveguide (11) with the shortest length among the fourth waveguides (11); The detector (4) is used to detect the amplitude of the pulsed light signal in the third waveguide (10) after being coupled by the coupler (3), and to send the detected amplitude to the controller (8); The controller (8) is used to obtain a preset amplitude threshold corresponding to the fourth waveguide (11) currently in the on state, and when the amplitude received from the controller (8) is less than the preset amplitude threshold, determine that the controller (8) detects the second number of times the pulse light signal is detected during the on-state of the fourth waveguide (11) currently in the on state, and determine the next fourth waveguide (11), wherein the next fourth waveguide (11) is the fourth waveguide (11) whose length difference with the fourth waveguide (11) currently in the on state is the smallest and is longer than the fourth waveguide (11) currently in the on state; Determine whether the next fourth waveguide (11) is the fourth waveguide (11) with the longest length among the fourth waveguides (11); if not, control the optical switch (9) to turn on the next fourth waveguide (11), and proceed to execute the step of obtaining the preset amplitude threshold corresponding to the fourth waveguide (11) currently in the on state; if yes, receive the amplitude sent by the controller (8), and when it is determined that the target amplitude sent by the detector (4) is less than the amplitude of the continuous optical signal, determine that the controller (8) detects the third number of the pulse optical signal during the process of the fourth waveguide (11) currently in the on state being turned on; The quotient corresponding to the divisor and the dividend is determined based on the second order numbers corresponding to the other fourth waveguides (11) except the fourth waveguide (11) with the longest length, the third order number corresponding to the fourth waveguide (11) with the longest length, and the ratio of the perimeter of the waveguide loop (7) with the longest perimeter to the other waveguide loops (7).

9. The divider according to claim 8, wherein: The controller (8) is used to determine the product of the second number corresponding to each fourth waveguide (11) and the corresponding perimeter ratio in the other fourth waveguides (11), sum the product corresponding to each fourth waveguide (11) and the third number, and determine the summed value as the quotient corresponding to the divisor and the dividend.

10. The divider according to claim 8, wherein: The detection period of the detector (4) is less than or equal to the cycle period of the pulse light signal in the waveguide loop (7) with the longest circumference.

11. An optical processor comprising the divider according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Method for performing division calculation by utilizing rheostatic element

    CN102156625A

  • Division operation method and device

    CN106708468A