1. Introduction
The growing demand for ultra-fast and energy-efficient data processing in modern optical communication systems has accelerated the development of all-optical logic gates (AOLGs). These gates eliminate the need for optical-to-electrical conversion, significantly reducing latency and power consumption while improving system throughput, making them indispensable in photonic networks and next-generation computing systems. AOLGs are essential for high-speed data routing and switching and are also increasingly applied in areas such as encryption, neuromorphic computing, and real-time signal processing [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10]. While traditional electronic systems have limitations in bandwidth and speed, photonic approaches offer parallelism and high data rates. Semiconductor optical amplifiers (SOAs) have been widely investigated among various technologies due to their nonlinear behavior, compactness, and integrability. However, conventional SOAs suffer from limitations such as slow carrier recovery times and gain saturation effects, which degrade their performance at high bit rates [
11]. To overcome these drawbacks, the carrier reservoir semiconductor optical amplifier (CR-SOA) has emerged as a promising alternative. By incorporating an additional reservoir section, the CR-SOA facilitates faster carrier replenishment, leading to improved gain recovery and stronger nonlinear effects such as cross-phase modulation (XPM) and cross-gain modulation (XGM). These characteristics make CR-SOAs suitable for all-optical signal processing beyond 100 Gb/s [
12]. When integrated into a Mach–Zehnder interferometer (MZI) configuration, CR-SOAs enable high-speed, low-power, and scalable logic operations due to the phase-sensitive interference properties of MZIs [
13,
14]. The CR-SOA-MZI combination has been shown to offer high extinction ratios and excellent signal integrity, rendering it a key component for realizing AOLGs [
15,
16,
17,
18,
19,
20,
21]. In our previous work [
21], we explored the use of CR-SOA-MZI architecture for designing a high-speed all-optical half-adder. That study focused specifically on implementing XOR and AND logic functions for basic arithmetic operations. In contrast, the present work expands upon that foundation and explores the potential of the same device configuration in a broader logical context. Specifically, we numerically demonstrate an all-optical encoder (in the form of one-hot logic minterm generation) and comparator system capable of operating at 120 Gb/s, which supports five essential logic operations:
,
, AB (AND),
(NOR), and AB +
(XNOR). It is important to note that the term “encoder” is used here in a broad sense to describe the generation of logical minterms (one-hot encoded outputs) from two binary inputs. This functionality corresponds directly to that of a standard 2-to-4 decoder in digital logic, where each output line represents a unique input condition. We have retained the term “encoder” to emphasize the mapping of binary inputs into distinguishable logic states, while also clarifying its equivalence to decoding behavior. This shift from arithmetic to comparative and encoding logic operations represents a new configuration and functionality, leveraging the same device in a novel and more complex application domain. Recent research has made significant progress in developing all-optical encoders and comparators using both conventional SOAs and quantum-dot SOAs (QD-SOAs) [
22,
23,
24,
25,
26]. For instance, Komatsu et al. [
22] demonstrated an ultrafast all-optical digital comparator based on QD-SOAs, achieving an enhanced speed and extinction ratio due to the discrete energy levels and fast carrier dynamics of quantum dots. Similarly, Kaur and Prakash [
23] explored the nonlinear characteristics of conventional SOAs to implement logic-based comparator operations, emphasizing simplicity but with limited scalability and speed. Lei et al. [
24] proposed a 40 Gb/s all-optical 4-bit priority encoder employing cross-gain modulation (XGM) in SOAs, offering high-speed operation but constrained by signal degradation at higher bit levels. Wang et al. [
25] further enhanced system efficiency by simultaneously realizing both encoder and comparator functions at 40 Gb/s using SOAs, though integration complexity and noise were noted challenges. Additionally, Zhang et al. [
26] presented a multifunctional setup capable of simultaneously operating as a digital comparator and a half-subtractor for 40 Gb/s DPSK signals, showcasing the versatility of SOA-based designs. Despite these advances, most existing designs are tailored for specific operations and face limitations in scalability, complexity, or multi-functionality, highlighting the need for more integrated, compact, and high-speed solutions. In this work, we present a comprehensive numerical analysis of a CR-SOA-MZI-based design capable of supporting simultaneous encoding and comparison operations at 120 Gb/s. We evaluate the system’s performance using the quality factor (QF) as a key performance metric and examine the influence of key operating parameters on signal integrity and logic accuracy. The calculated QF values for the five logic operations are as follows: 17.56 for
, 17.04 for
, 19.05 for AB (AND), 10.95 for
(NOR), and 8.33 for AB +
(XNOR). The design employs return-to-zero (RZ) modulation to preserve signal integrity at high bit rates [
27,
28]. By demonstrating multiple logic functions within a single platform, this study provides a scalable and multifunctional framework for future photonic computing systems. It contributes to the growing body of research aimed at integrating various logic functionalities into compact and efficient photonic circuits.
This paper is organized as follows:
Section 2 introduces the CR-SOA, starting with
Section 2.1, which explains the operational principles, detailing how the CR-SOA operates within the system to achieve the intended logic functions.
Section 2.2 presents the numerical analysis, highlighting the calculations and simulations used to optimize the design and assess its performance.
Section 3 describes the encoder and comparator, outlining their roles in encoding and comparing input signals for efficient optical logic operations.
Section 4 discusses the results, providing a comprehensive evaluation of the system’s performance with key metrics such as the eye diagram, QF, and signal integrity at high data rates.
Section 5 offers a comparison, contrasting the CR-SOA-based logic gate with other related SOA designs and emphasizing the advantages of our approach in terms of speed and reliability.
Section 6 details the potential experimental setup, including the configuration and components used to validate the design and assess its practical performance. Finally,
Section 7 concludes the paper by summarizing the key findings and highlighting the potential of CR-SOA-based logic gates for high-speed optical communication systems.
3. Encoder and Comparator
The operation principle of the all-optical encoder and comparator using a CR-SOA-MZI relies on designing, executing, and combining five essential logic operations—
,
, AB (AND),
(NOR), and AB +
(XNOR)—using four CR-SOA-MZIs, as shown in
Figure 2. The system involves three inputs: signals A, B, and a continuous wave (CW), injected into the CR-SOA-MZIs to achieve the desired logic functions. The wavelengths for signals A, B, and CW are 1550.7 nm, 1549.3 nm, and 1551.3 nm, respectively [
25]. The CW signal plays a crucial role by providing a constant reference power level, which enables efficient cross-gain modulation (XGM) effects for the logic operations. In the encoder, each of the logic outputs corresponds to a different input condition:
,
, AB, and
. The CR-SOA-MZIs perform the logic operations for these outputs. In the CR-SOA-MZI1, the
operation is realized at wavelength λ
B, with the optical power of signal A being significantly larger than signal B, aided by the CW signal at λ
CW, optimizing the XGM effect. Similarly, the CR-SOA-MZI2 performs the
operation, where signal B holds higher optical power than A, and the CW signal further enhances the XGM effect. The AND (AB) operation is realized in the CR-SOA-MZI3, where the combined signals A, B, and CW generate the output at wavelength λB. The NOR operation (
) is executed in the CR-SOA-MZI4, where an AND operation between
is carried out, supported by the CW signal and the XGM effect. Lastly, the XNOR gate (AB +
) is achieved by combining the outputs of the AND and NOR gates, producing the logic function AB +
. For the comparator, the system provides three outputs to represent the results of comparing signals A and B. The A < B output is generated when A is bit “0” and B is bit “1”, corresponding to the AB operation. When both A and B are either “0” or “1”, the A = B output is bit “1”, represented by
or XNOR logic. Finally, when A is bit “1” and B is bit “0”, the A > B output is activated, represented by the AB operation. To manage the input signals effectively, 3 dB optical couplers (OCs) distribute the A, B, and CW signals to the respective CR-SOA-MZIs, ensuring optimal power levels. Wavelength-selective couplers (WSCs) direct the signals to the correct MZIs based on their wavelengths, facilitating each logic function at its designated wavelength. Optical bandpass filters (OBPFs) at the output of each CR-SOA-MZI ensure that only the desired logic gate outputs are selected, eliminating unwanted signals and preserving high signal integrity. The combination of OCs, WSCs, and OBPFs ensures efficient generation and extraction of optical logic operations, providing a robust solution for high-speed all-optical digital encoders and comparators, making it a promising approach for future optical computing and photonic logic circuits. The truth table for both the encoder and comparator are shown in
Table 2, which clarifies the logic outputs corresponding to various input combinations.
To numerically implement the
operation, the optical input powers fed into CR-SOA1 and CR-SOA2 of the CR-SOA-MZI1 can be represented as
Then, the output power for the
operation in the CR-SOA-MZI1 is expressed as [
11]
To perform the
operation, the input optical powers applied to CR-SOA3 and CR-SOA4 in CR-SOA-MZI2 are defined as
Consequently, the
output power of the CR-SOA-MZI2 is determined by
For the AB (AND) operation, the optical power inputs directed into CR-SOA5 and CR-SOA6 of CR-SOA-MZI3 can be defined as
Then, the output power for the AB (AND) operation at the CR-SOA-MZI3 is expressed as
To perform the
(NOR) operation, the input optical powers fed into CR-SOA7 and CR-SOA8 of the CR-SOA-MZI4 are represented as
Then, the
(NOR) output power generated by the CR-SOA-MZI4 is determined as
The XNOR output power is obtained by combining the results of the AB and
operations, as expressed in [
38]:
4. Results
The performance of the proposed all-optical encoder and comparator using an CR-SOA-MZI at 120 Gb/s was evaluated with input signals A and B, successfully performing five distinct logic operations:
,
, AB (AND),
(NOR), and AB +
(XNOR). The output logic functions demonstrated exceptionally high QFs, with values of 17.56 for
, 17.04 for
, 19.05 for AB (AND), 10.95 for
(NOR), and 8.33 for XNOR, as shown in
Figure 3. These high QFs are attributed to the efficient XGM effects enabled by the CR-SOA-MZI configuration. The CR-SOA’s nonlinearity ensures strong interactions between the signals, resulting in enhanced signal modulation and high-speed logic operations. However, the relatively lower QF of 8.33 for the XNOR operation can be explained by the increased complexity of combining two different logic gates (AND and NOR) to achieve the XNOR output. This operation involves a higher level of interaction and interference between signals, which can lead to slight distortions in the output signal. Additionally, the combined nature of the XNOR function may cause suboptimal signal reinforcement compared to individual logic operations, resulting in higher noise levels and less efficient modulation. As a result, this leads to a lower QF for the XNOR output. The eye diagrams for all the logic operations were open and clear, confirming the high signal integrity and minimal distortion across the outputs, except for the XNOR function, which exhibited some mild distortion. These results highlight the excellent performance and reliability of the CR-SOA-MZI configuration for most logic operations, with the XNOR operation showing a slight reduction in quality, which could be further optimized in future designs.
The simulation results for various optical logic operations, including
,
, AB (AND),
(NOR), and AB +
(XNOR), in the CR-SOA-MZI configuration, reveal the crucial impact of the power of signal B (PB) on the overall performance of AOLGs. As shown in
Figure 4, the data demonstrate a clear inverse relationship between the power of signal B and the QF of the output logic functions. At lower input powers, such as −10 dBm, the interaction between signals A and B is more effectively managed, leading to higher QFs. However, as the power of signal B increases, the CR-SOA experiences saturation, diminishing the XGM effect, which is essential for maintaining the logic operations’ quality. In the
operation, for example, an initial QF of 24.12 is observed at –10 dBm, but this value decreases as signal B’s power rises, indicating that the cross-gain modulation becomes less efficient at higher powers. Similar trends are seen in the
and AB operations, where the power of signal B plays a dominant role in the modulation process, and excessive power results in over-saturation, reducing modulation depth and signal clarity. Notably, the NOR operation (
) exhibits extreme sensitivity to the power of signal B, with a significant drop in the QF reaching near zero at 4 dBm. This highlights the complex interactions between signals A and B within the SOA, where higher power levels lead to inefficient carrier density modulation and signal distortion. The XNOR operation, which combines both AND and NOR gates, also demonstrates a drastic reduction in the QF as signal B’s power increases, indicating that multi-gate logic operations are particularly susceptible to degradation when signal B’s power is excessive, leading to interference between the gates. We attribute the reduction in the QF at higher input powers primarily to CR-SOA saturation, which leads to amplitude imbalance and reduced differential gain between the MZI arms. Additionally, pattern-dependent nonlinearities may further degrade signal quality under high-power and high-speed conditions, although saturation appears to be the dominant factor. These results emphasize the necessity of precisely managing the power of signal B to maintain optimal performance in all-optical logic gate designs. The observed trends, as shown in
Figure 4, suggest that there is an optimal power range for signal B, where the XGM effect is maximized without introducing detrimental saturation effects. For high-speed optical communication systems, power optimization strategies, such as adaptive power adjustment or feedback mechanisms, are crucial to ensure that both input signals remain within their optimal power levels. At data rates exceeding 120 Gb/s, the primary limiting factor is expected to be the carrier recovery time of the CR-SOA rather than the bandwidth of the MZI, which is inherently broad due to its passive nature. As bit intervals become shorter, the slow recovery of carrier density can lead to patterning effects, reduced modulation efficiency, and signal distortion. Future work should explore faster SOA structures (e.g., QD-SOAs) or hybrid material systems to overcome this limitation. Further simulations that vary the power conditions for both signals A and B could provide additional insights into the ideal power levels for different logic operations, ultimately improving the performance and efficiency of CR-SOA-MZI-based systems. This study underlines the importance of careful power management to avoid saturation, ensuring that the logic gates deliver a high QF and maintain efficient signal processing, particularly in systems that require high-speed and reliable operation for advanced optical communication technologies. Future research should focus on exploring optimal power ranges for various logic operations and developing techniques to stabilize performance across a range of operational conditions.
The results, as shown in
Figure 5, illustrate the variation in the QF against the data rate, using the CR-SOA-MZI for different logic gate operations:
,
, AB (AND),
(NOR), and AB +
(XNOR). The QF decreases for all logic operations as the data rate increases from 20 Gb/s to 160 Gb/s. For instance, for
, the QF drops from 24.12 at 20 Gb/s to 4.92 at 160 Gb/s, while for
, it decreases from 22.61 to 3.75. A similar trend is observed in the AND operation (AB), where the QF decreases from 27.12 at 20 Gb/s to 5.85 at 160 Gb/s, indicating a gradual degradation in performance with increasing data rates. The NOR operation (
) follows the same pattern, with the QF declining from 20.12 to 1.85, and the XNOR operation (AB +
) experiences a sharper decrease from 17.21 to 0.65. This decline in the QF as the data rate increases suggests that higher-speed operations impose limitations on the system’s ability to maintain strong functional performance, likely due to factors such as increased signal distortion, carrier recovery limitations, or phase noise accumulation in the optical setup. The decreasing trend across all logic gates indicates that as the data rate increases, system impairments, such as gain saturation in CR-SOA-MZI configurations, become more pronounced, leading to signal degradation. The more significant drop in XNOR performance compared to other logic functions might be attributed to its reliance on both AND and NOR operations, where the cumulative effects of signal degradation have a greater impact on its overall efficiency. Additionally, the AND function maintains the highest QF values across all data rates, while XNOR consistently shows the lowest, highlighting a stronger resilience of the AND operation in high-speed conditions. These results suggest that optimizing parameters such as the injected optical power, bias current of the CR-SOA, or phase tuning in the interferometer could mitigate performance losses at higher data rates. Further analysis could focus on investigating alternative configurations or signal processing techniques to enhance the robustness of AOLGs operating at ultra-high speeds.
The results illustrate the variation in the QF as a function of amplified spontaneous emission (ASE) power (PASE) for different logic gate operations—
,
, AB (AND),
(NOR), and AB +
(XNOR)—using a CR-SOA-MZI-based system at 120 Gb/s, as shown in
Figure 6. PASE is added numerically to the logic operations’ output powers given by Equations (14), (17), (20) and (23), ensuring a realistic evaluation of ASE-induced degradation in system performance. The ASE power is calculated using the following equation [
39]:
where
As P
ASE increases from 0.5 μW to 5 μW, a significant reduction in the QF is observed for all logic functions. At P
ASE = 0.5 μW, the highest QF is recorded for the AND operation (19.05), followed by
(17.56) and
(17.04). The NOR and XNOR operations show lower QF values of 10.95 and 8.33, respectively. This trend indicates that the AND function maintains the strongest resilience against initial ASE-induced impairments, while XNOR is the most sensitive to ASE-related performance degradation. With increasing P
ASE, the QF decreases progressively. At P
ASE = 2 μW, the QF for
,
, and AND drops to 12.86, 11.98, and 14.62, respectively, representing a significant performance decline. NOR and XNOR gates experience more severe degradation, with QF values falling to 6.52 and 4.72, respectively. This suggests that interference-based logic operations, such as NOR and XNOR, are more affected by ASE due to phase noise accumulation and loss of contrast in constructive and destructive interference mechanisms. At P
ASE = 4 μW, NOR and XNOR operations approach near-failure states, with QF values plunging to 0.493 and 0.007, respectively. Meanwhile, the AND gate retains some level of performance with a QF of 6.78, demonstrating relatively better tolerance to ASE. The rapid deterioration of XNOR performance at high ASE levels suggests that its dependence on both AND and NOR operations compounds its susceptibility to noise. At the highest P
ASE levels (4.5 μW and 5 μW), QF values for all logic gates drop drastically, with the AND gate falling to 2.45, while
and
decline to 1.88 and 1.21, respectively. The NOR and XNOR functions become completely non-functional, highlighting their extreme sensitivity to ASE. These results, as shown in
Figure 6, emphasize the significant impact of ASE on CR-SOA-MZI-based logic operations at ultra-high data rates. The AND operation demonstrates the highest resilience, while XNOR is the most vulnerable. The rapid decline in the QF with increasing ASE suggests that mitigating ASE is crucial for maintaining the performance of AOLGs. Future improvements could focus on optimizing SOA gain dynamics, employing ASE suppression techniques, and refining phase stabilization methods to enhance the robustness of these logic gates in high-speed optical computing and communication applications.
6. Potential Experimental Setup
The envisioned experimental setup for the all-optical encoder and comparator [
24,
25,
26] using a CR-SOA-MZI is designed to perform five essential logic operations—
,
, AB (AND),
(NOR), and AB +
(XNOR)—using four CR-SOA-MZIs. A schematic representation of this proposed experimental configuration is illustrated in
Figure 7. The system is driven by three input signals: A, B, and CW. The data signals A and B are generated using two synchronized laser systems, a rational harmonic mode-locked (ML) laser and a gain-switched distributed feedback (DFB) laser, producing ultra-short pulses with widths of 3.5 ps at repetition rates of 20 GHz and 40 GHz, respectively. A shared 10 GHz RF synthesizer synchronizes these lasers. The CW signal, operating at a wavelength of 1551.3 nm, is used as the reference power to enable efficient XGM in the CR-SOAs, enhancing the logic operations. In the encoder setup, the logic operations
,
, AB, and
are performed by four CR-SOA-MZIs, each optimized to handle different logic conditions. The input signals A and B, at wavelengths 1550.7 nm and 1549.3 nm, respectively, are injected into the MZIs along with the CW signal. A 3 dB OC splits the input signals A and B, directing them to the appropriate MZI through WSCs, which ensure the signals are routed based on their wavelength. While the current configuration operates with wavelengths centered around 1549.3–1551.3 nm, the setup is adaptable to a range of wavelengths within the C-band (1530–1565 nm). The optical components in the setup, such as the WSCs, OBPFs, and CR-SOAs, are tunable or can be replaced with versions that support different wavelengths. This flexibility allows for compatibility with wavelength-division multiplexing (WDM) systems, enabling multi-channel optical logic processing. Additionally, the system can be adapted to use wavelengths outside the C-band, depending on the specific application, making it versatile for different communication and computing technologies. In the CR-SOA-MZI1, the
operation is realized at wavelength λ
B, with signal A being significantly more powerful than signal B, aided by the CW signal at λ
CW to enhance the XGM effect. Similarly, the CR-SOA-MZI2 performs the
operation, where signal B holds higher optical power than signal A, again supported by the CW signal to maximize the XGM effect. The AND operation (AB) is realized in the CR-SOA-MZI3, where the combined signals A, B, and CW generate the output at λ
B. The NOR operation (
) is executed in the CR-SOA-MZI4, where the XGM effect enables the logic operation. For the XNOR gate (AB +
), the outputs from the AND and NOR gates are combined. OBPFs with narrow bandwidths are placed at the output of each CR-SOA-MZI to select only the desired logic gate output, eliminating any noise or unwanted signals. The output signals are further amplified using erbium-doped fiber amplifiers (EDFAs) to maintain the desired power levels for signal analysis. To assess the system’s performance, an optical spectrum analyzer (OSA) measures the optical spectrum and signal quality, while a digital communications analyzer (DCA) evaluates the output waveforms, providing insights into timing, logic levels, and signal integrity. Metrics such as the QF are used to verify the precision and efficiency of the logic gates. The system operates at data rates as high as 120 Gb/s, making it a promising solution for high-speed, all-optical digital encoders and comparators in optical computing and photonic logic circuits.