1 Introduction

Integration of high-speed light devices, as well as technological advances, are critical factors influencing the development of integrated photonic circuits for optical communication networks. Every day, the increasing demand for wider bandwidth needs signal processing systems at high-speed. In conventional electronics, the signal processing speed is limited due to slow speed and huge power consumption. All-optical signal processing is an alternate way to increase signal processing speed at very low power consumption [1]. Using the new generation of optical devices to perform all-optical logic operations with rapid transfer, storage, high processing speed, and high data rate, there are advantages to the realization of photonic integrated technology in comparison to the issues discussed in conventional electronic devices. Massive research is being conducted to design miniaturised photonic components for integrated circuits. In general, photonic integrated circuits (PICs), are the combination of various photonics technologies like Photonic Crystals (PCs), Plasmonic, Planar Lightwave Circuits (PLCs) and Micro-Optical-Mechanical Systems (MOEMS). In comparison to the above discussed different platforms for PICs, photonic crystals-based devices are preferred because of their various advantages like ultra-compact in size, more temperature resilient, flexible design structure, low radiation losses, high operation speed, and very low group velocity [2].

The photonic crystal (PC) structure is micro- or nano-scale in size with two kinds of dielectrics, made up to modulate the flow of light in a designed structure on a single substrate. Moreover, among various properties of PCs, photonic bandgap (PBG) due to a periodic structure has attracted attention, which is one of the key components for the implementation of PICs in controlling and guiding the flow of light [3].

Essentially, PC devices are designed to create defects such as point and line defects in order to localise and guide light within the device. Such structures could be one, two, or three-dimensional (3D), with two-dimensional (2D) PCs being particularly appealing due to their small size, high operating speed, low loss, and two-dimensional variation [2]. Based on 2D PC various devices have been designed such as waveguides [4, 5], optical sensors [6,7,8], optical filters [9, 10], multiplexer/demultiplexer [11,12,13], logic gates [14, 15], optical switches [16, 17], etc. The optical encoders can be designed with three different techniques: self-collimation [18], nonlinear effect [19, 20], and interference effect [21,22,23,24]. Among these three methods, the interference effect method along with coupled mode theory is utilized in this paper, as it can be designed with small dimensions and consumes less power in comparison to self-collimation method which requires phase shifters and is designed with large dimensions and also with nonlinear effect, which consumes high power with lower dimensions.

In the present work, a proposed structure consists of a square ring resonator along with 6 coupling rods that have placed to reduce counter propagation modes and four scatter rods placed on the corner of ring resonator to reduce the scattering loss, and designed to get fast response time and ultra-compact size. There are numerous methods, which can be utilized to analyze PCs, out of them finite-difference-time-domain (FDTD) method is utilized as it will allow us to obtain results quickly for a large variety of structures and allowing us to obtain highly accurate results in a fraction of the time. For simulation of PC structure, OptiFDTD simulation tool of Optiwave Systems Inc is utilized to observe transmission, contrast ratio, field view of electric field, response time. The plane wave expansion (PWE) method is used to calculate PBG, which helped in calculation of frequency bands for transverse magnetic (TM) and transverse electric (TE) modes [25,26,27].

Present work is structured as: in the next section, proposed design with the working principle of optical encoder along with this photonic band gap structure has been discussed. After that simulation results and analysis have been done along with various parameters of optical encoder as contrast ratio, response time and data rate in comparison to previous work done by various researchers around the world and improved results have been discussed. At last conclusion and future work possibilities are discussed.

2 Proposed encoder design and working principle

The proposed device using two-dimension photonic crystals (2D PhCs) of a square lattice structure with silicon (Si) rods embedded in air has been designed. The digital logic encoder is a device that has 2 N inputs and gives outputs coded as N bits. Here, we study the 4 × 2 encoder, which has 4 inputs denoted by I0, I1, I2, and I3 along with 2 outputs denoted by Y0 and Y1, which is shown in Fig. 1 and truth table which contains its input and output values shown in Table 1. The proposed design contains four linear waveguides namely W1, W2, W3, and W4 and a square ring resonator. Out of these four linear waveguides, four waveguides are working as input waveguides for 4 × 2 optical encoder and among these four waveguides, two waveguides W2 and W4, as output waveguide, meeting at output port to Y1 and Y0. Proposed structure is a linear structure, where rod radius is r = 0.1a and lattice constant as a = 540 nm with dielectric constant of silicon as ε = 12.04.

Fig. 1
figure 1

A schematic of 4 × 2 optical encoder

Table 1 The 4 × 2 optical encoder truth table

The proposed structure parameters discussed in Table 2 have been optimized by review analysis on different design aspects as required for band gap calculation, optical integrated circuits, and optical encoder applications. Along with this, 6 coupling rods have been placed with rod radius of r1 = 0.07a to reduce counter propagation modes and to reduce the scattering loss, four scatter rods have been placed on the corner of ring resonator with radius of r1 = 0.03a, as shown in Fig. 2. Such small rod size radius structured pattern of PCs can be designed by an electron beam lithography (EBL) technique. The patterns must be converted to the top of the silicon layer which use inductively coupled plasma (ICP) etching methods. [28].

Table 2 Parameters used for the proposed optical encoder based on PCRR
Fig. 2
figure 2

Block diagram of 4 × 2 optical encoder

2.1 Working principle

The spatial coupled mode theory (CMT) suggests [29], the amplitudes of waveguide mode for parallel waveguides are interconnected by the Eq. (1).

$$\begin{gathered} \frac{{dA_{1} \left( z \right)}}{dz} = - j\beta_{1} A_{1} \left( z \right) + \kappa_{12} A_{2} \left( z \right) \hfill \\ \frac{{dA_{2} \left( z \right)}}{dz} = - j\beta_{2} A_{2} \left( z \right) + \kappa_{21} A_{1} \left( z \right) \hfill \\ \end{gathered}$$
(1)

where A1,2(z) is amplitude, β1,2 is wave vector and κ is coupling coefficient. The conservation of energy suggests the coupling coefficients satisfies relation κ12 =—κ21.* [29]. Thus, the absolute value of coupling coefficient is κ ≡ | κ12 | =| κ21 | [27]. Therefore, the propagation coefficients correspond to different modes are given in Eq. (2) as

$$k_{1,2} = \frac{{\beta_{1} + \beta_{2} }}{2} \pm \sqrt {\left( {\frac{{\beta_{1} - \beta_{2} }}{2}} \right)^{2} + \kappa^{2} }$$
(2)

where propagation constant k1 and k2 correspond to odd and even mode. Using such modes [30, 31], the coupling length in two waveguides (parallel) is given in Eq. (3) as

$$L_{c} = \frac{\pi }{{k_{1} - k_{2} }}$$
(3)

Using CMT, the coupling length of symmetrical parallel waveguide is given in Eq. (4) as

$$L_{c} = \frac{\pi }{2k}$$
(4)

The amplitude and intensity of propagation mode is function of distance traveled in waveguide (z) and coupling coefficient. So, the amplitude and intensity are expressed in Eq. (5&6) as

$$A_{1} \left( z \right) = A_{0} \cos \left( {kz} \right)\;and\;I_{1} \left( z \right) = A_{0}^{2} \cos^{2} \left( {kz} \right)$$
(5)
$$A_{2} \left( z \right) = - iA_{0} \sin \left( {kz} \right)\;and\;I_{2} \left( z \right) = A_{0}^{2} \sin^{2} \left( {kz} \right)$$
(6)

When the propagation distance is odd integer multiple of coupling length the input single is transferred from waveguide 1 to waveguide 2.

2.2 Photonic band gap analysis

The proposed design of 2D PC structure with Si rods embedded in air is designed with square lattice ring resonator. Here, PWE method is used to obtain PBG of proposed design in cases of TE and TM modes discussed in Table 2. It has been observed that the effective value of refractive index provides a good 3D simulation approximation, as for passive structure, two-dimensional is preferred and three-dimensional for sensors.

It is shown in Fig. 3 that two band gaps are existing in TE modes. First photonic bandgap exits from 0.535512 to 0.800032 on wave number scale (μm−1) or 1249.9 nm to 1867.3 nm on wavelength scale, while second photonic band from 1.33914 to 1.38646 on wave number scale (μm−1) or 721.2 nm to 746.7 nm. It is shown also in Fig. 3b that one small band gap is existing in TM modes photonic bandgap exits from 1.56981 to 1.57602 on wave number scale (μm−1) or 634.5 nm to 637.0 nm in wavelength scale. First photonic bandgap is quite wide with width of 617.4 nm and exits in infrared region, which has good application in optical communication and networks. So, this designed structure with Si material can be utilized for photonic integrated circuits and device application.

Fig. 3
figure 3

PBG structure of 2D PC-based silicon rods in air structure a PBG in TE mode and b PBG in TM mode

3 Results and discussion

Here, we calculated electric field view, transmission, contrast ratio and response time using FDTD method. The resonant wavelength is 1550 nm for different encoder operations, input ports are I0, I1, I2, and I3 from where input light signal is launched and Y0 and Y1 are two output ports, where light signal is received. While observing the transmission, the logic operation states are considered, as output power is above 0.35 is taken as logic ‘1’ and output power is below 0.3 is taken as logic ‘0’. Here, 4 × 2 optical encoder is designed and simulated. For the proposed encoder, four different cases have been studied, and accordingly designed structure has been simulated and performance has been analyzed.

Case 1: I0 = 1 and I1 = I2 = I3 = 0, optical light is launched at input port I0 and it travels through optical waveguide W1. The separation of three rows of rods between optical waveguide W1 and waveguide W2 causes weak coupling between these waveguides. As a result, the maximum signal is only transmitted into waveguide W1, and only a small portion of the input signal couples to waveguide W2, and the signal does not reach at output ports Y0 and Y1, as illustrated in Fig. 4b. The output power at Y0 is 0.16, while at Y1 is 0.06 as illustrated in Fig. 4a. So, the optical encoder follows Y0 = Y1 = 0 (OFF) condition.

Fig. 4
figure 4

a Transmission spectra, b Optical signal distribution of inputs 1000, c Normalized output power of inputs 1000, d The output power level of inputs 1000

Case 2: I1 = 1 and I0 = I2 = I3 = 0, the optical light is launched at input port I1 and it travels through optical waveguide W2. The separation of two rows of rods between optical waveguide W2 and ring resonator cause weak coupling of signal from waveguide W2 to ring resonator. As a result, the maximum signal is only transmitted into waveguide W2 and only a small portion couples to ring resonator, resulting maximum part of the signal reaching at port Y0 and only small portion reaching at port Y1 as illustrated in Fig. 5b. The power at output port Y0 is 1.38, while at port Y1 is 0.09 as illustrated in Fig. 5a. Therefore, the optical encoder follows Y0 = 1 (ON) and Y1 = 0 (OFF) condition.

Fig. 5
figure 5

a Transmission spectra, b Optical signal distribution of inputs 0100, c Normalized output power of inputs 0100, d The output power level of inputs 0100

Case 3: I2 = 1 and I0 = I1 = I3 = 0, the optical light is launched at input port I2 and it travels to optical waveguide W4. The separation of two rows of rods between optical waveguide W4 and ring resonator cause weak coupling of signal from waveguide W4 to ring resonator. As a result, the maximum signal transmitted into waveguide W4 and a small portion couples to ring resonator, resulting in maximum signal received at port Y1, while a small portion reaches output port Y0 as illustrated in Fig. 6b. The power at output port Y0 is 0.08, while at port Y1 is 1.3 as illustrated in Fig. 6a. Therefore, the optical encoder follows Y0 = 0 (OFF) and Y1 = 1 (ON) condition.

Fig. 6
figure 6

a Transmission spectra, b Optical signal distribution of inputs 0010, c Normalized output power of inputs 0010, d The output power level of inputs 0010

Case 4: I3 = 1 and I0 = I1 = I2 = 0, the optical light is launched at input port I3 and it travels to optical waveguide W3. At the start point of ring resonator, the input signal splits into two equal parts and travel in ring resonator in opposite direction. As the coupling rods are present on the both side of ring resonator, which causes strong coupling from ring to optical waveguide W2 and W4. As a result, the single is received at both ports Y0 and Y1, consequently as illustrated in Fig. 7b. The power at port Y0 is 0.53, while at port Y1 is 0.57 as illustrated in Fig. 7a. Therefore, the optical encoder follows Y0 = Y1 = 1 (ON) condition.

Fig. 7
figure 7

a Transmission spectra, b Optical signal distribution of inputs 0001, c Normalized output power of inputs 0001, d The output power level of inputs 0001

3.1 Contrast ratio

The most important parameter to examine the efficiency of all-optical devices is the contrast ratio. The optical encoder's Contrast Ratio (CR) is described as the ratio of output power and it can be computed using equation (7)

$$CR \left( {dB} \right) = 10\log \left\{ {\frac{P1}{{P0}}} \right\}$$
(7)

where P0 is power for the logic ‘0’ and P1 power for logic ‘1’ output power.

For the input condition when I1=1 (0100), the output power level at Y0 is 1.38 and Y1 is 0.06 as it is shown in Fig. 5a, correspondingly its CR is 11.85dB. In similar way, for input condition when I2=1 (0010), the output power level at Y0 is 0.08 and Y1 is 1.3 as it is shown in Fig. 6a, the calculated CR is 12.10 dB. For the other two cases00 and 11 of encoder, output response of these logic states are same as it equally distributed, so for these two conditions, CR is not calculated.

3.2 Response time and data rate

Apart from contrast ratio (CR), the other important parameter is propagation response time and data rate, need to be calculated for logic devices. The data rate is defined as reciprocal of response time. As shown in the normalized curves in Figs. 47c, d, the data rate and response time have been calculated theoretically.

For input condition when Io = 1 (1000), both response time and data rate cannot be calculated, as the power at both output ports is below 0.3 and output logic is 00. For the input condition when I1 = 1 (0100), the output port logic is 10 (Y0=1, Y1=0), results response time as cT = 22.59 μm and its corresponding the response time is 86.37fs, while data rate is 11.57Tbps from Fig. 5c, d. For the input condition when I2=1 (0010), the output port logic is 01 (Y0=0, Y1=1), results in the response time as cT = 22.79 µm and its corresponding response time is 89.78 fs while data rate is 11.13Tbps from Fig. 6c, d. For the input condition when I3=1 (0001), the output port logic is 11 (Y0=1, Y1=1), results in response time as cT = 29.76 µm, and its corresponding value is 222.76 fs while data rate is 4.48Tbps from Fig. 7c, d. The complete performance of the 4x2 encoder is displayed in Table 3.

Table 3 The various input and output parameters of 4 × 2 optical encoder

It is being observed from Table 2 that the maximum response time is observed as 222.76 fs, the minimum value of contrast ratio is found as 11.85 dB and the minimum observed data rate is 4.48 Tbps, respectively.

3.3 Scatter rod radius analysis

Scatter rod radius analysis is done in this proposed encoder, where four scatter rods have been placed at inner corners of resonator. From the simulation, it has been observed that these scatter rods influence the efficiency of proposed encoder. For optimization, different radius of scatter rods is observed from 0.025a to 0.035a (13 nm to 18 nm), with a range of 1 nm. In comparison with different scatter rod radius analysis as shown in Table 4, with 16 nm scatter rod radius, encoder has provided optimum power and good contrast ratio for all the logic states of 4 × 2 encoder.

Table 4 Contrast ratio analysis with scatter rod radius for the 4 × 2 encoder

The performance of the present optical encoders is calculated and compared to previous work of many researchers around the world and is presented in Table 5. The comparative parameters are contrast ratio (CR), response time and footprint of designed encoder. One of the research paper authored by Sei-Dargahi [22] shows higher dimensions of 795.6 µm2, with low response time of 1.8 ps. In another paper by Anagha et al. [23] shows the minimum footprint of 218.2 µm2, where output power is 0.75 W. The proposed encoder by Naghizada et al. [28] shows higher dimensions of 625 µm2, but reflects minimum response time of 0.7 ps. However, our proposed optical encoder achieved high contrast ratio (11.85 dB), fast response time (222.76 fs), high data rate (4.48 Tbps), and ultra-compact size (140.84µm2). With the above parameters, it is observed that the present device can be used for high-speed optical computations.

Table 5 Comparative analysis with previously designed optical encoder

4 Conclusions

We proposed a design of a 4 × 2 optical encoder based on a two-dimensional photonic crystal ring resonator, where dielectric rods are made up of silicon material with a rod radius is r = 0.1a and lattice constant ‘a’ as 540 nm. The properties of the proposed optical encoder are investigated and simulated with the FDTD method and the PWE method for PBG analysis. The resonance and coupled mode theory played an important role in designing the encoder. When an input signal is launched from I3, input terminal to waveguide W3, it gets split into two equal parts and travels in the ring resonator in opposite direction. As the coupling rods are present on both sides of the ring resonator, which causes strong coupling through the ring to optical waveguides W2 and W4. The contrast ratio is 11.85 dB, with response time of 0.222 ps, switching speed of 4.48 Tbps, and ultra-compact size of 140.84 µm2. Further analysis could be done for different operating wavelengths and other parameters such as modifying the radius of rods, scatter rod radius or lattice constant. Such a device structure with low power consumption, small size and high data rate, which occupy less space could be utilized in future as photonic integrated circuits for high-speed optical communication.