CN117270625A - Optical digital multiplier with expandable bit width - Google Patents

Optical digital multiplier with expandable bit width Download PDF

Info

Publication number
CN117270625A
CN117270625A CN202311256151.9A CN202311256151A CN117270625A CN 117270625 A CN117270625 A CN 117270625A CN 202311256151 A CN202311256151 A CN 202311256151A CN 117270625 A CN117270625 A CN 117270625A
Authority
CN
China
Prior art keywords
signal
multiplier
bit
partial product
output
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202311256151.9A
Other languages
Chinese (zh)
Inventor
周海龙
张文凯
董建绩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
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 Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN202311256151.9A priority Critical patent/CN117270625A/en
Publication of CN117270625A publication Critical patent/CN117270625A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06EOPTICAL COMPUTING DEVICES; COMPUTING DEVICES USING OTHER RADIATIONS WITH SIMILAR PROPERTIES
    • G06E1/00Devices for processing exclusively digital data
    • G06E1/02Devices for processing exclusively digital data operating upon the order or content of the data handled
    • G06E1/04Devices for processing exclusively digital data operating upon the order or content of the data handled for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/06Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
    • G06N3/067Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using optical means
    • G06N3/0675Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using optical means using electro-optical, acousto-optical or opto-electronic means

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Artificial Intelligence (AREA)
  • Neurology (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Optical Communication System (AREA)

Abstract

本发明公开了一种位宽可拓展的光学数字乘法器,属于光学逻辑计算领域。包括部分积产生与累加区和二值化区。部分积产生与累加区用于产生两个乘数对应的部分积并将其混合累加。二值化区用于将部分积累加信号由十进制信号转换为二进制信号,将高位输出按位延时后反馈至混合信号实现进位信号的传递,最低位输出则作为乘法运算的结果。上述结构相组合从而实现了一种位宽可拓展的光学数字乘法器。本发明通过将两个乘数的信息分别加载到时间和空间两个维度上,使得乘法器所需的硬件数目与乘法器位宽呈线性关系,极大提高了光子乘法器的可拓展性。此外,本发明所涉及的乘法器架构支持硅基集成,可实现大规模片上逻辑光子运算电路。

The invention discloses an optical digital multiplier with expandable bit width, belonging to the field of optical logic computing. Including partial product generation and accumulation area and binarization area. The partial product generation and accumulation area is used to generate partial products corresponding to two multipliers and mix and accumulate them. The binarization area is used to convert part of the accumulated addition signal from a decimal signal to a binary signal. The high-bit output is delayed by bits and fed back to the mixed signal to realize the transmission of the carry signal. The lowest-bit output is used as the result of the multiplication operation. The above structures are combined to realize an optical digital multiplier with scalable bit width. By loading the information of the two multipliers into the two dimensions of time and space respectively, the present invention makes the number of hardware required for the multiplier have a linear relationship with the multiplier bit width, which greatly improves the scalability of the photon multiplier. In addition, the multiplier architecture involved in the present invention supports silicon-based integration and can realize large-scale on-chip logical photonic computing circuits.

Description

一种位宽可拓展的光学数字乘法器A bit-width scalable optical digital multiplier

技术领域Technical field

本发明属于光学逻辑计算领域,更具体地,涉及一种位宽可拓展的光学数字乘法器。The present invention belongs to the field of optical logic computing, and more specifically, relates to an optical digital multiplier with expandable bit width.

背景技术Background technique

在人工智能和通信行业高速增长的背景下,对计算资源的需求急剧增加。由于电子在信号传输速度、并行处理能力和能耗等方面存在天然的限制,传统的电子硬件已经满足不了巨大的算力需求。而光有着在物理空间中最快的信号传输速度、多个可以复用的维度(波长、模式和偏振)以及较低的能耗,这使得光子计算成为一种极具前景的电学替代方案。Against the backdrop of rapid growth in the artificial intelligence and communications industries, the demand for computing resources has increased dramatically. Due to the natural limitations of electronics in terms of signal transmission speed, parallel processing capabilities and energy consumption, traditional electronic hardware can no longer meet the huge demand for computing power. Light has the fastest signal transmission speed in physical space, multiple reusable dimensions (wavelengths, modes and polarizations) and low energy consumption, which makes photonic computing a promising electrical alternative.

光子计算可以分为两个领域:光子模拟计算和数字计算。尽管光子模拟计算已经取得了令人瞩目的突破,但在高精度计算场景中仍然面临着诸多问题。其模拟特性以及光学链路和周围环境中的噪声导致计算结果的相对不准确,严重影响了计算性能和效率。相反,光子数字计算具有更高的噪声容忍度,并且与常见的电子计算机架构兼容。然而,大多数现有工作只能支持一些简单的逻辑功能,如AND、XOR运算、一位或两位加法器、比较器和乘法器等。光学非线性功能的局限以及难以避免的功耗对于执行大规模的数字计算,如加法和乘法,构成了巨大的挑战。虽然最近有学者提出了一种实现可扩展加法器的可行方法,但对于乘法器,大位宽的计算架构仍然处于空白。Photon computing can be divided into two areas: photon analog computing and digital computing. Although photon simulation computing has made impressive breakthroughs, there are still many problems faced in high-precision computing scenarios. Its analog characteristics and the noise in the optical link and surrounding environment lead to relatively inaccurate calculation results, seriously affecting computing performance and efficiency. In contrast, photonic digital computing has higher noise tolerance and is compatible with common electronic computer architectures. However, most existing works can only support some simple logic functions, such as AND, XOR operations, one- or two-bit adders, comparators, and multipliers, etc. The limitations of optical nonlinear capabilities and the unavoidable power consumption pose a huge challenge to perform large-scale numerical calculations, such as addition and multiplication. Although some scholars have recently proposed a feasible method to implement scalable adders, for multipliers, a large bit-width computing architecture is still blank.

发明内容Contents of the invention

针对现有技术的缺陷,本发明的目的在于提供一种位宽可拓展的光学数字乘法器,旨在实现可拓展的大位宽光学数字乘法运算。In view of the shortcomings of the existing technology, the purpose of the present invention is to provide an optical digital multiplier with scalable bit width, aiming to realize scalable large bit-width optical digital multiplication operations.

为实现上述目的,本发明提供了一种位宽可拓展的光学数字乘法器,包括部分积产生与累加区和二值化区,所述部分积产生与累加区的光输入为n个波长对应的连续光,电输入为乘法器的两个二进制乘数(A=An…A2A1,B=Bn…B2B1),输出为两个乘数对应的部分积累加后的混合信号;二值化区的输入为所述部分积产生与累加区输出的混合信号,输出即为乘法运算的结果。In order to achieve the above object, the present invention provides an optical digital multiplier with scalable bit width, including a partial product generation and accumulation area and a binarization area. The light input of the partial product generation and accumulation area corresponds to n wavelengths. Continuous light, the electrical input is the two binary multipliers of the multiplier (A=A n ...A 2 A 1 , B=B n ...B 2 B 1 ), and the output is the cumulative addition of the parts corresponding to the two multipliers. Mixed signal; the input to the binarization area is the mixed signal generated by the partial product and the output of the accumulation area, and the output is the result of the multiplication operation.

优选地,部分积产生与累加区用于产生乘法器中两个乘数对应的部分积并将其混合累加。二值化区用于对部分积产生与累加区生成的部分积累加后的混合信号由十进制信号转换为二进制信号,将高位输出按位延时后反馈至混合信号实现进位信号的传递,最低位输出则作为乘法运算的结果。Preferably, the partial product generation and accumulation area is used to generate partial products corresponding to two multipliers in the multiplier and mix and accumulate them. The binarization area is used to convert the mixed signal after partial accumulation and addition generated by the partial product generation and accumulation area from a decimal signal into a binary signal. The high-bit output is delayed by bits and fed back to the mixed signal to realize the transmission of the carry signal. The lowest bit The output is the result of the multiplication operation.

进一步地,所述部分积产生与累加区包括一个多波长激光源,n+1个强度调制器,两个波分复用器,n-1个延时线,所述多波长激光源用于产生n个波长,并分别输入至用于加载A信号的强度调制器,所述用于加载A信号的强度调制器用于将乘数A信号以时间序列的形式加载至所述多波长激光源输出的n个波长上,输出经由第一波分复用器分成n路(对应n个波长)输入至后续强度调制器中,所述用于加载B信号的n个强度调制器分别用于加载乘数B信号中的B1,B2,B3,…,Bn,由于两个串联的强度调制器可以执行逻辑与功能,所述加载B信号的n个强度调制器的输出分别是乘数B信号中的B1,B2,B3,…,Bn与乘数A信号的部分积结果,所述n-1个延时线用于将生成的部分积按位延时,实现时序上的进位,其输出的结果输入至第二波分复用器从而实现部分积信号的混合叠加。Further, the partial product generation and accumulation area includes a multi-wavelength laser source, n+1 intensity modulators, two wavelength division multiplexers, and n-1 delay lines. The multi-wavelength laser source is used for n wavelengths are generated and respectively input to the intensity modulator for loading the A signal. The intensity modulator for loading the A signal is used to load the multiplier A signal to the multi-wavelength laser source output in the form of time series. On n wavelengths, the output is divided into n channels (corresponding to n wavelengths) through the first wavelength division multiplexer and input to subsequent intensity modulators. The n intensity modulators used to load the B signal are respectively used to load the multiplier. B 1 , B 2 , B 3 ,..., B n in the B signal. Since two series-connected intensity modulators can perform logical AND functions, the outputs of the n intensity modulators loading the B signal are multipliers respectively. The partial product result of B 1 , B 2 , B 3 ,..., B n in the B signal and the multiplier A signal. The n-1 delay lines are used to delay the generated partial products bit by bit to implement timing. carry, and its output result is input to the second wavelength division multiplexer to achieve the mixed superposition of partial product signals.

进一步地,所述二值化区包括m个延时线,m+1→1合束器,进制转换器,所述进制转换器用于将输入的信号由十进制信号转换为二进制信号,所述m个延时线用于将所述进制转换器的高位输出按位延时,从而实现进位信号的传递,所述m+1→1合束器用于将所述m个延时线输出的进位信号与所述部分积产生与累加区输出的部分积累加信号混合累加,实现进位信号的反馈,并将其输入至所述进制转换器中。通过上述方式,可实现部分积信号在二进制系统下的累加求和,所述进制转换器的最低位即输出乘法器的运算结果。Further, the binarization area includes m delay lines, m+1→1 combiners, and a binary converter. The binary converter is used to convert the input signal from a decimal signal to a binary signal, so The m delay lines are used to delay the high-bit output of the hexadecimal converter bit by bit, thereby realizing the transmission of the carry signal, and the m+1→1 combiner is used to output the m delay lines The carry signal is mixed and accumulated with the partial product generation and partial accumulation addition signal output from the accumulation area to realize feedback of the carry signal and input it into the hexadecimal converter. Through the above method, the accumulation and summation of partial product signals in the binary system can be realized, and the lowest bit of the binary converter outputs the operation result of the multiplier.

进一步地,乘数A信号和乘数B信号分别以时间和空间的形式加载至光域,并生成对应的部分积结果。通过将两个乘数的信息分别加载到时间和空间两个维度上,使得乘法器所需的硬件数目与乘法器位宽呈线性关系,极大提高了光子乘法器的可拓展性。Further, the multiplier A signal and the multiplier B signal are loaded into the optical domain in the form of time and space respectively, and corresponding partial product results are generated. By loading the information of the two multipliers into the two dimensions of time and space respectively, the number of hardware required for the multiplier is linearly related to the multiplier bit width, which greatly improves the scalability of the photon multiplier.

进一步地,所述进制转换器可由全光方案或者光电光两种方案实现,全光方案可由光学线性矩阵结合光学非线性材料组成光学神经网络,并加以训练得到,光电光方案可利用光探测器将光信号转换为电信号后,驱动电调微环谐振峰移动到指定波长位置,并通入对应波长的光信号来实现,也可直接将电信号输入至电学ADC中,并用量化后的电信号结果驱动强度调制器实现光域的进制转换功能。Further, the binary converter can be realized by an all-optical scheme or an optical-electro-optical scheme. The all-optical scheme can be obtained by forming an optical neural network by combining an optical linear matrix with optical nonlinear materials and training it. The opto-electro-optical scheme can use light detection. After the optical signal is converted into an electrical signal by the device, the resonant peak of the electronically controlled microring is driven to move to the specified wavelength position, and the optical signal of the corresponding wavelength is passed in to achieve this. The electrical signal can also be directly input into the electrical ADC, and the quantized The electrical signal results drive the intensity modulator to realize the binary conversion function in the optical domain.

进一步地,所述进制转换器的进位数m和乘法器的位宽n需满足:n+1≤2m+1-m。Further, the carry number m of the decimal converter and the bit width n of the multiplier need to satisfy: n+1≤2 m+1 -m.

进一步地,所述n-1个延时线的延时分别为τ,2τ,…,(n-1)τ,m个延时线的延时均为τ,τ对应乘数信号一个码元的码长。Further, the delays of the n-1 delay lines are respectively τ, 2τ,..., (n-1)τ, the delays of the m delay lines are all τ, and τ corresponds to one symbol of the multiplier signal. code length.

进一步地,所述多波长激光源为光学频率梳,或者由多路激光器输出不同波长的激光后合束实现。Further, the multi-wavelength laser source is an optical frequency comb, or is implemented by multiple lasers outputting lasers of different wavelengths and then combining the beams.

鉴于直接实现m bit位宽的进制转换器难度较大,也可以采用逐级累加的方式,通过使用n-1个2bit位宽的进制转换器级联来实现n bit位宽的乘法器。本发明还提供一种位宽可拓展的光学数字乘法器,包括1个多波长激光源,n+1个强度调制器,波分复用器,2(n-1)个延时线,2(n-1)个2→1耦合器,(n-1)个2bit进制转换器,所述多波长激光源用于产生n个波长,并输入至强度调制器,所述强度调制器用于将乘数A信号以时间序列的形式加载至n个波长上,经波分复用器分成对应n路输入至加载乘数B信号中的B1,B2,B3,…,Bn的其他n个强度调制器,输出B1,B2,B3,…,Bn与乘数A信号的部分积,所述n-1个延时线用于将生成的部分积按位延时,实现时序上的进位,B1和B2对应的部分积结果先由所述2→1耦合器进行合束得到两个部分积的混合信号,再输入至所述2bit进制转换器,高位C1的输出经所述延时线延时τ,即在时序上进一位后,经所述2→1耦合器与两个部分积的混合信号进行合束后实现进位信号的传递,从而完成B1和B2对应的部分积结果的二进制相加,其输出结果再与B3对应的部分积结果进行二进制相加,依次类推,最终完成全部部分积的二进制相加,第n-1个2bit进制转换器的最低位C0输出乘法器运算的最终结果,从而实现n bit位宽的数字乘法器。In view of the difficulty of directly implementing an m-bit-wide hexadecimal converter, a step-by-step accumulation method can also be used to implement an n-bit-wide multiplier by using n-1 2-bit wide hexadecimal converters in cascade. . The invention also provides an optical digital multiplier with scalable bit width, including a multi-wavelength laser source, n+1 intensity modulators, a wavelength division multiplexer, 2 (n-1) delay lines, 2 (n-1) 2→1 couplers, (n-1) 2-bit binary converters, the multi-wavelength laser source is used to generate n wavelengths and input to the intensity modulator, the intensity modulator is used to Load the multiplier A signal to n wavelengths in the form of a time series, and divide it into n-channels corresponding to B 1 , B 2 , B 3 ,..., B n in the loaded multiplier B signal through the wavelength division multiplexer. The other n intensity modulators output partial products of B 1 , B 2 , B 3 ,..., B n and the multiplier A signal. The n-1 delay lines are used to delay the generated partial products bit by bit. , to realize the carry in the timing, the partial product results corresponding to B 1 and B 2 are first combined by the 2→1 coupler to obtain the mixed signal of the two partial products, and then input to the 2-bit hexadecimal converter, the high bit The output of C 1 is delayed by τ through the delay line, that is, after one bit is carried forward in the timing, it is combined with the mixed signal of the two partial products through the 2→1 coupler to realize the transmission of the carry signal, thus completing the The binary addition of the partial product results corresponding to B1 and B2, the output result is then binary added to the partial product result corresponding to B3 , and so on, and finally the binary addition of all partial products is completed, and the n-1th 2-bit addition The lowest bit C 0 of the system converter outputs the final result of the multiplier operation, thereby realizing an n-bit wide digital multiplier.

进一步的,所述(n-1)个延时线的延时分别为τ,2τ,…,(n-1)τ,另外(n-1)个延时线的延时均为τ,τ对应乘数信号一个码元的码长。Further, the delays of the (n-1) delay lines are respectively τ, 2τ,..., (n-1)τ, and the delays of the (n-1) delay lines are all τ, τ. Corresponds to the code length of one symbol of the multiplier signal.

进一步地,所述强度调制器为马赫-曾德尔调制器或者电调微环,所述延时线为螺旋波导。Further, the intensity modulator is a Mach-Zehnder modulator or an electrically tuned microring, and the delay line is a spiral waveguide.

进一步地,所述乘法器中所涉及的全部器件均支持现有成熟的硅光工艺,可实现大规模片上逻辑光子运算电路,具有商业化应用的潜力。Furthermore, all the devices involved in the multiplier support the existing mature silicon photonics technology, can realize large-scale on-chip logical photonic computing circuits, and have the potential for commercial application.

通过本发明所构思的以上技术方案,与现有技术相比,能够取得以下Through the above technical solutions conceived by the present invention, compared with the existing technology, the following can be achieved:

有益效果:Beneficial effects:

1、本发明提供的一种位宽可拓展的光学数字乘法器,将两个乘数分别加载到时间和空间维度,在时间维度实现延时进位,实现大位宽的光子乘法器。1. The invention provides an optical digital multiplier with scalable bit width, which loads two multipliers into the time and space dimensions respectively, realizes delayed carry in the time dimension, and realizes a large bit-width photon multiplier.

2、本发明提供的一种位宽可拓展的光学数字乘法器,由于大部分运算过程都在光域进行,相比传统电学乘法运算损耗低。2. The invention provides an optical digital multiplier with scalable bit width. Since most of the operation processes are performed in the optical domain, the operation loss is lower than that of traditional electrical multiplication operations.

3、本发明提供的一种位宽可拓展的光学数字乘法器,由于所需器件数目和乘法器位宽呈线性关系,该光子乘法器具有极强的可拓展性。3. The invention provides an optical digital multiplier with scalable bit width. Since the number of required devices and the bit width of the multiplier are linearly related, the photon multiplier has extremely strong scalability.

4、本发明提供的一种位宽可拓展的光学数字乘法器所涉及的全部器件均支持现有成熟的硅光工艺,可实现大规模片上逻辑光子运算电路,具有商业化应用的潜力。4. All the components involved in the optical digital multiplier with scalable bit width provided by the present invention support the existing mature silicon photonics technology, can realize large-scale on-chip logical photonic computing circuits, and has the potential for commercial application.

附图说明Description of the drawings

图1是本发明提供的一种位宽可拓展的光学数字乘法器的系统结构示意图。Figure 1 is a schematic system structure diagram of an optical digital multiplier with scalable bit width provided by the present invention.

图2是本发明提供的一种位宽可拓展的光学数字乘法器中4bit位宽乘法器的工作原理图。Figure 2 is a working principle diagram of a 4-bit bit-width multiplier in an optical digital multiplier with scalable bit-width provided by the present invention.

图3是本发明提供的一种位宽可拓展的光学数字乘法器的相关实验结果图。Figure 3 is a diagram showing relevant experimental results of an optical digital multiplier with scalable bit width provided by the present invention.

图4是本发明提供的一种位宽可拓展的光学数字乘法器中进制转换器的全光实现方案。Figure 4 is an all-optical implementation scheme of a binary converter in an optical digital multiplier with scalable bit width provided by the present invention.

图5是本发明提供的一种位宽可拓展的光学数字乘法器中进制转换器的一种光电光实现方案。Figure 5 is an optoelectronic and optical implementation scheme of a binary converter in an optical digital multiplier with scalable bit width provided by the present invention.

图6是本发明提供的一种位宽可拓展的光学数字乘法器中逐级累加的原理图。FIG. 6 is a schematic diagram of step-by-step accumulation in an optical digital multiplier with scalable bit width provided by the present invention.

图7是本发明提供的一种位宽可拓展的光学数字乘法器中基于逐级累加原理的光学结构示意图。FIG. 7 is a schematic diagram of the optical structure based on the step-by-step accumulation principle in an optical digital multiplier with scalable bit width provided by the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间不构成冲突就可以相互组合。In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

如图1所示,本发明实例的一种位宽可拓展的光学数字乘法器,包括部分积产生与累加区1,和二值化区2。在部分积产生与累加区1内,所述多波长激光源11用于产生n个波长,并分别输入至用于加载A信号的强度调制器12,所述用于加载A信号的强度调制器12用于将乘数A信号以时间序列的形式加载至所述多波长激光源输出的n个波长上,输出经由第一波分复用器131分成n路(对应n个波长)输入至后续强度调制器中,所述用于加载B信号的n个强度调制器141,142,143,…,14n分别用于加载乘数B信号中的B1,B2,B3,…,Bn,由于两个串联的强度调制器可以执行逻辑与功能,所述强度调制器141,142,143,…,14n的输出分别是乘数B信号中的B1,B2,B3,…,Bn与乘数A信号的部分积结果,所述n-1个延时线151,152,15(n-1)用于将生成的部分积结果按位延时,实现时序上的进位,其输出的结果输入至第二波分复用器132从而实现部分积信号的混合叠加。混合信号随后输入至二值化区2。其中,进制转换器23用于将输入的信号由十进制信号转换为二进制信号,所述延时线211,212,…,21m用于将所述进制转换器23的高位输出按位延时,从而实现进位信号的传递,所述m+1→1合束器22用于将所述m个延时线211,212,…,21m输出的进位信号与所述部分积产生与累加区1输出的部分积累加信号混合累加,实现进位信号的反馈,并将其输入至所述进制转换器23中,通过上述方式,可实现部分积信号在二进制系统下的累加求和,所述进制转换器23的最低位即输出乘法器的运算结果。图2展示了一个4bit位宽乘法器的工作原理图,如图中的(a)所示,两个串联的强度调制器可以构成一个逻辑与门。只有当Ai,Bj,全都为1的时候,才有光输出,可认为输出电平为1,其他情况都没有光输出,可认为输出电平为0。图2中的(b)则展示了部分积在时间和空间两个维度上的分布情况,由于图1中延时线的作用,与B2,B3,…,Bn有关的部分积分别延时1个,2个,…,(n-1)个τ,这里的τ对应乘数信号一个码元的码长。在部分积产生与累加区1通过延时的方式,实现生成部分积信号的进位。图2中的(c)则展示了在进制累加区部分积信号按二进制的形式累加求和的过程。可以看到,混合的信号在输入进制转换装置后,最低位作为乘法结果输出,高位输出则按位延时,实现进位信号的传递。通过上述方式,完成整个二进制乘法运算过程。图3展示了32bit的二进制数分别与二进制数11,101,1001的实验结果,与理论计算结果完全相符。As shown in Figure 1, an optical digital multiplier with scalable bit width in an example of the present invention includes a partial product generation and accumulation area 1, and a binarization area 2. In the partial product generation and accumulation area 1, the multi-wavelength laser source 11 is used to generate n wavelengths and input them respectively into the intensity modulator 12 for loading the A signal. The intensity modulator 12 for loading the A signal 12 is used to load the multiplier A signal to the n wavelengths output by the multi-wavelength laser source in the form of time series, and the output is divided into n channels (corresponding to n wavelengths) through the first wavelength division multiplexer 131 for subsequent input. Among the intensity modulators, the n intensity modulators 141, 142, 143,..., 14n used to load the B signal are respectively used to load B 1 , B 2 , B 3 ,..., B n in the multiplier B signal , since two series-connected intensity modulators can perform a logical AND function, the outputs of the intensity modulators 141, 142, 143,..., 14n are respectively B 1 , B 2 , B 3 ,..., in the multiplier B signal. The partial product result of B n and the multiplier A signal. The n-1 delay lines 151, 152, 15(n-1) are used to delay the generated partial product result bit by bit to realize carry in the timing. The output result is input to the second wavelength division multiplexer 132 to achieve mixing and superposition of partial product signals. The mixed signal is then input to binarization area 2. Among them, the hex converter 23 is used to convert the input signal from a decimal signal into a binary signal, and the delay lines 211, 212, ..., 21m are used to delay the high-bit output of the hex converter 23 bit by bit. , thereby realizing the transmission of the carry signal. The m+1→1 combiner 22 is used to combine the carry signals output by the m delay lines 211, 212,..., 21m with the partial product generation and accumulation area 1 The output partial accumulation signal is mixed and accumulated to realize the feedback of the carry signal, and is input to the binary converter 23. Through the above method, the accumulation and summation of the partial product signal in the binary system can be realized. The lowest bit of the format converter 23 outputs the operation result of the multiplier. Figure 2 shows the working principle diagram of a 4-bit wide multiplier. As shown in (a) in the figure, two series-connected intensity modulators can form a logic AND gate. Only when A i and B j are all 1, there will be light output, and the output level can be considered to be 1. In other cases, there is no light output, and the output level can be considered to be 0. (b) in Figure 2 shows the distribution of partial products in the two dimensions of time and space. Due to the role of the delay line in Figure 1, the partial products related to B 2 , B 3 ,..., B n are respectively Delay 1, 2, ..., (n-1) τ, where τ corresponds to the code length of one symbol of the multiplier signal. In the partial product generation and accumulation area 1, the carry of the partial product signal is realized through delay. (c) in Figure 2 shows the process of accumulating and summing the integrated signals in binary form in the binary accumulation area. It can be seen that after the mixed signal is input to the hexadecimal conversion device, the lowest bit is output as the multiplication result, and the high-bit output is delayed by bits to realize the transmission of the carry signal. Through the above method, the entire binary multiplication process is completed. Figure 3 shows the experimental results of 32-bit binary numbers and binary numbers 11, 101, and 1001 respectively, which are completely consistent with the theoretical calculation results.

图4展示了进制转换装置的纯光学实现方式,通过光学线性矩阵结合光学非线性材料组成光学神经网络,并加以训练得到指定的目标输出,从而实现进制转换功能。图5展示了一种光电光2bit进制转换器的实现方式,先利用光信号探测器91将输入的光信号转换为电信号,再利用电信号驱动电调微环92、93,使其谐振峰的位置发生移动,通过输入指定波长位置处的连续光,控制对应信号的输出。如图中的(c)所示,2bit进制转换器,对应有4个不同电平的输入。对于电调微环92来说,其目标输出是C1位,则输入的是如图中的(b)所示的λ3、λ4,只有当电平为2和3时,对应二进制的10和11,才有光输出,同样,对于电调微环92来说,其目标输出是C1位,则输入的是如图中的(d)所示的λ2、λ4,当电平为1和3时,对应二进制的01和11,在微环的下载端有光输出。Figure 4 shows the purely optical implementation of the base conversion device. An optical linear matrix is combined with optical nonlinear materials to form an optical neural network, and the training is performed to obtain the specified target output, thereby realizing the base conversion function. Figure 5 shows an implementation method of a photoelectric-optical 2-bit binary converter. First, the optical signal detector 91 is used to convert the input optical signal into an electrical signal, and then the electrical signal is used to drive the electrically controlled microrings 92 and 93 to make them resonate. The position of the peak moves, and the output of the corresponding signal is controlled by inputting continuous light at the specified wavelength position. As shown in (c) in the figure, the 2-bit binary converter corresponds to 4 inputs of different levels. For the ESC microring 92, its target output is C 1 bit, then the inputs are λ 3 and λ 4 as shown in (b) in the figure. Only when the levels are 2 and 3, the corresponding binary 10 and 11, there is light output. Similarly, for the electronically controlled micro-ring 92, the target output is C 1 bit, then the inputs are λ 2 and λ 4 as shown in (d) in the figure. When the electric When the value is 1 and 3, corresponding to binary 01 and 11, there is light output at the output end of the microring.

鉴于直接实现m bit位宽的进制转换器难度较大,也可以采用如图6所示的逐级累加的方式,进行n-1次两两求和,实现所有部分积的二进制求和。通过这种方式,只需使用n-1个2bit位宽的进制转换器即可实现n bit位宽的乘法器。其具体的片上实现方案如图7所示,前半部分结构与原始架构不变。在硅基芯片中,强度调制器41可由马赫-曾德尔调制器实现,强度调制器42,43,44,…,4(n+1)由马赫-曾德尔调制器或者电调微环实现,所述延时线可由螺旋波导实现。乘数B中,B1和B2对应的部分积结果先由所述2→1耦合器711进行合束得到两个部分积的混合信号,再输入至所述2bit进制转换器81,高位C1的输出经所述延时线521延时τ,即在时序上进一位后,经所述2→1耦合器721与两个部分积的混合信号进行合束后实现进位信号的传递,其输出结果再与B3对应的部分积结果进行二进制相加,依次类推,最终完成全部部分积的二进制相加。按照这种方式,同样也可以实现n bit位宽的数字乘法器。In view of the difficulty in directly implementing an m-bit-wide hexadecimal converter, the step-by-step accumulation method as shown in Figure 6 can also be used to perform n-1 pairwise sums to achieve the binary sum of all partial products. In this way, an n-bit-wide multiplier can be implemented by using only n-1 2-bit-wide base converters. Its specific on-chip implementation is shown in Figure 7. The first half of the structure remains unchanged from the original architecture. In a silicon-based chip, the intensity modulator 41 can be implemented by a Mach-Zehnder modulator, and the intensity modulators 42, 43, 44,..., 4(n+1) can be implemented by a Mach-Zehnder modulator or an electrically controlled microring. The delay line can be implemented by a spiral waveguide. In the multiplier B, the partial product results corresponding to B 1 and B 2 are first combined by the 2→1 coupler 711 to obtain a mixed signal of the two partial products, and then input to the 2-bit hexadecimal converter 81, the high bit The output of C 1 is delayed by τ through the delay line 521, that is, after carrying forward one bit in the timing, it is combined with the mixed signal of the two partial products through the 2→1 coupler 721 to realize the transmission of the carry signal. The output result is then binary added with the partial product result corresponding to B 3 , and so on, and finally the binary addition of all partial products is completed. In this way, n-bit wide digital multipliers can also be implemented.

本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。It is easy for those skilled in the art to understand that the above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements, etc., made within the spirit and principles of the present invention, All should be included in the protection scope of the present invention.

Claims (8)

1.一种位宽可拓展的光学数字乘法器,其特征在于,包括部分积产生与累加区(1)和二值化区(2),所述部分积产生与累加区(1)包括一个多波长激光源(11),n+1个强度调制器(12,141,142,143,…14n),两个波分复用器(131,132),n-1个延时线(151,152,15(n-1)),所述多波长激光源(11)用于产生n个波长,并输入至强度调制器(12),所述强度调制器(12)用于将乘数A信号以时间序列的形式加载至n个波长上,经第一波分复用器(131)分成对应n路输入至加载乘数B信号中的B1,B2,B3,…,Bn的n个强度调制器(141,142,143,…,14n),输出B1,B2,B3,…,Bn与乘数A信号的部分积,所述n-1个延时线(151,152,15(n-1))用于将生成的部分积按位延时,实现时序上的进位,最后输入至第二波分复用器(132)从而实现部分积信号的混合叠加;1. An optical digital multiplier with scalable bit width, characterized in that it includes a partial product generation and accumulation area (1) and a binarization area (2), and the partial product generation and accumulation area (1) includes a Multi-wavelength laser source (11), n+1 intensity modulators (12, 141, 142, 143,...14n), two wavelength division multiplexers (131, 132), n-1 delay lines (151 , 152, 15(n-1)), the multi-wavelength laser source (11) is used to generate n wavelengths and input to the intensity modulator (12), the intensity modulator (12) is used to convert the multiplier The A signal is loaded onto n wavelengths in the form of a time series, and is divided into B 1 , B 2 , B 3 ,..., B corresponding to n inputs to the loaded multiplier B signal through the first wavelength division multiplexer (131) n intensity modulators (141, 142, 143, ..., 14n) of n, output the partial product of B 1 , B 2 , B 3 , ..., B n and the multiplier A signal, the n-1 delays Lines (151, 152, 15(n-1)) are used to delay the generated partial product bit by bit to implement carry in the timing, and finally input it to the second wavelength division multiplexer (132) to realize the partial product signal Mix overlay; 所述二值化区(2)包括m个延时线(211,212,…,21m),m+1→1合束器(22),进制转换器(23),所述进制转换器(23)用于将输入的信号由十进制信号转换为二进制信号,所述延时线(211,212,…,21m)用于将所述进制转换器(23)的高位(Cm,…,C2,C1)输出按位延时,从而实现进位信号的传递,所述m+1→1合束器(22)用于将所述m个延时线(211,212,…,21m)输出的进位信号与所述部分积产生与累加区(1)输出的混合叠加信号进行混合累加,实现进位信号的反馈,并将其输入至所述进制转换器(23)中,所述进制转换器(23)的最低位C0即输出乘法器的运算结果。The binary area (2) includes m delay lines (211, 212,..., 21m), an m+1→1 combiner (22), and a base converter (23). The base conversion The converter (23) is used to convert the input signal from a decimal signal into a binary signal, and the delay line (211, 212,..., 21m) is used to convert the high bit (C m ) of the decimal converter (23), ..., C 2 , C 1 ) output bit-wise delay, thereby realizing the transmission of the carry signal. The m+1→1 combiner (22) is used to combine the m delay lines (211, 212, ... , the carry signal output by 21m) is mixed and accumulated with the mixed superposition signal output by the partial product generation and accumulation area (1) to realize feedback of the carry signal and input it into the base converter (23), The lowest bit C 0 of the hexadecimal converter (23) outputs the operation result of the multiplier. 2.根据权利要求1所述的一种位宽可拓展的光学数字乘法器,其特征在于,所述部分积产生与累加区(1)的光输入为n个波长对应的连续光,电输入为乘法器的两个二进制乘数A=An…A2A1,B=Bn…B2B1,输出为两个乘数对应的部分积累加后的混合信号;二值化区(2)的输入为所述部分积产生与累加区(1)输出的混合信号,输出即为乘法运算的结果;2. An optical digital multiplier with expandable bit width according to claim 1, characterized in that the partial product generates continuous light corresponding to n wavelengths of light input to the accumulation area (1), and the electrical input are the two binary multipliers A=A n ...A 2 A 1 and B=B n ...B 2 B 1 of the multiplier, and the output is the mixed signal after the accumulation and addition of the parts corresponding to the two multipliers; the binarization area ( The input of 2) is the mixed signal output by the partial product generation and accumulation area (1), and the output is the result of the multiplication operation; 部分积产生与累加区(1)用于产生乘法器中两个乘数对应的部分积并将其混合累加,二值化区(2)用于对部分积产生与累加区(1)生成的部分积累加信号由十进制信号转换为二进制信号,将高位输出(Cm,…,C2,C1)按位延时后反馈至混合信号实现进位信号的传递,最低位输出C0则作为乘法运算的结果。The partial product generation and accumulation area (1) is used to generate partial products corresponding to the two multipliers in the multiplier and mix and accumulate them. The binarization area (2) is used to generate partial products and the accumulation area (1). Part of the accumulation and addition signal is converted from a decimal signal into a binary signal. The high-bit output (C m ,..., C 2 , C 1 ) is delayed by bits and fed back to the mixed signal to realize the transmission of the carry signal. The lowest-bit output C 0 is used as a multiplication The result of the operation. 3.根据权利要求1所述的一种位宽可拓展的光学数字乘法器,其特征在于,所述进制转换器(23)的进位数m和乘法器的位宽n需满足:n+1≤2m+1-m。3. An optical digital multiplier with expandable bit width according to claim 1, characterized in that the carry number m of the base converter (23) and the bit width n of the multiplier need to satisfy: n+ 1≤2m +1 -m. 4.根据权利要求1所述的一种位宽可拓展的光学数字乘法器,其特征在于,所述n-1个延时线(151,152,…,15(n-1))的延时分别为τ,2τ,…,(n-1)τ,m个延时线(211,212,…,21m)的延时均为τ,τ对应乘数信号一个码元的码长。4. An optical digital multiplier with scalable bit width according to claim 1, characterized in that the delay of the n-1 delay lines (151, 152,..., 15(n-1)) are respectively τ, 2τ,..., (n-1)τ, the delays of m delay lines (211, 212,..., 21m) are all τ, and τ corresponds to the code length of one symbol of the multiplier signal. 5.根据权利要求1所述的一种位宽可拓展的光学数字乘法器,其特征在于,所述多波长激光源(11)为光学频率梳,或者由多路激光器输出不同波长的激光后合束实现。5. An optical digital multiplier with scalable bit width according to claim 1, characterized in that the multi-wavelength laser source (11) is an optical frequency comb, or a multi-channel laser outputs lasers of different wavelengths. The bundle is realized. 6.一种位宽可拓展的光学数字乘法器,其特征在于,包括1个多波长激光源(31),n+1个强度调制器(41,42,43,44,…,4(n+1)),波分复用器(5),2(n-1)个延时线(611,612,…,61(n-1),621,622,…,62(n-1)),2(n-1)个2→1耦合器(711,712,…,71(n-1),721,722,…,72(n-1)),(n-1)个2bit进制转换器(81,82,8(n-1)),所述多波长激光源(31)用于产生n个波长,并输入至强度调制器(41),所述强度调制器(41)用于将乘数A信号以时间序列的形式加载至n个波长上,经波分复用器(5)分成对应n路输入至加载乘数B信号中的B1,B2,B3,…,Bn的n个强度调制器(42,43,44,…,4n),输出B1,B2,B3,…,Bn与乘数A信号的部分积,所述n-1个延时线(611,612,61(n-1))用于将生成的部分积按位延时,实现时序上的进位,B1和B2对应的部分积结果先由所述2→1耦合器(711)进行合束得到两个部分积的混合信号,再输入至所述2bit进制转换器(81),高位C1的输出经所述延时线(521)延时τ,即在时序上进一位后,经所述2→1耦合器(721)与两个部分积的混合信号进行合束后实现进位信号的传递,从而完成B1和B2对应的部分积结果的二进制相加,其输出结果再与B3对应的部分积结果进行二进制相加,依次类推,最终完成全部部分积的二进制相加,第n-1个2bit进制转换器8(n-1)的最低位C0输出乘法器运算的最终结果,从而实现n bit位宽的数字乘法器。6. An optical digital multiplier with scalable bit width, characterized in that it includes a multi-wavelength laser source (31), n+1 intensity modulators (41, 42, 43, 44,..., 4(n +1)), wavelength division multiplexer (5), 2(n-1) delay lines (611, 612,…, 61(n-1), 621, 622,…, 62(n-1) ), 2(n-1) 2→1 couplers (711, 712,..., 71(n-1), 721, 722,..., 72(n-1)), (n-1) 2bit couplers converter (81, 82, 8(n-1)), the multi-wavelength laser source (31) is used to generate n wavelengths and input to the intensity modulator (41), the intensity modulator (41) It is used to load the multiplier A signal to n wavelengths in the form of time series, and divide it into corresponding n channels through the wavelength division multiplexer (5) and input it to B 1 , B 2 , B 3 in the loaded multiplier B signal. ..., B n n intensity modulators (42, 43, 44, ..., 4n), output B 1 , B 2 , B 3 , ..., B n and the partial product of the multiplier A signal, the n-1 A delay line (611, 612, 61(n-1)) is used to delay the generated partial product bit by bit to realize the carry in the timing. The partial product results corresponding to B 1 and B 2 are first determined by the above 2→ 1 coupler (711) combines to obtain the mixed signal of the two partial products, which is then input to the 2-bit binary converter (81). The output of the high-order C 1 is delayed by τ through the delay line (521). That is, after one bit is carried forward in the timing, the carry signal is transmitted after being combined with the two partial product mixed signals through the 2→1 coupler (721), thereby completing the binary phase of the partial product results corresponding to B1 and B2. Add, the output result is then binary added with the partial product result corresponding to B 3 , and so on, and finally completes the binary addition of all partial products. The lowest value of the n-1th 2-bit binary converter 8(n-1) Bit C 0 outputs the final result of the multiplier operation, thus implementing an n-bit wide digital multiplier. 7.根据权利要求6所述的一种位宽可拓展的光学数字乘法器,其特征在于,所述(n-1)个延时线(611,612,…,61(n-1))的延时分别为τ,2τ,…,(n-1)τ,所述(n-1)个延时线(621,622,…,62(n-1))的延时均为τ,τ对应乘数信号一个码元的码长。7. An optical digital multiplier with scalable bit width according to claim 6, characterized in that the (n-1) delay lines (611, 612,..., 61(n-1)) The delays of are respectively τ, 2τ,..., (n-1)τ, and the delays of the (n-1) delay lines (621, 622,..., 62(n-1)) are all τ, τ corresponds to the code length of one symbol of the multiplier signal. 8.根据权利要求6所述的一种位宽可拓展的光学数字乘法器,其特征在于,所述强度调制器(41)为马赫-曾德尔调制器,强度调制器(42,43,44,…,4(n+1))为马赫-曾德尔调制器或者电调微环,所述延时线(611,612,…,61(n-1),621,622,…,62(n-1))为螺旋波导。8. An optical digital multiplier with scalable bit width according to claim 6, characterized in that the intensity modulator (41) is a Mach-Zehnder modulator, and the intensity modulators (42, 43, 44 ,...,4(n+1)) is a Mach-Zehnder modulator or an electronically controlled microring, and the delay line (611, 612,..., 61(n-1), 621, 622,..., 62( n-1)) is a spiral waveguide.
CN202311256151.9A 2023-09-26 2023-09-26 Optical digital multiplier with expandable bit width Pending CN117270625A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311256151.9A CN117270625A (en) 2023-09-26 2023-09-26 Optical digital multiplier with expandable bit width

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311256151.9A CN117270625A (en) 2023-09-26 2023-09-26 Optical digital multiplier with expandable bit width

Publications (1)

Publication Number Publication Date
CN117270625A true CN117270625A (en) 2023-12-22

Family

ID=89205793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311256151.9A Pending CN117270625A (en) 2023-09-26 2023-09-26 Optical digital multiplier with expandable bit width

Country Status (1)

Country Link
CN (1) CN117270625A (en)

Similar Documents

Publication Publication Date Title
TW202103025A (en) Hybrid analog-digital matrix processors
CN115169542B (en) Two-dimensional photon convolution acceleration system and device for convolution neural network
Junjie et al. Implementation of DFT application on ternary optical computer
Feng et al. Toward high‐speed and energy‐efficient computing: a WDM‐based scalable on‐chip silicon integrated optical comparator
Ramachandran et al. Design and performance analysis of all-optical cascaded adder using SOA-based MZI
Peng et al. A deep neural network accelerator using residue arithmetic in a hybrid optoelectronic system
CN105051598B (en) A kind of optical numerical value full adder, the full adding method of optical numerical value and device
Dutta et al. Mach-Zehnder interferometer based all optical reversible carry-lookahead adder
Al-Zayed et al. Improved all-optical modified signed-digit adders using semiconductor optical amplifier and Mach–Zehnder interferometer
CN117270625A (en) Optical digital multiplier with expandable bit width
CN114706161A (en) An On-Chip Optical Matrix Vector Processor Based on Frequency Coding
CN110705196B (en) Error-free adder based on random calculation
Rakshit et al. Design of micro ring resonator based all optical adder/subtractor
CN114815958B (en) Large-capacity cascadeable electro-optical full adder/subtractor chip
Kumar et al. Implementation of all optical 3 bit synchronous UP counter using micro ring resonator structure
Chattopadhyay et al. All-optical quaternary computing and information processing: a promising path
Cherri All-optical negabinary adders using Mach–Zehnder interferometer
CN114742219A (en) Neural network computing method and photonic neural network chip architecture
Kamenskiy et al. Gigahertz Optical Digital-to-Analog Multiplier
Imai et al. An optical parallel multiplier using nanophotonic analog adders and optoelectronic analog-to-digital converters
Goutzoulis Complexity of residue position-coded lookup table array processors
US12219050B2 (en) Photonic implementation of keys update and hash generation for digital currency transactions
Guo et al. Large-Scale Matrix-Vector Multiplication Based on Simplified Circular Optical Computing via Matrix Factorization
WO2022230105A1 (en) Analog-to-digital conversion method and analog-to-digital converter
Roy et al. Polarization encoded all-optical multi-valued shift operators

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination